/* 
 * Arquivo CSS Unificado para o Sistema Jurídico
 * Este arquivo combina todos os estilos do sistema em um único lugar
 * para facilitar a manutenção e garantir consistência visual.
 */

/* ======= VARIÁVEIS DE TEMA ======= */
:root[data-theme="light"] {
    /* Cores de fundo */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-accent: #e9ecef;
    --bg-sidebar: #ffffff;
    --bg-header: #f8f9fa;
    
    /* Cores de texto */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-sidebar: #333333;
    
    /* Cores de elementos */
    --border-color: #e0e0e0;
    --hover-bg: #f0f0f0;
    --table-header-bg: #f8f9fa;
    --table-header-text: #333333;
    --table-row-hover: #f5f5f5;
    --input-bg: #ffffff;
    --input-border: #cccccc;
    
    /* Cores de botões */
    --btn-primary-bg: #007bff;
    --btn-secondary-bg: #6c757d;
    
    /* Cores de status */
    --status-completed-bg: rgba(46, 204, 113, 0.1);
    --status-completed-text: #2ecc71;
    --status-in-progress-bg: rgba(52, 152, 219, 0.1);
    --status-in-progress-text: #3498db;
    --status-pending-bg: rgba(243, 156, 18, 0.1);
    --status-pending-text: #f39c12;
    --status-late-bg: rgba(231, 76, 60, 0.1);
    --status-late-text: #e74c3c;
    --status-default-bg: rgba(127, 140, 141, 0.1);
    --status-default-text: #7f8c8d;
    
    /* Efeitos */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Cores de gráficos */
    --chart-color-1: #4e73df;
    --chart-color-2: #1cc88a;
    --chart-color-3: #36b9cc;
    --chart-color-4: #f6c23e;
    --chart-color-5: #e74a3b;
}

:root[data-theme="dark"] {
    /* Cores de fundo */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-accent: #1e2a4a;
    --bg-sidebar: #0d1117;
    --bg-header: #161b22;
    
    /* Cores de texto */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-sidebar: #ffffff;
    
    /* Cores de elementos */
    --border-color: #30363d;
    --hover-bg: #21262d;
    --table-header-bg: #21262d;
    --table-header-text: #ffffff;
    --table-row-hover: #2d333b;
    --input-bg: #0d1117;
    --input-border: #30363d;
    
    /* Cores de botões */
    --btn-primary-bg: #238636;
    --btn-secondary-bg: #6e7681;
    
    /* Cores de status */
    --status-completed-bg: rgba(46, 204, 113, 0.2);
    --status-completed-text: #2ecc71;
    --status-in-progress-bg: rgba(52, 152, 219, 0.2);
    --status-in-progress-text: #3498db;
    --status-pending-bg: rgba(243, 156, 18, 0.2);
    --status-pending-text: #f39c12;
    --status-late-bg: rgba(231, 76, 60, 0.2);
    --status-late-text: #e74c3c;
    --status-default-bg: rgba(127, 140, 141, 0.2);
    --status-default-text: #7f8c8d;
    
    /* Efeitos */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* Cores de gráficos */
    --chart-color-1: #4e73df;
    --chart-color-2: #1cc88a;
    --chart-color-3: #36b9cc;
    --chart-color-4: #f6c23e;
    --chart-color-5: #e74a3b;
}

