/* NutriCheck - Custom Styles - Tema verde (pitch deck) */

:root {
    /* Paleta principal baseada no material do cliente:
       verde principal + verde escuro + neutros claros */
    --primary-color: #1f7a4d;      /* verde principal */
    --secondary-color: #145c38;    /* verde mais escuro */
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #4bbda8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    /* Sobrescrever Bootstrap para tema verde */
    --bs-primary: #1f7a4d;
    --bs-primary-rgb: 31, 122, 77;
}

/* Forçar tema verde em todos os elementos primary do Bootstrap */
.bg-primary,
.navbar.bg-primary,
.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}
.border-primary {
    border-color: var(--primary-color) !important;
}
.alert-primary {
    background-color: rgba(31, 122, 77, 0.1);
    border-color: var(--primary-color);
    color: #0f3d2e;
}

/* Layout Fixes */
.main-content-wrapper {
    width: 100%;
    padding: 20px !important;
    margin-top: 0 !important;
}

/* Global Styles */
body {
    /* Aproximar da família Arial usada no pitch */
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* Custom Button Styles */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Form Styles */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(155, 135, 245, 0.25);
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Dashboard Cards - roxo claro */
.dashboard-card {
    background: linear-gradient(135deg, #b19cd9 0%, #9b87f5 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1rem;
}

.dashboard-card.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.dashboard-card.warning {
    background: linear-gradient(135deg, #d4a5e8 0%, #e8b4f0 100%);
}

.dashboard-card.info {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-cadastrado { background-color: #e3f2fd; color: #1976d2; }
.status-termo_aceito { background-color: #fff3e0; color: #f57c00; }
.status-selfie_tirada { background-color: #e8f5e8; color: #388e3c; }
.status-video_assistido { background-color: #f3e5f5; color: #7b1fa2; }
.status-questionario_respondido { background-color: #fff8e1; color: #fbc02d; }
.status-autorizado { background-color: #e8f5e8; color: #388e3c; }
.status-finalizado { background-color: #f3e5f5; color: #7b1fa2; }

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Table Styles */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
} 