/* ============================================
   FICAI MODULE - Design System
   Ficha de Comunicacao do Aluno Infrequente
   Aesthetic: Purple-violet alerts + clean cards
   ============================================ */

/* ============================================
   Variables & Theme
   ============================================ */
:root {
    --ficai-primary: #6d28d9;
    --ficai-secondary: #8b5cf6;
    --ficai-light: #f5f3ff;
    --ficai-border: rgba(139, 92, 246, 0.2);
    --ficai-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --ficai-gradient-light: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.02));
    --ficai-bg-card: var(--bg-card, #ffffff);
    --ficai-text: var(--text-body, #374151);
    --ficai-text-muted: var(--text-muted, #9ca3af);

    --ficai-red: #ef4444;
    --ficai-amber: #f59e0b;
    --ficai-green: #10b981;
    --ficai-gray: #6b7280;
    --ficai-whatsapp: #25d366;
    --ficai-whatsapp-dark: #128c7e;
}

/* ============================================
   Breadcrumb (reuses freq-breadcrumb pattern)
   ============================================ */
.ficai-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: rgba(139, 92, 246, 0.04);
    border-radius: 10px;
    border-left: 3px solid var(--ficai-secondary);
}

.ficai-breadcrumb a {
    color: var(--ficai-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.ficai-breadcrumb a:hover {
    color: var(--ficai-secondary);
}

.ficai-breadcrumb a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.ficai-breadcrumb .separator {
    color: var(--ficai-text-muted);
    font-size: 12px;
}

.ficai-breadcrumb .current {
    color: var(--ficai-text-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ficai-breadcrumb .current svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ============================================
   Page Header
   ============================================ */
.ficai-module-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ficai-module-title .title-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--ficai-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.ficai-module-title .title-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
    stroke-width: 2;
}

.ficai-module-title h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ficai-primary);
}

.ficai-module-title .subtitle {
    font-size: 0.85rem;
    color: var(--ficai-text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* ============================================
   Dashboard Stats Cards (index.html)
   ============================================ */
.ficai-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.ficai-stat-card {
    background: var(--ficai-bg-card);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.ficai-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(20px, -20px);
}

.ficai-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.ficai-stat-card.abertas {
    border-left-color: var(--ficai-red);
    background: linear-gradient(135deg, #fff, #fef2f2);
}
.ficai-stat-card.abertas::before { background: var(--ficai-red); }

.ficai-stat-card.aguardando {
    border-left-color: var(--ficai-amber);
    background: linear-gradient(135deg, #fff, #fffbeb);
}
.ficai-stat-card.aguardando::before { background: var(--ficai-amber); }

.ficai-stat-card.conselho {
    border-left-color: var(--ficai-secondary);
    background: linear-gradient(135deg, #fff, #f5f3ff);
}
.ficai-stat-card.conselho::before { background: var(--ficai-secondary); }

.ficai-stat-card.resolvidas {
    border-left-color: var(--ficai-green);
    background: linear-gradient(135deg, #fff, #ecfdf5);
}
.ficai-stat-card.resolvidas::before { background: var(--ficai-green); }

.ficai-stat-card.canceladas {
    border-left-color: var(--ficai-gray);
    background: linear-gradient(135deg, #fff, #f9fafb);
}
.ficai-stat-card.canceladas::before { background: var(--ficai-gray); }

.ficai-stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.ficai-stat-card .stat-numero {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1;
}

.ficai-stat-card.abertas .stat-numero { color: var(--ficai-red); }
.ficai-stat-card.aguardando .stat-numero { color: var(--ficai-amber); }
.ficai-stat-card.conselho .stat-numero { color: var(--ficai-secondary); }
.ficai-stat-card.resolvidas .stat-numero { color: var(--ficai-green); }
.ficai-stat-card.canceladas .stat-numero { color: var(--ficai-gray); }

.ficai-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--ficai-text-muted);
    font-weight: 500;
}

/* ============================================
   Hub Cards (index.html navigation)
   ============================================ */
.ficai-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.ficai-hub-card {
    background: var(--ficai-bg-card);
    border-radius: 14px;
    padding: 28px 24px;
    border: 1px solid var(--ficai-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    cursor: pointer;
}

.ficai-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
    border-color: var(--ficai-secondary);
}

.ficai-hub-card .hub-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.ficai-hub-card .hub-icon.alertas { background: linear-gradient(135deg, #fef2f2, #fee2e2); }
.ficai-hub-card .hub-icon.relatorio { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }

.ficai-hub-card .hub-content h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ficai-primary);
}

.ficai-hub-card .hub-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ficai-text-muted);
    line-height: 1.5;
}

.ficai-hub-card .hub-arrow {
    margin-left: auto;
    color: var(--ficai-text-muted);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    align-self: center;
}

.ficai-hub-card:hover .hub-arrow {
    transform: translateX(4px);
    color: var(--ficai-secondary);
}

/* ============================================
   Recent Alerts Section (index.html)
   ============================================ */
.ficai-section-card {
    background: var(--ficai-bg-card);
    border-radius: 14px;
    border: 1px solid var(--ficai-border);
    padding: 24px;
    margin-bottom: 24px;
}

.ficai-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ficai-primary);
}

.ficai-alert-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.ficai-alert-list-item:last-child {
    border-bottom: none;
}

.ficai-alert-list-item:hover {
    background: var(--ficai-light);
}

.ficai-alert-list-item .alert-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--ficai-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.ficai-alert-list-item .alert-info {
    flex: 1;
    min-width: 0;
}

.ficai-alert-list-item .alert-nome {
    font-weight: 600;
    color: var(--ficai-text);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ficai-alert-list-item .alert-detalhe {
    font-size: 0.8rem;
    color: var(--ficai-text-muted);
    margin-top: 2px;
}

/* Recent items (dashboard) */
.ficai-recent-item {
    padding: 12px 14px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
    transition: background 0.2s ease;
}

.ficai-recent-item:last-child {
    border-bottom: none;
}

.ficai-recent-item:hover {
    background: var(--ficai-light);
}

.ficai-recent-name {
    font-weight: 600;
    color: var(--ficai-text);
    font-size: 0.9rem;
}

.ficai-recent-meta {
    font-size: 0.8rem;
    color: var(--ficai-text-muted);
    margin-top: 2px;
}

/* ============================================
   Relatorio Card (filtros, containers)
   ============================================ */
.ficai-card {
    background: var(--ficai-gradient-light);
    border: 1px solid var(--ficai-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ficai-card-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ficai-primary);
}

/* ============================================
   Filtros
   ============================================ */
.ficai-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.ficai-filtro-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ficai-filtro-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ficai-primary);
    font-size: 14px;
}

.ficai-filtro-group label svg {
    flex-shrink: 0;
}

.ficai-filtro-input,
.ficai-filtro-select,
.ficai-filtro-group select {
    padding: 10px 15px;
    border: 1px solid var(--ficai-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    transition: all 0.2s;
}

.ficai-filtro-input:focus,
.ficai-filtro-select:focus,
.ficai-filtro-group select:focus {
    outline: none;
    border-color: var(--ficai-secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Toggle / action buttons */
.ficai-btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--ficai-gradient-light);
    color: var(--ficai-primary);
    border: 1px solid var(--ficai-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ficai-btn-toggle:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--ficai-secondary);
    transform: translateY(-1px);
}

.ficai-btn-toggle:active {
    transform: translateY(0);
}

.ficai-btn-toggle svg {
    flex-shrink: 0;
}

/* Export PDF button */
.ficai-btn-exportar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--ficai-gradient);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ficai-btn-exportar:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.ficai-btn-exportar:active:not(:disabled) {
    transform: translateY(0);
}

.ficai-btn-exportar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ficai-btn-exportar svg {
    flex-shrink: 0;
}

/* ============================================
   Alertas Page - Header + Controls
   ============================================ */
.ficai-alertas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--ficai-bg-card);
    border-radius: 12px;
    border: 1px solid var(--ficai-border);
}

