@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-glass: rgba(21,60,130,0.04);
    --border: rgba(21,60,130,0.1);
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    /* School colors from logo */
    --blue: #153c82;
    --blue-light: #1e56b0;
    --blue-pale: #e8eef8;
    --gold: #d4a017;
    --gold-light: #f0c230;
    --gold-pale: #fdf6e3;
    --green: #2e7d32;
    --green-pale: #e8f5e9;
    --red: #c62828;
    --red-pale: #ffebee;
    --accent: var(--blue);
    --accent-light: var(--blue-light);
    --accent-glow: rgba(21,60,130,0.2);
    --success: #2e7d32;
    --warning: #d4a017;
    --danger: #c62828;
    --info: #1565c0;
    --gradient-1: linear-gradient(135deg, #153c82, #1e56b0);
    --gradient-2: linear-gradient(135deg, #1e56b0, #2979cc);
    --gradient-hero: linear-gradient(135deg, #153c82 0%, #1e56b0 50%, #0d2b5e 100%);
    --gradient-gold: linear-gradient(135deg, #d4a017, #f0c230);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(21,60,130,0.08);
    --shadow-md: 0 4px 24px rgba(21,60,130,0.12);
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; width: 100%; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; width: 100%; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; }
.badge-primary { background: var(--blue-pale); color: var(--blue); }
.badge-success { background: var(--green-pale); color: var(--green); }
.badge-warning { background: var(--gold-pale); color: var(--gold); }
.badge-danger { background: var(--red-pale); color: var(--red); }
.badge-info { background: #e3f2fd; color: #1565c0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: none; border-radius: var(--radius);
    font-family: inherit; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-secondary { background: #fff; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--blue-pale); }
.btn-danger { background: var(--red-pale); color: var(--danger); }
.btn-danger:hover { background: #ffcdd2; }
.btn-success { background: var(--green-pale); color: var(--success); }
.btn-success:hover { background: #c8e6c9; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 14px;
    background: #fff; border: 1.5px solid #d0d9e4;
    border-radius: var(--radius); color: var(--text-primary);
    font-family: inherit; font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Tables */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 0.875rem; }
th { background: var(--blue-pale); color: var(--blue); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.5px; border-bottom: 2px solid rgba(21,60,130,0.15); }
td { border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(21,60,130,0.02); }

/* Login Page */
.login-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-hero);
    position: relative; overflow: hidden;
}
.login-wrapper::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212,160,23,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
    animation: bgPulse 8s ease-in-out infinite;
}
@keyframes bgPulse { 0%,100%{transform:scale(1) rotate(0deg)} 50%{transform:scale(1.05) rotate(2deg)} }

.login-box { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 24px; }
.login-card {
    background: #fff; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px; padding: 44px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img {
    width: 100px; height: 100px; margin: 0 auto 14px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(21,60,130,0.25);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.login-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.login-logo p { color: var(--text-muted); font-size: 0.9rem; }

.login-tabs { display: flex; gap: 4px; background: var(--bg-primary); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.login-tab {
    flex: 1; padding: 10px; border: none; background: transparent;
    color: var(--text-muted); font-family: inherit; font-size: 0.85rem;
    font-weight: 600; border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.login-tab.active { background: var(--gradient-1); color: #fff; }
.login-error { background: var(--red-pale); border: 1px solid #ef9a9a; border-radius: var(--radius); padding: 10px 14px; color: var(--danger); font-size: 0.85rem; margin-bottom: 16px; display: none; }
.login-error.show { display: block; animation: shake 0.4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px; background: var(--blue); 
    display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
    transition: transform 0.3s ease;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; gap: 12px; }
.sidebar-header img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.sidebar-header .header-text h2 { font-size: 1rem; font-weight: 800; color: #fff; }
.sidebar-header .header-text p { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,0.7);
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); border: none; background: none;
    width: 100%; text-align: left; font-family: inherit;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #fff; border-left: 3px solid var(--gold); }
.nav-item .nav-icon { font-size: 1.1rem; width: 24px; text-align: center; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.sidebar-footer .btn { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.sidebar-footer .btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.main-content { flex: 1; margin-left: 260px; min-height: 100vh; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky; top: 0; z-index: 40;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.topbar h2 { font-size: 1.25rem; font-weight: 700; color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.page-content { padding: 32px; }

/* Stat Cards */
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow); transition: var(--transition);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
}
.stat-card::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 80px; height: 80px; border-radius: 0 0 0 80px;
    opacity: 0.08;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; color: var(--blue); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-indigo .stat-icon { background: var(--blue-pale); color: var(--blue); }
.stat-indigo::after { background: var(--blue); }
.stat-green .stat-icon { background: var(--green-pale); color: var(--green); }
.stat-green::after { background: var(--green); }
.stat-amber .stat-icon { background: var(--gold-pale); color: var(--gold); }
.stat-amber::after { background: var(--gold); }
.stat-red .stat-icon { background: var(--red-pale); color: var(--red); }
.stat-red::after { background: var(--red); }
.stat-blue .stat-icon { background: #e3f2fd; color: #1565c0; }
.stat-blue::after { background: #1565c0; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-item::before {
    content: ''; position: absolute; left: -24px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--blue); border: 2px solid #fff;
}
.timeline-item.severity-leve::before { background: var(--green); }
.timeline-item.severity-media::before { background: var(--gold); }
.timeline-item.severity-grave::before { background: var(--red); }

/* Grade Circle */
.grade-circle {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800; flex-shrink: 0;
    border: 3px solid; background: #fff;
}

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(21,60,130,0.4);
    backdrop-filter: blur(4px); display: flex; align-items: center;
    justify-content: center; z-index: 100; opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
    background: #fff; border: 1px solid var(--border);
    border-radius: 20px; padding: 32px; width: 90%; max-width: 540px;
    max-height: 85vh; overflow-y: auto;
    transform: translateY(20px) scale(0.96); transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 4px; }
.modal-close:hover { color: var(--text-primary); }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 20px;
    min-width: 300px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 10px;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
    font-size: 0.875rem;
}
.toast.toast-success { border-left: 3px solid var(--success); }
.toast.toast-error { border-left: 3px solid var(--danger); }
.toast.toast-info { border-left: 3px solid var(--info); }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes fadeOut { to{opacity:0;transform:translateX(100%)} }

/* Hamburger */
.hamburger { display: none; background: none; border: none; color: var(--blue); font-size: 1.4rem; cursor: pointer; padding: 8px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45; }

/* Empty State */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }

/* Section Title */
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: var(--blue); }

/* Gold accent bar on top of cards */
.card-gold { border-top: 3px solid var(--gold); }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.active { display: block; }
    .hamburger { display: block; }
    .main-content { margin-left: 0; }
    .topbar { padding: 10px 16px; min-height: 60px; }
    .topbar h2 { font-size: 1.1rem; }
    #student-badge { display: none; } /* Esconde o badge do aluno no celular para dar espaço */
    .notif-bell { font-size: 1.1rem; width: 36px; height: 36px; }
    .page-content { padding: 16px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .login-box { padding: 16px; }
    .stat-card .stat-value { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 1.2rem; }
}

/* Animations */
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.stagger > * { animation: fadeIn 0.4s ease backwards; }
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
.stagger > *:nth-child(3) { animation-delay: 0.05s; }
.stagger > *:nth-child(4) { animation-delay: 0.1s; }
.stagger > *:nth-child(5) { animation-delay: 0.15s; }
.stagger > *:nth-child(6) { animation-delay: 0.2s; }

/* Notification Bell */
.notif-bell {
    position: relative; cursor: pointer; font-size: 1.3rem;
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; transition: var(--transition);
}
.notif-bell:hover { background: var(--blue-pale); }
.notif-count {
    position: absolute; top: 2px; right: 2px;
    background: var(--danger); color: #fff; font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
.notif-count.hide { display: none; }

/* Progress Ring */
.progress-ring { position: relative; width: 120px; height: 120px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-bg { fill: none; stroke: #e8eef8; stroke-width: 8; }
.progress-ring .ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.progress-ring .ring-text {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.progress-ring .ring-value { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.progress-ring .ring-label { font-size: 0.7rem; color: var(--text-muted); }

/* Bar Chart */
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0 4px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
    width: 100%; max-width: 40px; border-radius: 6px 6px 2px 2px;
    transition: height 0.8s cubic-bezier(0.4,0,0.2,1);
    position: relative; cursor: pointer; min-height: 4px;
}
.bar:hover { opacity: 0.85; transform: scaleY(1.02); }
.bar-label { font-size: 0.68rem; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52px; }
.bar-value { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); }

/* Calendar Widget */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-header { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-align: center; padding: 8px 0; text-transform: uppercase; }
.cal-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; border-radius: 8px; cursor: default; position: relative;
    font-weight: 500; color: var(--text-secondary);
}
.cal-day.today { background: var(--blue); color: #fff; font-weight: 700; border-radius: 50%; }
.cal-day.has-event { font-weight: 700; color: var(--blue); }
.cal-day.has-event::after {
    content: ''; position: absolute; bottom: 3px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.cal-day.other-month { color: #ccc; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-nav h3 { font-size: 1rem; font-weight: 700; color: var(--blue); text-transform: capitalize; }
.cal-nav button { background: var(--blue-pale); border: none; color: var(--blue); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.cal-nav button:hover { background: var(--blue); color: #fff; }

/* Event List */
.event-item {
    display: flex; gap: 12px; padding: 12px; border-radius: 10px;
    border: 1px solid var(--border); margin-bottom: 8px; transition: var(--transition);
    background: #fff;
}
.event-item:hover { box-shadow: var(--shadow); }
.event-date-box {
    width: 48px; min-width: 48px; text-align: center; padding: 6px;
    border-radius: 8px; background: var(--blue-pale);
}
.event-date-box .day { font-size: 1.2rem; font-weight: 800; color: var(--blue); line-height: 1; }
.event-date-box .month { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.event-info { flex: 1; min-width: 0; }
.event-info h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.event-info p { font-size: 0.78rem; color: var(--text-muted); }
.event-tag { padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; }
.event-tag.tag-prova { background: var(--blue-pale); color: var(--blue); }
.event-tag.tag-seminario { background: var(--gold-pale); color: var(--gold); }

/* Greeting */
.greeting-card {
    background: var(--gradient-1); border-radius: var(--radius-lg);
    padding: 28px 32px; color: #fff; position: relative; overflow: hidden;
}
.greeting-card::after {
    content: ''; position: absolute; right: -20px; top: -20px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.greeting-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.greeting-card p { font-size: 0.9rem; opacity: 0.85; }

/* Boletim / Report Card */
.boletim-table { width: 100%; border-collapse: collapse; }
.boletim-table th { background: var(--blue); color: #fff; padding: 10px 14px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.boletim-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 0.85rem; text-align: center; }
.boletim-table td:first-child { text-align: left; font-weight: 600; }
.boletim-table tr:nth-child(even) { background: #f8fafc; }
.boletim-table .avg-row { background: var(--blue-pale) !important; font-weight: 700; }
.boletim-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--blue); }
.boletim-header img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.boletim-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.boletim-header p { font-size: 0.8rem; color: var(--text-muted); }

/* Signatures for Boletim - Hidden on screen, shown only on print */
.boletim-signatures {
    display: none;
    justify-content: space-around;
    margin-top: 50px;
    padding-bottom: 20px;
}


@media print {
    @page {
        size: portrait;
        margin: 1cm;
    }
    .sidebar, .topbar, .hamburger, .sidebar-overlay, .no-print, .toast-container { display: none !important; }
    .main-content { margin-left: 0 !important; width: 100% !important; }
    .page-content { padding: 0 !important; }
    .card { 
        box-shadow: none !important; 
        border: none !important; 
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .boletim-header { margin-bottom: 15px; padding-bottom: 10px; }
    .boletim-header h2 { font-size: 1.2rem; }
    .boletim-table th, .boletim-table td { padding: 6px 10px; font-size: 0.75rem; }
    .boletim-table .badge { padding: 2px 8px; font-size: 0.65rem; }
    body { background: #fff; }
    .fade-in { transform: none !important; animation: none !important; }
    
    .boletim-signatures {
        display: flex !important;
        margin-top: 60px;
    }
}





.signature-box {
    text-align: center;
    flex: 1;
}
.signature-line {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.signature-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