:root[data-theme="space"] {
    /* Cores de fundo */
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-accent: #1a365d;
    --bg-sidebar: linear-gradient(180deg, #0a192f 0%, #112240 100%);
    --bg-header: linear-gradient(90deg, #0a192f 0%, #112240 100%);
    
    /* Cores de texto */
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-sidebar: #e6f1ff;
    
    /* Cores de elementos */
    --border-color: #233554;
    --hover-bg: #233554;
    --table-header-bg: #112240;
    --table-header-text: #e6f1ff;
    --table-row-hover: #1a365d;
    --table-border-radius: 8px;
    --table-cell-padding: 1rem;
    --table-header-weight: 600;
    --input-bg: #0a192f;
    --input-border: #233554;
    
    /* Cores de botões */
    --btn-primary-bg: #64ffda;
    --btn-secondary-bg: #8892b0;
    
    /* Cores de status */
    --status-completed-bg: rgba(100, 255, 218, 0.2);
    --status-completed-text: #64ffda;
    --status-in-progress-bg: rgba(100, 255, 218, 0.1);
    --status-in-progress-text: #64ffda;
    --status-pending-bg: rgba(230, 241, 255, 0.1);
    --status-pending-text: #e6f1ff;
    --status-late-bg: rgba(255, 100, 100, 0.2);
    --status-late-text: #ff6464;
    --status-default-bg: rgba(136, 146, 176, 0.2);
    --status-default-text: #8892b0;
    
    /* Efeitos */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* Cores de gráficos */
    --chart-color-1: #64ffda;
    --chart-color-2: #e6f1ff;
    --chart-color-3: #8892b0;
    --chart-color-4: #233554;
    --chart-color-5: #112240;
}

:root[data-theme="law"] {
    /* Cores de fundo */
    --bg-primary: #f8f5f0;
    --bg-secondary: #ffffff;
    --bg-accent: #f3efe9;
    --bg-sidebar: #2c3e50;
    --bg-header: #34495e;
    
    /* Cores de texto */
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-sidebar: #ffffff;
    
    /* Cores de elementos */
    --border-color: #bdc3c7;
    --hover-bg: #ecf0f1;
    --table-header-bg: #34495e;
    --table-header-text: #ffffff;
    --table-row-hover: #f5f5f5;
    --input-bg: #ffffff;
    --input-border: #bdc3c7;
    
    /* Cores de botões */
    --btn-primary-bg: #2c3e50;
    --btn-secondary-bg: #7f8c8d;
    
    /* Cores de status */
    --status-completed-bg: rgba(46, 204, 113, 0.1);
    --status-completed-text: #27ae60;
    --status-in-progress-bg: rgba(52, 152, 219, 0.1);
    --status-in-progress-text: #2980b9;
    --status-pending-bg: rgba(243, 156, 18, 0.1);
    --status-pending-text: #f39c12;
    --status-late-bg: rgba(231, 76, 60, 0.1);
    --status-late-text: #c0392b;
    --status-default-bg: rgba(127, 140, 141, 0.1);
    --status-default-text: #7f8c8d;
    
    /* Efeitos */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Cores de gráficos */
    --chart-color-1: #2c3e50;
    --chart-color-2: #27ae60;
    --chart-color-3: #2980b9;
    --chart-color-4: #f39c12;
    --chart-color-5: #c0392b;
}

/* Variáveis comuns para todos os temas */
:root {
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* ======= RESET E ESTILOS BASE ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ======= SELETOR DE TEMA ======= */
/* Modal para detalhes da intimação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    height: 80%;
    max-width: 1200px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.modal-descricao {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.theme-selector {
    padding: 20px;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theme-option {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.theme-option:hover {
    transform: translateY(-2px);
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--border-color);
}

.preview-header {
    height: 30%;
    width: 100%;
}

.preview-content {
    height: 70%;
    width: 100%;
}

/* Estilos de visualização de tema */
.light-theme .preview-header { background: #f8f9fa; }
.light-theme .preview-content { background: #ffffff; }

.dark-theme .preview-header { background: #161b22; }
.dark-theme .preview-content { background: #0d1117; }

.space-theme .preview-header {
    background: linear-gradient(90deg, #0a192f 0%, #112240 100%);
}
.space-theme .preview-content { background: #0a192f; }

.law-theme .preview-header { background: #34495e; }
.law-theme .preview-content { background: #f8f5f0; }

/* ======= BARRA LATERAL ======= */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: var(--bg-sidebar);
    left: 0;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px var(--shadow-color);
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    overflow: auto;
    box-sizing: border-box;
    text-align: left;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 1; /* Certifique-se de que o conteúdo principal não fique atrás da sidebar */
}

.form-container {
    max-width: 100%;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-logo {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.sidebar-logo .logo-img {
    width: 70px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.sidebar.collapsed .logo-img {
    display: none; /* Hide logo when sidebar is collapsed */
}



.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-sidebar);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu ul li {
    margin: 5px 0;
}

.sidebar-menu ul li a {
    text-decoration: none;
    color: var(--text-sidebar);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0 10px;
}

.sidebar-menu ul li a:hover {
    background-color: var(--hover-bg);
}

.sidebar-menu ul li a i {
    min-width: 30px;
    font-size: 18px;
    text-align: center;
}

.sidebar-menu ul li a .menu-text {
    margin-left: 10px;
    opacity: 1;
    transition: opacity 0.3s;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Tooltips for menu items */
.sidebar-menu ul li a,
.sidebar-footer ul li a {
    position: relative;
}

.sidebar.collapsed .sidebar-menu ul li a:hover::after,
.sidebar.collapsed .sidebar-footer ul li a:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 80px; /* Position to the right of the icon */
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.sidebar.collapsed .sidebar-menu ul li a:hover::before,
.sidebar.collapsed .sidebar-footer ul li a:hover::before {
    content: attr(data-description);
    position: absolute;
    left: 80px; /* Position to the right of the icon */
    top: 50%;
    transform: translateY(10px);
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 5px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: normal;
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    width: 200px;
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer ul {
    list-style: none;
}

.sidebar-footer ul li {
    margin: 5px 0;
}

.sidebar-footer ul li a {
    text-decoration: none;
    color: var(--text-sidebar);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    border-radius: 8px;
    margin: 0 10px;
}

.sidebar-footer ul li a:hover {
    background-color: var(--hover-bg);
}

.sidebar-footer ul li a i {
    min-width: 30px;
    font-size: 18px;
    text-align: center;
}

/* ======= CONTEÚDO PRINCIPAL ======= */
/* This rule was moved and consolidated with the previous .main-content rule */

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.sidebar {
    z-index: 1000; /* Certifique-se de que a barra lateral esteja acima do conteúdo principal */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

header .theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    font-size: 18px;
}

header .theme-toggle:hover {
    background-color: var(--hover-bg);
}

.content {
    margin-left: 0; /* Removido margin-left adicional */
    padding: 15px 20px; /* Ajuste no padding */
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s;
    max-width: 100%; /* Limita largura máxima */
}

.process-list {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 15px;
    }
    
    .content {
        margin-left: 0;
        max-width: 100%;
        padding: 15px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    
    .sidebar.mobile-visible {
        transform: translateX(0);
        box-shadow: 2px 0 10px var(--shadow-color);
    }
}

/* ======= BOTÃO DE MENU MÓVEL ======= */
.mobile-menu-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--btn-primary-bg);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    align-items: center;
    justify-content: center;
}

/* ======= DASHBOARD ======= */
.dashboard-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Seção de boas-vindas do dashboard */
.dashboard-welcome {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-welcome h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.dashboard-date {
    color: var(--text-secondary);
    font-size: 16px;
    font-style: italic;
}

/* Estatísticas do dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:nth-child(1) {
    border-left: 4px solid var(--chart-color-1);
}

.stat-card:nth-child(2) {
    border-left: 4px solid var(--chart-color-5);
}

.stat-card:nth-child(3) {
    border-left: 4px solid var(--chart-color-4);
}

.stat-card:nth-child(4) {
    border-left: 4px solid var(--chart-color-2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-text);
}

.stat-card:nth-child(2) .stat-icon {
    background-color: var(--status-late-bg);
    color: var(--status-late-text);
}

.stat-card:nth-child(3) .stat-icon {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.stat-card:nth-child(4) .stat-icon {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.stat-icon i {
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-link {
    font-size: 14px;
    color: var(--btn-primary-bg);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-speed);
}

.stat-link:hover {
    opacity: 0.8;
}

.stat-link i {
    font-size: 12px;
    margin-left: 5px;
}

/* Conteúdo do dashboard */
.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 10px;
    color: var(--btn-primary-bg);
}

.view-all {
    font-size: 14px;
    color: var(--btn-primary-bg);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.view-all:hover {
    opacity: 0.8;
}

.card-content {
    padding: 20px;
}

/* Lista de tarefas */
.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-speed);
    cursor: pointer;
}

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

.task-item:hover {
    background-color: var(--hover-bg);
}

.task-info {
    flex: 1;
}

.task-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.task-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.task-date i {
    margin-right: 5px;
}

.task-status {
    margin-left: 15px;
}

/* Badges de status */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-completed {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.status-in-progress {
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-text);
}

.status-pending {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-late {
    background-color: var(--status-late-bg);
    color: var(--status-late-text);
}

.status-default {
    background-color: var(--status-default-bg);
    color: var(--status-default-text);
}

/* Lista de atividades */
.activity-list {
    list-style: none;
    padding: 0;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-speed);
    cursor: pointer;
}

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

.activity-item:hover {
    background-color: var(--hover-bg);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--status-in-progress-bg);
    color: var(--status-in-progress-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-info {
    flex: 1;
}

.activity-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.activity-meta {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.activity-type {
    margin-right: 10px;
    font-weight: 500;
}

.activity-date {
    font-style: italic;
}

.activity-status {
    margin-left: 15px;
}

/* Container de gráfico */
.chart-container {
    height: 250px;
    position: relative;
}

/* Estado vazio */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Mini calendário */
#mini-calendar {
    width: 100%;
}

.mini-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.mini-calendar-day-name {
    padding: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.mini-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.mini-calendar-day:hover {
    background-color: var(--hover-bg);
}

.mini-calendar-day.empty {
    visibility: hidden;
}

.mini-calendar-day.today {
    background-color: var(--btn-primary-bg);
    color: white;
    font-weight: 600;
}

.mini-calendar-day.has-event {
    font-weight: 600;
}

.event-indicator {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--btn-primary-bg);
}

.mini-calendar-day.today .event-indicator {
    background-color: white;
}

/* ======= UPLOAD DE ARQUIVOS ======= */
.drop-area {
    border: 2px dashed var(--border-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
}

.drop-area:hover {
    background-color: var(--hover-bg);
}

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

.file-list th, .file-list td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.file-list th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
}

.file-list td a {
    color: var(--btn-primary-bg);
    text-decoration: none;
}

.file-list td a:hover {
    opacity: 0.8;
}

.delete-icon {
    color: var(--status-late-text);
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* ======= NOTIFICAÇÕES ======= */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.notification i:first-child {
    margin-right: 10px;
    font-size: 18px;
}

.notification span {
    flex: 1;
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px;
    margin-left: 10px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-info {
    border-left: 4px solid var(--status-in-progress-text);
}

.notification-info i:first-child {
    color: var(--status-in-progress-text);
}

.notification-success {
    border-left: 4px solid var(--status-completed-text);
}

.notification-success i:first-child {
    color: var(--status-completed-text);
}

.notification-warning {
    border-left: 4px solid var(--status-pending-text);
}

.notification-warning i:first-child {
    color: var(--status-pending-text);
}

.notification-error {
    border-left: 4px solid var(--status-late-text);
}

.notification-error i:first-child {
    color: var(--status-late-text);
}

/* Tooltip */
.tooltip {
    position: fixed;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* ======= TAREFAS E CALENDÁRIO ======= */
.task-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    box-shadow: var(--card-shadow);
    width: calc(100% - 40px); /* Garante que ocupe a largura total menos as margens */
    box-sizing: border-box;
}

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

.task-list {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: var(--card-shadow);
}

.task-list th {
    background: var(--table-header-bg);
    color: var(--table-header-text);
    font-weight: 500;
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
    border-top: none;
    white-space: nowrap;
}

.task-list th:first-child {
    border-left: none;
    border-top-left-radius: 8px;
}

.task-list th:last-child {
    border-right: none;
    border-top-right-radius: 8px;
}

.task-list .col-checkbox {
    width: 50px;
}

.task-list .col-actions {
    width: 100px;
}

.task-list td {
    padding: 15px;
    text-align: left;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    vertical-align: middle;
}

.task-list td:first-child {
    border-left: none;
}

.task-list td:last-child {
    border-right: none;
}

.task-list tr:last-child td {
    border-bottom: none;
}

.task-list tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.task-list tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.task-list tr:hover td {
    background: var(--hover-bg);
}

.task-list tr.details-row td {
    padding: 0;
    border: none;
}

.task-list tr.details-row:hover td {
    background: none;
}

.task-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.task-checkbox:checked {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.task-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.date-header {
    background: var(--bg-accent);
    padding: 12px 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 8px;
    margin: 30px 0 15px 0;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-header .task-count {
    font-size: 0.9em;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 15px;
}

.btn-new-task {
    background: var(--btn-primary-bg);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn-new-task:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.task-details {
    background: var(--bg-secondary);
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.task-details.active {
    display: block;
}

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

.task-description {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    line-height: 1.6;
}

.iterations-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.iterations-list h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.iteration-item {
    background: var(--bg-primary);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.iteration-item small {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.status-pendente {
    background-color: var(--status-pending-bg);
    color: var(--status-pending-text);
}

.status-concluida {
    background-color: var(--status-completed-bg);
    color: var(--status-completed-text);
}

.new-iteration {
    margin-top: 20px;
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
}

.new-iteration textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
}

.new-iteration textarea:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
    box-shadow: 0 0 0 2px rgba(40, 53, 147, 0.1);
}

/* ======= FORMULÁRIO DE TAREFAS ======= */
.task-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ======= IMPROVED TABLE STYLES ======= */
.improved-table,
table.striped-table,
.task-list,
.file-list table,
.process-list table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.improved-table thead,
table.striped-table thead,
.task-list thead,
.file-list table thead,
.process-list table thead {
    background-color: var(--bg-sidebar);
    color: var(--text-sidebar);
}

.improved-table th,
.improved-table td,
table.striped-table th,
table.striped-table td,
.task-list th,
.task-list td,
.file-list table th,
.file-list table td,
.process-list table th,
.process-list table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.improved-table th,
table.striped-table th,
.task-list th,
.file-list table th,
.process-list table th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.improved-table td:last-child,
.improved-table th:last-child,
table.striped-table td:last-child,
table.striped-table th:last-child,
.task-list td:last-child,
.task-list th:last-child,
.file-list table td:last-child,
.file-list table th:last-child,
.process-list table td:last-child,
.process-list table th:last-child {
    border-right: none;
}

.improved-table tbody tr:hover,
table.striped-table tbody tr:hover,
.task-list tbody tr:hover,
.file-list table tbody tr:hover,
.process-list table tbody tr:hover {
    background-color: var(--hover-bg);
}

.improved-table tbody tr:last-child td,
table.striped-table tbody tr:last-child td,
.task-list tbody tr:last-child td,
.file-list table tbody tr:last-child td,
.process-list table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors for better readability */
.improved-table tbody tr:nth-child(even),
table.striped-table tbody tr:nth-child(even),
.task-list tbody tr:nth-child(even),
.file-list table tbody tr:nth-child(even),
.process-list table tbody tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Button styles for table actions */
.table-action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    background-color: var(--btn-primary-bg);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.table-action-btn:hover {
    background-color: var(--btn-secondary-bg);
}

.table-action-btn.delete {
    background-color: var(--status-late-text);
}

.table-action-btn.delete:hover {
    background-color: #c0392b;
}

/* Google Drive link styles */
.google-drive-link {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.google-drive-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #4285F4;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.google-drive-link a:hover {
    background-color: #3367D6;
}

.google-drive-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drive-info {
    font-size: 0.9em;
    color: var(--text-secondary);
    background-color: var(--bg-accent);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #4285F4;
}

/* ======= IMPROVED FORM STYLES ======= */
.form-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.form-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-accent);
}

.form-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header h2 i {
    color: var(--btn-primary-bg);
}

.improved-form {
    padding: 20px;
}

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

.form-group {
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group label i {
    color: var(--btn-primary-bg);
    margin-right: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--btn-primary-bg);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

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

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.alert p {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
    color: #e74c3c;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left-color: #2ecc71;
    color: #2ecc71;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-accent);
}

.btn-add-field {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.outros-dados-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.outro-dado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-primary);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.outro-dado-inputs {
    display: flex;
    gap: 10px;
    flex: 1;
}

.outro-dado-inputs input {
    flex: 1;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: var(--bg-accent);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.btn-remove {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-remove:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

/* Action buttons in tables */
.actions-column {
    white-space: nowrap;
    text-align: center;
}

.actions-column .btn-icon {
    margin: 0 3px;
}

.btn-edit {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn-edit:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.btn-files {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f39c12;
}

.btn-files:hover {
    background-color: rgba(241, 196, 15, 0.2);
}

.btn-delete {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.btn-drive {
    background-color: rgba(52, 168, 83, 0.1);
    color: #34a853;
    font-size: 1.2rem;
}

.btn-drive:hover {
    background-color: rgba(52, 168, 83, 0.2);
}

.btn-download {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.btn-download:hover {
    background-color: rgba(66, 133, 244, 0.2);
}

/* Modal action buttons */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

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

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-details {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.btn-details:hover {
    background-color: rgba(46, 204, 113, 0.2);
}

/* Client Details Page Styles */
.client-details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.client-details-header {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.client-details-header h2 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.client-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-folder-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.client-folder-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-section, .files-section {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.upload-section h3, .files-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.file-input {
    padding: 8px;
    background-color: var(--bg-primary);
}

.client-info h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-secondary);
}

.client-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.client-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.detail-section {
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

/* Different background colors for each section */
.detail-section:nth-child(1) {
    background-color: rgba(52, 152, 219, 0.1); /* Light blue */
}

.detail-section:nth-child(2) {
    background-color: rgba(231, 76, 60, 0.1); /* Light pink/red */
}

.detail-section:nth-child(3) {
    background-color: rgba(46, 204, 113, 0.1); /* Light green */
}

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

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 10% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-primary);
    text-decoration: none;
}

.appointment-detail {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
}

.appointment-detail p {
    margin: 10px 0;
}

.error {
    color: #e74c3c;
}

/* Assignee section styles */
.assignee-section {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--bg-accent);
    border-radius: 4px;
    border-left: 3px solid var(--btn-primary-bg);
}

.assignee-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.assignee-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.assignee-fields {
    display: none;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    margin-top: 10px;
}

.assignee-fields.active {
    display: block;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Checkbox group styles */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

.task-form {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

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

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

.assignee-toggle {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
}

.assignee-fields {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.assignee-fields.active {
    display: block;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
}

.alert-error {
    background-color: var(--status-late-text);
}

.alert-success {
    background-color: var(--status-completed-text);
}

.alert-info {
    background-color: var(--status-in-progress-text);
}

.alert-warning {
    background-color: var(--status-pending-text);
}

/* ======= LISTAGENS (CLIENTES, PROCESSOS, ATENDIMENTOS) ======= */
.clients-header, .filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-form, .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input[type="text"],
.filter-group input[type="text"],
.filter-group select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.search-form label {
    margin-left: 10px;
    color: var(--text-primary);
}

.clients-table,
.process-list table,
.appointment-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.clients-table th,
.clients-table td,
.process-list th,
.process-list td,
.appointment-list th,
.appointment-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.clients-table th,
.process-list th,
.appointment-list th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    font-weight: 600;
}

.clients-table tr:hover,
.process-list tr:hover,
.appointment-list tr:hover {
    background-color: var(--hover-bg);
}

.btn-new-process,
.btn-new-appointment {
    background-color: var(--btn-primary-bg);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-new-process:hover,
.btn-new-appointment:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ======= PERFIL DE USUÁRIO ======= */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-section {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.profile-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.theme-option {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.theme-option.selected {
    border-color: var(--btn-primary-bg);
}

.fade-out {
    opacity: 0;
}

/* ======= DESIGN RESPONSIVO ======= */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .task-item, .activity-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-status, .activity-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .activity-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-welcome h1 {
        font-size: 24px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .card-header {
        padding: 10px 15px;
    }
    
    .card-content {
        padding: 15px;
    }
}

/* ======= FORMULÁRIOS ======= */
.form-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--btn-primary-bg);
    box-shadow: 0 0 0 3px rgba(var(--btn-primary-bg), 0.2);
}

.form-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* ======= BOTÕES ======= */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--hover-bg);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 18px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    margin-right: 8px;
}

/* ======= TABELAS ======= */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--table-header-bg);
    color: var(--table-header-text);
    font-weight: 600;
}

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

.table tr:hover td {
    background-color: var(--table-row-hover);
}

.table-striped tr:nth-child(even) {
    background-color: var(--bg-accent);
}

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

/* ======= ADMIN PANEL ======= */
.admin-section {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
}

.admin-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maintenance-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ======= TABELAS ======= */
.process-list table {
    width: 100%;
    font-size: 0.9em; /* Or smaller */
}

.process-list table td {
    word-wrap: break-word;
    white-space: normal;
}