.ficai-alertas-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ficai-alertas-header .header-left h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ficai-primary);
}

.ficai-alertas-header .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ficai-mes-select,
.ficai-status-select {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--ficai-border);
    cursor: pointer;
    font-size: 14px;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    transition: all 0.2s;
}

.ficai-mes-select:focus,
.ficai-status-select:focus {
    outline: none;
    border-color: var(--ficai-secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Status filter badges */
.ficai-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ficai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    user-select: none;
}

.ficai-status-badge:hover {
    transform: translateY(-1px);
}

.ficai-status-badge.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ficai-status-badge .badge-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.ficai-status-badge.sem-status { background: #fee2e2; color: #991b1b; }
.ficai-status-badge.sem-status.active { border-color: #ef4444; }
.ficai-status-badge.aguardando { background: #fef3c7; color: #92400e; }
.ficai-status-badge.aguardando.active { border-color: #f59e0b; }
.ficai-status-badge.conselho { background: #ede9fe; color: #5b21b6; }
.ficai-status-badge.conselho.active { border-color: #8b5cf6; }
.ficai-status-badge.resolvido { background: #d1fae5; color: #065f46; }
.ficai-status-badge.resolvido.active { border-color: #10b981; }
.ficai-status-badge.cancelado { background: #f3f4f6; color: #4b5563; }
.ficai-status-badge.cancelado.active { border-color: #6b7280; }
.ficai-status-badge.todos { background: #e0e7ff; color: #3730a3; }
.ficai-status-badge.todos.active { border-color: #6366f1; }

/* ============================================
   Status Cards (Relatorio + Dashboard)
   ============================================ */
.status-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.status-card {
    background: var(--ficai-bg-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.status-card.abertas {
    border-left-color: var(--ficai-red);
    background: linear-gradient(135deg, #fff, #fef2f2);
}

.status-card.aguardando {
    border-left-color: var(--ficai-amber);
    background: linear-gradient(135deg, #fff, #fffbeb);
}

.status-card.conselho {
    border-left-color: var(--ficai-secondary);
    background: linear-gradient(135deg, #fff, #f5f3ff);
}

.status-card.resolvidas {
    border-left-color: var(--ficai-green);
    background: linear-gradient(135deg, #fff, #ecfdf5);
}

.status-card.canceladas {
    border-left-color: var(--ficai-gray);
    background: linear-gradient(135deg, #fff, #f9fafb);
}

.status-card .status-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.status-card .status-numero {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.status-card.abertas .status-numero { color: var(--ficai-red); }
.status-card.aguardando .status-numero { color: var(--ficai-amber); }
.status-card.conselho .status-numero { color: var(--ficai-secondary); }
.status-card.resolvidas .status-numero { color: var(--ficai-green); }
.status-card.canceladas .status-numero { color: var(--ficai-gray); }

.status-card .status-label {
    font-size: 0.9rem;
    color: var(--ficai-text-muted);
    font-weight: 500;
}

/* ============================================
   Tabela de Relatorio
   ============================================ */
.ficai-tabela-container,
.tabela-relatorio-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--ficai-border);
}

.ficai-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ficai-tabela thead {
    background: var(--ficai-gradient);
}

.ficai-tabela th {
    padding: 12px 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ficai-tabela tbody tr {
    transition: background 0.2s;
}

.ficai-tabela tbody tr:nth-child(even) {
    background: rgba(139, 92, 246, 0.03);
}

.ficai-tabela tbody tr:hover {
    background: rgba(139, 92, 246, 0.08);
}

.ficai-tabela td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    white-space: nowrap;
}

.ficai-tabela .col-codigo {
    width: 100px;
    font-weight: 600;
    color: var(--ficai-primary);
}

.ficai-tabela .col-nome {
    min-width: 200px;
    white-space: normal;
}

.ficai-tabela .col-turma {
    width: 80px;
    text-align: center;
}

.ficai-tabela .col-status {
    width: 150px;
}

.ficai-tabela .col-data {
    width: 120px;
    text-align: center;
}

/* ============================================
   Badges de Status
   ============================================ */
.badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.sem-status {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status.aguardando {
    background: #fef3c7;
    color: #92400e;
}

.badge-status.conselho {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-status.resolvido {
    background: #d1fae5;
    color: #065f46;
}

.badge-status.cancelado {
    background: #f3f4f6;
    color: #4b5563;
}

/* ============================================
   Loading & Empty States
   ============================================ */
.ficai-loading {
    text-align: center;
    padding: 40px;
    color: var(--ficai-text-muted);
    grid-column: 1 / -1;
}

.ficai-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--ficai-secondary);
    border-radius: 50%;
    animation: ficaiSpin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.ficai-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--ficai-text-muted);
    grid-column: 1 / -1;
}

.ficai-empty .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.ficai-empty h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--ficai-text);
}

.ficai-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================
   Botao Exportar PDF
   ============================================ */
.ficai-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.ficai-btn-pdf:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.ficai-btn-pdf:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ficai-acoes {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* ============================================
   Botao WhatsApp FICAI
   ============================================ */
.ficai-botoes-acoes {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp-ficai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--ficai-whatsapp), var(--ficai-whatsapp-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-ficai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #20bd5c, #0f7a6b);
}

.btn-whatsapp-ficai:active {
    transform: translateY(0);
}

.btn-email-ficai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-email-ficai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-email-ficai:active {
    transform: translateY(0);
}

.btn-enviar-email-ficai {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: #3b82f6 !important;
}

.btn-enviar-email-ficai:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
}

/* ============================================
   Checkbox Notificado
   ============================================ */
.ficai-notificacao-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(37, 211, 102, 0.03));
    border-radius: 8px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.checkbox-notificado {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-notificado input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ficai-whatsapp);
    cursor: pointer;
}

.checkbox-notificado .label-text {
    font-size: 13px;
    color: var(--ficai-text);
}

.data-notificacao {
    font-size: 12px;
    color: var(--ficai-whatsapp);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-notificacao.show {
    opacity: 1;
}

/* ============================================
   Modal WhatsApp FICAI
   ============================================ */
.modal-ficai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: ficaiFadeIn 0.2s ease;
}

.modal-ficai-overlay.fechando {
    animation: ficaiFadeOut 0.2s ease forwards;
}

@keyframes ficaiFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ficaiFadeOut {
    to { opacity: 0; }
}

.modal-ficai-container {
    background: var(--ficai-bg-card);
    border-radius: 16px;
    width: 95%;
    max-width: 580px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ficaiSlideUp 0.3s ease;
}

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

.modal-ficai-header {
    padding: 20px 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-ficai-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-ficai-icone {
    font-size: 2rem;
}

.modal-ficai-titulo h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-ficai-badge {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 4px;
    display: inline-block;
}

.modal-ficai-fechar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-ficai-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-ficai-body {
    padding: 24px;
    max-height: 55vh;
    overflow-y: auto;
}

.modal-ficai-info-aluno {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--ficai-border);
}

.modal-ficai-info-aluno .info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.modal-ficai-info-aluno .info-row:last-child {
    border-bottom: none;
}

.modal-ficai-info-aluno .info-label {
    font-weight: 500;
    color: var(--ficai-primary);
}

.modal-ficai-info-aluno .info-value {
    color: var(--ficai-text);
}

.modal-ficai-telefone {
    margin-bottom: 20px;
}

.modal-ficai-telefone label {
    display: block;
    font-weight: 600;
    color: var(--ficai-text);
    margin-bottom: 8px;
}

.input-telefone-ficai {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    box-sizing: border-box;
}

.input-telefone-ficai:focus {
    outline: none;
    border-color: var(--ficai-whatsapp);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.aviso-telefone {
    display: block;
    color: var(--ficai-amber);
    margin-top: 6px;
    font-size: 12px;
}

.modal-ficai-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    box-sizing: border-box;
}

.modal-ficai-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-ficai-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    box-sizing: border-box;
}

.modal-ficai-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-ficai-preview {
    margin-bottom: 0;
}

.modal-ficai-preview label {
    display: block;
    font-weight: 600;
    color: var(--ficai-text);
    margin-bottom: 8px;
}

.preview-mensagem-ficai {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 12px;
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
}

.preview-mensagem-ficai pre {
    margin: 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #1b5e20;
}

.modal-ficai-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancelar-ficai {
    padding: 12px 24px;
    background: var(--ficai-bg-card);
    color: var(--ficai-text-muted);
    border: 1px solid var(--ficai-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancelar-ficai:hover {
    background: #f3f4f6;
}

.btn-enviar-ficai {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--ficai-whatsapp), var(--ficai-whatsapp-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-enviar-ficai:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-enviar-ficai:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   Info Section
   ============================================ */
.ficai-info-section {
    background: var(--ficai-bg-card);
    border-radius: 14px;
    border: 1px solid var(--ficai-border);
    padding: 24px;
    margin-top: 24px;
}

.ficai-info-section .info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ficai-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ficai-info-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ficai-info-section li {
    margin-bottom: 6px;
    color: var(--ficai-text);
    line-height: 1.5;
}

/* ============================================
   Animations
   ============================================ */
@keyframes ficaiPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.ficai-stat-card.abertas .stat-numero[data-value]:not([data-value="0"]) {
    animation: ficaiPulse 2s ease-in-out infinite;
}

/* ============================================
   Responsividade
   ============================================ */
@media (max-width: 768px) {
    .ficai-stats-grid,
    .status-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ficai-hub-grid {
        grid-template-columns: 1fr;
    }

    .ficai-filtros-grid {
        grid-template-columns: 1fr;
    }

    .ficai-alertas-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ficai-alertas-header .header-right {
        flex-direction: column;
    }

    .ficai-status-badges {
        flex-wrap: wrap;
    }

    .ficai-module-title h1 {
        font-size: 1.4rem;
    }

    .ficai-stat-card .stat-numero {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ficai-stats-grid,
    .status-cards-grid {
        grid-template-columns: 1fr;
    }

    .ficai-stat-card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .modal-ficai-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-ficai-header {
        padding: 16px;
    }

    .modal-ficai-body {
        padding: 16px;
    }

    .modal-ficai-footer {
        flex-direction: column;
    }

    .btn-cancelar-ficai,
    .btn-enviar-ficai {
        width: 100%;
    }

    .ficai-botoes-acoes {
        flex-direction: column;
    }

    .btn-whatsapp-ficai,
    .btn-email-ficai {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --ficai-primary: #a78bfa;
    --ficai-secondary: #c4b5fd;
    --ficai-light: #1e1b4b;
    --ficai-border: rgba(167, 139, 250, 0.2);
    --ficai-gradient: linear-gradient(135deg, #7c3aed, #6d28d9);
    --ficai-gradient-light: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
}

[data-theme="dark"] .ficai-breadcrumb {
    background: rgba(139, 92, 246, 0.08);
}

[data-theme="dark"] .ficai-module-title .title-icon {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .ficai-stat-card,
[data-theme="dark"] .status-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ficai-stat-card.abertas,
[data-theme="dark"] .status-card.abertas {
    background: linear-gradient(135deg, #1f2937, #2d1b1b);
}

[data-theme="dark"] .ficai-stat-card.aguardando,
[data-theme="dark"] .status-card.aguardando {
    background: linear-gradient(135deg, #1f2937, #2d2614);
}

[data-theme="dark"] .ficai-stat-card.conselho,
[data-theme="dark"] .status-card.conselho {
    background: linear-gradient(135deg, #1f2937, #1e1b4b);
}

[data-theme="dark"] .ficai-stat-card.resolvidas,
[data-theme="dark"] .status-card.resolvidas {
    background: linear-gradient(135deg, #1f2937, #132e22);
}

[data-theme="dark"] .ficai-stat-card.canceladas,
[data-theme="dark"] .status-card.canceladas {
    background: linear-gradient(135deg, #1f2937, #1f2937);
}

[data-theme="dark"] .ficai-hub-card {
    background: var(--bg-card, #1e293b);
}

[data-theme="dark"] .ficai-hub-card:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .ficai-hub-card .hub-icon.alertas {
    background: linear-gradient(135deg, #2d1b1b, #3d1b1b);
}

[data-theme="dark"] .ficai-hub-card .hub-icon.relatorio {
    background: linear-gradient(135deg, #1e1b4b, #2e1b6b);
}

[data-theme="dark"] .ficai-section-card,
[data-theme="dark"] .ficai-card,
[data-theme="dark"] .ficai-alertas-header,
[data-theme="dark"] .ficai-info-section {
    background: var(--bg-card, #1e293b);
    border-color: var(--ficai-border);
}

[data-theme="dark"] .ficai-tabela tbody tr:nth-child(even) {
    background: rgba(139, 92, 246, 0.05);
}

[data-theme="dark"] .ficai-tabela tbody tr:hover {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .ficai-tabela td {
    border-bottom-color: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .badge-status.sem-status { background: #3d1b1b; color: #fca5a5; }
[data-theme="dark"] .badge-status.aguardando { background: #3d2e14; color: #fcd34d; }
[data-theme="dark"] .badge-status.conselho { background: #2e1b6b; color: #c4b5fd; }
[data-theme="dark"] .badge-status.resolvido { background: #132e22; color: #6ee7b7; }
[data-theme="dark"] .badge-status.cancelado { background: #374151; color: #9ca3af; }

[data-theme="dark"] .modal-ficai-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modal-ficai-info-aluno {
    background: linear-gradient(135deg, #1e1b4b, #1e293b);
    border-color: var(--ficai-border);
}

[data-theme="dark"] .modal-ficai-info-aluno .info-row {
    border-bottom-color: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .modal-ficai-footer {
    background: #111827;
    border-top-color: #374151;
}

[data-theme="dark"] .preview-mensagem-ficai {
    background: #1a2e23;
    border-color: #2d5a3d;
}

[data-theme="dark"] .preview-mensagem-ficai pre {
    color: #86efac;
}

[data-theme="dark"] .input-telefone-ficai {
    border-color: #374151;
}

[data-theme="dark"] .modal-ficai-input {
    border-color: #374151;
    background: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .modal-ficai-textarea {
    border-color: #374151;
    background: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .ficai-notificacao-row {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
    border-color: rgba(37, 211, 102, 0.2);
}

[data-theme="dark"] .ficai-status-badge.sem-status { background: #3d1b1b; color: #fca5a5; }
[data-theme="dark"] .ficai-status-badge.aguardando { background: #3d2e14; color: #fcd34d; }
[data-theme="dark"] .ficai-status-badge.conselho { background: #2e1b6b; color: #c4b5fd; }
[data-theme="dark"] .ficai-status-badge.resolvido { background: #132e22; color: #6ee7b7; }
[data-theme="dark"] .ficai-status-badge.cancelado { background: #374151; color: #9ca3af; }
[data-theme="dark"] .ficai-status-badge.todos { background: #1e1b4b; color: #a5b4fc; }

[data-theme="dark"] .ficai-alert-list-item:hover {
    background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .ficai-alert-list-item {
    border-bottom-color: rgba(139, 92, 246, 0.08);
}

/* ============================================
   Alertas Grid - Cards lado a lado (3 por linha)
   ============================================ */
.alertas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
}

.alerta-item {
    background: var(--ficai-bg-card);
    border: 1px solid var(--ficai-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.alerta-item:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
    border-color: var(--ficai-secondary);
    transform: translateY(-2px);
}

.alerta-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ficai-border);
}

.alerta-aluno {
    font-weight: 600;
    color: var(--ficai-text);
    font-size: 0.9rem;
}

.alerta-codigo {
    color: var(--ficai-primary);
    font-size: 0.75rem;
    font-weight: 500;
}

.alerta-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.stat-badge.danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.stat-badge.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border: 1px solid #fde68a;
}

.stat-badge.info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Providencias / controles dentro do card */
.providencias-container {
    margin-top: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.providencias-label {
    font-weight: 600;
    color: var(--ficai-primary);
    margin-bottom: 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ficai-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.ficai-status-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ficai-status-group select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--ficai-border);
    border-radius: 8px;
    font-size: 0.8rem;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    transition: border-color 0.2s;
}

.ficai-status-group select:focus {
    outline: none;
    border-color: var(--ficai-secondary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.ficai-prazo {
    display: none;
    background: #fffbeb;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    font-size: 0.8rem;
    color: #92400e;
}

.ficai-prazo.show {
    display: block;
}

.ficai-data-group {
    background: rgba(139, 92, 246, 0.04);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--ficai-border);
}

.ficai-data-group .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ficai-primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ficai-data-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--ficai-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    box-sizing: border-box;
}

.ficai-data-input:focus {
    outline: none;
    border-color: var(--ficai-secondary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.providencias-textarea {
    width: 100%;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid var(--ficai-border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: inherit;
    resize: vertical;
    background: var(--ficai-bg-card);
    color: var(--ficai-text);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.providencias-textarea:focus {
    outline: none;
    border-color: var(--ficai-secondary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.btn-salvar-providencias {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-salvar-providencias:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Status-based card colors */
.alerta-item.status-resolvido {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
    border-left: 4px solid #10b981;
}

.alerta-item.status-aguardando {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
    border-left: 4px solid #3b82f6;
}

.alerta-item.status-conselho {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #f59e0b;
    border-left: 4px solid #f59e0b;
}

.alerta-item.status-cancelado {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: #8b5cf6;
    border-left: 4px solid #8b5cf6;
}

.alerta-item.status-resolvido:hover { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2); }
.alerta-item.status-aguardando:hover { box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2); }
.alerta-item.status-conselho:hover { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2); }
.alerta-item.status-cancelado:hover { box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2); }

/* No-alertas e loading states */
.no-alertas {
    text-align: center;
    padding: 40px 20px;
    color: var(--ficai-text-muted);
    background: var(--ficai-gradient-light);
    border-radius: 12px;
    border-left: 4px solid var(--ficai-secondary);
    grid-column: 1 / -1;
}

.no-alertas strong {
    color: var(--ficai-text);
    font-size: 1rem;
}

.no-alertas small {
    display: block;
    margin-top: 6px;
    line-height: 1.4;
}

.loading-alertas {
    text-align: center;
    padding: 40px;
    color: var(--ficai-text-muted);
    grid-column: 1 / -1;
}

/* Responsive grid: 2 cols on medium, 1 on small */
@media (max-width: 1200px) {
    .alertas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .alertas-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode for alert cards */
[data-theme="dark"] .alerta-item {
    background: var(--bg-card, #1e293b);
    border-color: var(--ficai-border);
}

[data-theme="dark"] .alerta-item:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .alerta-item.status-resolvido {
    background: linear-gradient(135deg, #1f2937, #132e22);
    border-color: #10b981;
}

[data-theme="dark"] .alerta-item.status-aguardando {
    background: linear-gradient(135deg, #1f2937, #172554);
    border-color: #3b82f6;
}

[data-theme="dark"] .alerta-item.status-conselho {
    background: linear-gradient(135deg, #1f2937, #2d2614);
    border-color: #f59e0b;
}

[data-theme="dark"] .alerta-item.status-cancelado {
    background: linear-gradient(135deg, #1f2937, #1e1b4b);
    border-color: #8b5cf6;
}

[data-theme="dark"] .alerta-header {
    border-bottom-color: var(--ficai-border);
}

[data-theme="dark"] .ficai-status-group select {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ficai-border);
    color: #e0e0e0;
}

[data-theme="dark"] .providencias-textarea {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ficai-border);
    color: #e0e0e0;
}

[data-theme="dark"] .ficai-prazo {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    color: #fcd34d;
}

[data-theme="dark"] .ficai-data-group {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--ficai-border);
}

[data-theme="dark"] .ficai-data-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ficai-border);
    color: #e0e0e0;
}

[data-theme="dark"] .stat-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .stat-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .stat-badge.info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .no-alertas {
    background: rgba(139, 92, 246, 0.08);
    border-left-color: var(--ficai-secondary);
}

[data-theme="dark"] .ficai-notificacao-row {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.15);
}
