/* Estilos para páginas de autenticação - Tema Semi-Dark */

/* Formulários de autenticação */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

.auth-form h1 {
    margin-bottom: 1.5rem;
    color: #bb86fc;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #2c2c2c;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
    background-color: #333;
}

.form-group input:hover {
    border-color: #555;
}

/* Checkbox específico */
.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
    accent-color: #bb86fc;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Ações do formulário */
.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.form-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Mensagens de erro */
.error {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

/* Links de navegação */
.auth-form p {
    text-align: center;
    margin-top: 1.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.auth-form p a {
    color: #bb86fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-form p a:hover {
    color: #d4b3ff;
    text-decoration: underline;
}

/* Estados de validação */
.form-group input.is-invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-group input.is-valid {
    border-color: #51cf66;
    background-color: rgba(81, 207, 102, 0.1);
}

/* Responsividade */
@media (max-width: 576px) {
    .auth-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-form h1 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
}

/* Animações */
.auth-form {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state para botões */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ESTILOS PARA GERENCIAMENTO DE USUÁRIOS
   ======================================== */

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Seção do cabeçalho */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #333;
}

.header-section h1 {
    color: #bb86fc;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Container da tabela */
.table-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

/* Tabela de dados */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

.data-table th {
    background-color: #2c2c2c;
    color: #bb86fc;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: rgba(187, 134, 252, 0.1);
    transition: background-color 0.2s ease;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges e status */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 8px;
}

.badge-master {
    background-color: #ff6b6b;
    color: white;
    animation: pulse 2s infinite;
}

.badge-admin {
    background-color: #4ecdc4;
    color: white;
}

.badge-user {
    background-color: #95a5a6;
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Status de usuário */
.status-active {
    color: #27ae60;
    font-weight: 600;
}

.status-inactive {
    color: #e74c3c;
    font-weight: 600;
}

/* Coluna de ações */
.actions {
    text-align: center;
    width: 120px;
}

/* Botões de ação */
.btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* Texto desabilitado */
.text-muted {
    color: #7f8c8d;
    font-style: italic;
}

/* Estado vazio */
.empty-state {
    text-align: center;
    padding: 3rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
}

.empty-state p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsividade para tabela de usuários */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-section h1 {
        text-align: center;
        font-size: 1.5rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}
