/* ============================================
   DASHBOARD DISCIPLINAR - COMPONENTES
   ============================================ */

/* ============================================
   NOVOS COMPONENTES - CONFIGURAÇÕES
============================================ */
.data-card {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.2s ease;
}

.data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #e1dfdd;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.card-content {
    padding: 24px;
}

/* Cartão de segurança especial */
.security-card .card-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.security-card .card-title {
    color: #f57c00;
}

/* Cartão de informações */
.info-card .card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.info-card .card-title {
    color: #1976d2;
}

/* Cartão de GitHub */
.github-card .card-header {
    background: linear-gradient(135deg, #f6f8fa 0%, #e1e4e8 100%);
}

.github-card .card-title {
    color: #24292e;
}

/* Alertas de segurança */
.security-warning {
    margin-bottom: 20px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Grid de ações de dados */
.data-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.action-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.action-card.backup {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.action-card.restore {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
}

.action-card.export {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.action-card.danger {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.action-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.action-description {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.export-buttons .btn {
    font-size: 12px;
    padding: 8px 12px;
}

.danger-zone .btn {
    font-size: 12px;
    width: 100%;
}

/* Grid de estatísticas moderno */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #0078d4;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Informações do sistema */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-title {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.info-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.tech-stack {
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-badge {
    background: #0078d4;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-list {
    margin: 8px 0 0 0;
    padding-left: 16px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
}

.features-list li {
    margin-bottom: 4px;
}

/* Seção GitHub */
.github-status {
    margin-bottom: 20px;
}

.github-info {
    margin: 20px 0;
}

.info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.info-box h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.steps-list {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
}

.steps-list li {
    margin-bottom: 8px;
}

.steps-list a {
    color: #0078d4;
    text-decoration: none;
}

.steps-list a:hover {
    text-decoration: underline;
}

.steps-list code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #d73a49;
}

/* Ajuda nos formulários */
.form-help {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    margin-top: 4px;
}

/* Mensagens flutuantes */
.floating-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #0078d4;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    min-width: 300px;
    max-width: 500px;
    animation: slideIn 0.3s ease;
}

.floating-alert.alert-success {
    border-left-color: #28a745;
}

.floating-alert.alert-error {
    border-left-color: #dc3545;
}

.floating-alert.alert-warning {
    border-left-color: #ffc107;
}

.floating-alert.alert-info {
    border-left-color: #17a2b8;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    color: #212529;
}

.alert-close {
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.alert-close:hover {
    color: #212529;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   FORMULÁRIOS E INPUTS
============================================ */
.management-section {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.management-title {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f2f1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #d1d0ce;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f2f1;
}

/* ============================================
   BOTÕES
============================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #0078d4;
    color: #ffffff;
}

.btn-primary:hover {
    background: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 110, 190, 0.3);
}

.btn-secondary {
    background: #f3f2f1;
    color: #323130;
    border: 1px solid #d1d0ce;
}

.btn-secondary:hover {
    background: #e1dfdd;
    border-color: #b3b0ad;
}

.btn-success {
    background: #107c10;
    color: #ffffff;
}

.btn-success:hover {
    background: #0e6f0e;
}

.btn-warning {
    background: #ffc107;
    color: #323130;
}

.btn-warning:hover {
    background: #ffb300;
}

.btn-info {
    background: #17a2b8;
    color: #ffffff;
}

.btn-info:hover {
    background: #138496;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   TABELAS E LISTAS
============================================ */
.table-container {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-header {
    background: #f8f7f6;
    padding: 16px 20px;
    border-bottom: 1px solid #e1dfdd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-title {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.table-content {
    min-height: 200px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f3f2f1;
}

.data-table th {
    background: #faf9f8;
    font-weight: 600;
    color: #605e5c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: #f8f7f6;
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

.text-success {
    color: #107c10 !important;
    font-weight: 600;
}

.text-muted {
    color: #999 !important;
    font-weight: 400;
    opacity: 0.7;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #605e5c;
}

.action-buttons {
    display: flex;
    gap: 4px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #605e5c;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f2f1;
    border-top: 3px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #605e5c;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #323130;
}

.empty-state p {
    font-size: 14px;
    opacity: 0.8;
}

/* ============================================
   CARDS E SEÇÕES
============================================ */
.student-card {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.student-card:hover .student-name {
    color: #0078d4;
    transition: color 0.2s ease;
}

.student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f2f1;
}

.student-name {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
}

.student-class {
    background: #f3f2f1;
    color: #605e5c;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   FILTROS E PESQUISA
============================================ */
.filters-section {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #d1d0ce;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.filters-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #f3f2f1;
}

/* ============================================
   DETALHES E ESTATÍSTICAS
============================================ */
.details-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f2f1;
}

.details-title {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #f8f7f6;
    border-radius: 4px;
}

.detail-date {
    font-size: 13px;
    color: #605e5c;
    font-weight: 500;
}

.detail-type {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-type.F {
    background: #ffebee;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.detail-type.A {
    background: #e8f5e8;
    color: #107c10;
    border: 1px solid #107c10;
}

.detail-type.P {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #1976d2;
}

/* ============================================
   CONFIGURAÇÕES
============================================ */
.config-section {
    background: #ffffff;
    border: 1px solid #e1dfdd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.config-title {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.config-input {
    padding: 12px 16px;
    border: 1px solid #d1d0ce;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.config-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

/* ============================================
   FICHA DISCIPLINAR DO ALUNO
============================================ */
.ficha-container {
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1dfdd;
}

.ficha-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.ficha-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f2f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dados-pessoais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.dado-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dado-label {
    font-size: 12px;
    font-weight: 600;
    color: #605e5c;
    text-transform: uppercase;
}

.dado-valor {
    font-size: 14px;
    color: #323130;
    font-weight: 500;
}

.historico-container {
    max-height: 400px;
    overflow-y: auto;
}

.historico-item {
    background: #f8f7f6;
    border-left: 4px solid #d1d0ce;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

.historico-item.falta {
    border-left-color: #dc3545;
}

.historico-item.medida {
    border-left-color: #fd7e14;
}

.historico-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.historico-data {
    font-size: 12px;
    color: #605e5c;
    font-weight: 600;
}

.historico-tipo {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.historico-tipo.F {
    background: #ffebee;
    color: #dc3545;
}

.historico-tipo.A {
    background: #e8f5e8;
    color: #107c10;
}

.historico-tipo.medida {
    background: #fff3cd;
    color: #fd7e14;
}

.historico-descricao {
    font-size: 13px;
    color: #323130;
    line-height: 1.4;
}

.resumo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.resumo-card {
    background: #f3f2f1;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e1dfdd;
}

.resumo-numero {
    font-size: 24px;
    font-weight: 700;
    color: #323130;
    display: block;
}

.resumo-label {
    font-size: 12px;
    color: #605e5c;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.resumo-card.danger .resumo-numero {
    color: #dc3545;
}

.resumo-card.warning .resumo-numero {
    color: #fd7e14;
}

.resumo-card.info .resumo-numero {
    color: #0078d4;
}

.empty-ficha {
    text-align: center;
    padding: 40px 20px;
    color: #605e5c;
}

.empty-ficha .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-ficha h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #323130;
}

.empty-ficha p {
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVIDADE PARA COMPONENTES
============================================ */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .management-section {
        padding: 16px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filters-actions {
        justify-content: stretch;
    }
    
    .filters-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SEÇÃO USUÁRIOS
   ============================================ */

/* Seção Usuários */
.users-card .form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.users-card .form-section h4 {
    margin: 0 0 15px 0;
    color: #28a745;
}

.users-table {
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    overflow: hidden;
}

.users-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 2fr;
    gap: 15px;
    background: #f1f3f4;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 2px solid #e1e4e8;
}

.user-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr 2fr;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
    transition: background-color 0.2s;
}

.user-row:hover {
    background-color: #f8f9fa;
}

.user-row:last-child {
    border-bottom: none;
}

.user-email {
    font-family: monospace;
    color: #0366d6;
    font-weight: 500;
}

.user-name {
    font-weight: 500;
}

.user-role {
    font-weight: 600;
}

.user-created {
    color: #6a737d;
    font-size: 0.9em;
}

.user-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-small.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-small.btn-warning:hover {
    background: #ffca2c;
}

.btn-small.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small.btn-danger:hover {
    background: #c82333;
}

.protected-user {
    color: #6a737d;
    font-style: italic;
    font-size: 0.9em;
}

.no-users, .error-message {
    padding: 20px;
    text-align: center;
    color: #6a737d;
    font-style: italic;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .users-header, .user-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .user-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

/* ============================================
   DARK MODE OVERRIDES - COMPONENTES
   Session 18 - 07/12/2025
============================================ */

/* Cartões de dados */
[data-theme="dark"] .data-card {
    background: var(--bg-card, #1f2937);
    border-color: var(--border-light, #374151);
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0, 0, 0, 0.3));
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, var(--bg-secondary, #16213e) 0%, var(--bg-tertiary, #0f3460) 100%);
    border-bottom-color: var(--border-light, #374151);
}

[data-theme="dark"] .card-title {
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] .card-subtitle {
    color: var(--text-muted, #9ca3af);
}

/* Alertas */
[data-theme="dark"] .alert-warning {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: var(--color-warning, #fbbf24);
}

[data-theme="dark"] .alert-success {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--color-success, #4ade80);
}

/* Cards de ação */
[data-theme="dark"] .action-card {
    background: var(--bg-secondary, #16213e);
    border-color: var(--border-light, #374151);
}

[data-theme="dark"] .action-title {
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] .action-description {
    color: var(--text-muted, #9ca3af);
}

/* Stats grid */
[data-theme="dark"] .stat-card {
    background: var(--glass-bg, rgba(0, 0, 0, 0.4));
    border-color: var(--border-light, #374151);
}

[data-theme="dark"] .stat-value {
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] .stat-label {
    color: var(--text-muted, #9ca3af);
}

/* Formulários */
[data-theme="dark"] .form-group label,
[data-theme="dark"] .form-label {
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-input, rgba(255, 255, 255, 0.08));
    border-color: var(--border-light, #374151);
    color: var(--text-body, #e8e8e8);
}

/* Opções dos selects no dark mode - força cores legíveis */
[data-theme="dark"] select option {
    background-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] select option:hover,
[data-theme="dark"] select option:focus,
[data-theme="dark"] select option:checked {
    background-color: #00897B !important;
    color: #ffffff !important;
}

[data-theme="dark"] select optgroup {
    background-color: #111827 !important;
    color: #9ca3af !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-placeholder, #6b7280);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    background: var(--bg-input-focus, rgba(255, 255, 255, 0.15));
    border-color: var(--border-focus, #4db6ac);
}

/* Tabelas */
[data-theme="dark"] table {
    background: var(--bg-card, #1f2937);
}

[data-theme="dark"] th {
    background: var(--bg-table-header, #1f2937);
    color: var(--text-primary, #e0e6f8);
    border-bottom-color: var(--border-light, #374151);
}

[data-theme="dark"] td {
    color: var(--text-body, #e8e8e8);
    border-bottom-color: var(--border-light, #374151);
}

[data-theme="dark"] tr:hover {
    background: var(--bg-table-row-hover, #374151);
}

/* Modais */
[data-theme="dark"] .modal-content {
    background: var(--bg-card, #1f2937);
    border-color: var(--border-light, #374151);
}

[data-theme="dark"] .modal-header {
    background: var(--bg-secondary, #16213e);
    border-bottom-color: var(--border-light, #374151);
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] .modal-body {
    color: var(--text-body, #e8e8e8);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-light, #374151);
}

/* Badges e status */
[data-theme="dark"] .badge {
    background: var(--glass-bg, rgba(0, 0, 0, 0.4));
}

/* Usuários e listas */
[data-theme="dark"] .users-header {
    background: var(--bg-table-header, #1f2937);
    color: var(--text-primary, #e0e6f8);
}

[data-theme="dark"] .user-row {
    background: var(--bg-card, #1f2937);
    border-bottom-color: var(--border-light, #374151);
}

[data-theme="dark"] .user-row:hover {
    background: var(--bg-table-row-hover, #374151);
}

[data-theme="dark"] .user-email,
[data-theme="dark"] .protected-user,
[data-theme="dark"] .no-users {
    color: var(--text-muted, #9ca3af);
}

[data-theme="dark"] .error-message {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-danger, #f87171);
}

/* Botões secundários */
[data-theme="dark"] .btn-secondary {
    background: var(--bg-tertiary, #0f3460);
    color: var(--text-body, #e8e8e8);
    border-color: var(--border-light, #374151);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-hover, rgba(0, 191, 165, 0.15));
}
