/* Estilos para o toggle de status */
.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.status-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2271b1;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2271b1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.status-text {
    font-size: 12px;
    color: #666;
}

/* Estilos para o formulário */
.form-table td {
    vertical-align: top;
}

.form-table input[type="text"],
.form-table input[type="date"],
.form-table input[type="number"],
.form-table textarea {
    width: 100%;
    max-width: 400px;
}

/* Estilos para a tabela de listagem */
.wp-list-table .column-actions {
    width: 120px;
}

.wp-list-table .column-status {
    width: 100px;
}

/* Estilos para o container de transparência no frontend */
.transparencia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.transparencia-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.transparencia-item h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.transparencia-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.transparencia-meta span {
    margin-right: 15px;
}

.transparencia-descricao {
    margin-bottom: 15px;
    line-height: 1.6;
}

.transparencia-arquivo {
    margin-top: 15px;
}

.transparencia-arquivo .button {
    display: inline-block;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.transparencia-arquivo .button:hover {
    background: #135e96;
    color: #fff;
}

.icon-picker-wrapper {
    position: relative;
}

.icon-picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: #fff;
    z-index: 999999;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.icon-picker-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-search {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.icon-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
}

.icon-picker-content {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.icon-category {
    margin-bottom: 20px;
}

.icon-category h3 {
    margin: 0 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-item:hover {
    background: #f0f0f0;
    border-color: #999;
}

.icon-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.icon-item.selected {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
}

.status-toggle-wrapper {
    display: inline-block;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.status-toggle.active .status-text {
    color: #2271b1;
}

.status-toggle.inactive .status-text {
    color: #999;
}

.status-text {
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Centralizar o switch na coluna */
.wp-list-table td:last-child {
    text-align: center;
}

/* Formulário de edição */
.form-table .status-toggle {
    display: inline-flex;
    margin: 0;
}

.form-table .status-switch {
    margin: 0;
}

/* Prevenir seleção de texto ao clicar */
.status-toggle,
.status-toggle * {
    user-select: none;
    -webkit-user-select: none;
}

/* Estilo quando o toggle está focado */
.status-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Remover sublinhado do link na lista */
a.status-toggle {
    text-decoration: none;
}

a.status-toggle:focus {
    box-shadow: none;
    outline: none;
} 