/* css/style.css - Tema Maiorca com legibilidade */
:root {
    --sea: #0077b6;
    --sand: #f4a261;
    --sun: #e9c46a;
    --white: #ffffff;
    --light-bg: #fef9e8;
    --gray: #495057;
    --border-radius: 1.5rem;
    --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light-bg);
    font-family: 'Segoe UI', 'Nunito', sans-serif;
    color: #212529;
    line-height: 1.5;
}

/* Cards com fundo sólido */
.card-modern {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #dee2e6;
}

/* Sidebar com contraste */
.sidebar {
    background: #fff2e0;
    min-height: 100vh;
    border-right: 1px solid #ffddb0;
}

.sidebar .nav-link {
    color: #2c3e50;
    font-weight: 500;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--sea);
    color: white;
}

/* Botões */
.btn-primary {
    background: var(--sea);
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: #005f8c;
}

.btn-sun {
    background: var(--sun);
    color: #5a3e1b;
}

/* Inputs */
.form-control, .form-select {
    border-radius: 2rem;
    border: 1px solid #ced4da;
    background: white;
    color: #212529;
}

/* Tabelas */
.table-modern {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
}

.table-modern th {
    background: #e9ecef;
    color: #212529;
}

/* Chat flutuante */
.chat-sidebar {
    background: white;
    border: 1px solid #dee2e6;
}

/* Mensagens do chat */
.chat-message {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

.chat-header {
    background: var(--sea);
    color: white;
    padding: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.chat-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
}

/* Tabelas */
.table-modern {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table-modern th {
    background: #fff2e0;
    border-bottom: 2px solid #ffddb0;
}

/* Badges */
.badge-sea {
    background: var(--sea);
    color: white;
}

/* Progresso checklist */
.progress {
    border-radius: 2rem;
    height: 0.7rem;
}

/* Cards de documentos */
.document-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1rem;
    text-align: center;
    transition: 0.2s;
    box-shadow: var(--box-shadow);
    border: 1px solid #ffddb0;
}

.document-card:hover {
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        transition: 0.3s;
        z-index: 1050;
        width: 280px;
    }
    .sidebar.show {
        left: 0;
    }
    .chat-sidebar {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }
}

/* Animações suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}