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

* { box-sizing: border-box; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }

.shadow-soft { box-shadow: 0 18px 45px rgba(15, 23, 42, .10); }
.logo-mark { display: grid; width: 52px; height: 52px; flex-shrink: 0; place-items: center; overflow: hidden; border-radius: 12px; background: white; padding: 4px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-logo { width: 46px; height: 46px; }
.nav-link, .nav-active { display: inline-flex; align-items: center; height: 42px; border-radius: 8px; padding: 0 13px; font-size: 14px; font-weight: 650; color: #334155; transition: .2s ease; }
.dark .nav-link, .dark .nav-active { color: #cbd5e1; }
.nav-link:hover, .nav-active { color: #005BAC; background: #eff6ff; }
.dark .nav-link:hover, .dark .nav-active { background: rgba(37, 99, 235, .16); color: #93c5fd; }
.mobile-link { border-radius: 8px; padding: 10px 12px; font-weight: 700; }
.mobile-link:hover { background: #eff6ff; color: #005BAC; }

.btn-primary, .btn-white, .btn-ghost-white, .icon-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; font-size: 14px; font-weight: 800; transition: .2s ease; }
.btn-primary { min-height: 42px; background: #005BAC; color: white; padding: 0 16px; box-shadow: 0 12px 24px rgba(0, 91, 172, .22); }
.btn-primary:hover { transform: translateY(-1px); background: #004d91; }
.btn-white { min-height: 44px; background: white; color: #0f172a; padding: 0 18px; }
.btn-ghost-white { min-height: 44px; border: 1px solid rgba(255,255,255,.45); color: white; padding: 0 18px; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }
.icon-btn { width: 42px; height: 42px; justify-content: center; border: 1px solid #e2e8f0; background: white; color: #0f172a; }
.dark .icon-btn { border-color: #1e293b; background: #0f172a; color: white; }

.quick-card { display: grid; min-height: 116px; place-items: center; gap: 9px; border-radius: 10px; padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 800; color: #1e293b; transition: .22s ease; }
.dark .quick-card { color: #e2e8f0; }
.quick-card:hover { background: #f8fafc; transform: translateY(-3px); box-shadow: inset 0 0 0 1px #e2e8f0; }
.dark .quick-card:hover { background: #0f172a; box-shadow: inset 0 0 0 1px #1e293b; }
.quick-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 999px; color: white; box-shadow: 0 12px 24px rgba(15,23,42,.18); }
.quick-icon svg { width: 25px; height: 25px; }

.stat-card { display: flex; align-items: center; gap: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: white; padding: 18px; box-shadow: 0 12px 28px rgba(15,23,42,.06); }
.dark .stat-card { border-color: #1e293b; background: #0f172a; }
.stat-card > svg { width: 42px; height: 42px; border-radius: 10px; background: #eff6ff; color: #005BAC; padding: 10px; }
.dark .stat-card > svg { background: rgba(37,99,235,.18); color: #93c5fd; }
.stat-card p { font-size: 12px; font-weight: 750; color: #64748b; }
.stat-card strong { display: block; margin-top: 2px; font-size: 24px; line-height: 1; color: #0f172a; }
.dark .stat-card strong { color: white; }

.section-head { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head p, .eyebrow { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; color: #005BAC; }
.section-head h2 { margin-top: 3px; font-size: 24px; font-weight: 850; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; color: #005BAC; font-size: 13px; font-weight: 800; }
.section-head a svg { width: 15px; }
.compact { margin-bottom: 14px; }
.compact h2 { font-size: 18px; }

.news-card, .panel, .info-tile, .timeline-card { border: 1px solid #e2e8f0; border-radius: 10px; background: white; box-shadow: 0 12px 28px rgba(15,23,42,.06); }
.dark .news-card, .dark .panel, .dark .info-tile, .dark .timeline-card { border-color: #1e293b; background: #0f172a; }
.news-card { overflow: hidden; transition: .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(15,23,42,.10); }
.news-card img { height: 160px; width: 100%; object-fit: cover; }
.news-card div { padding: 16px; }
.news-card time { font-size: 12px; font-weight: 750; color: #64748b; }
.news-card h3 { margin-top: 7px; font-size: 17px; font-weight: 850; line-height: 1.25; color: #0f3f78; }
.dark .news-card h3 { color: #bfdbfe; }
.news-card p { margin: 10px 0 14px; font-size: 13px; line-height: 1.6; color: #64748b; }
.news-card a { font-size: 13px; font-weight: 850; color: #005BAC; }
.panel { padding: 18px; }

.announce { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 13px 0; }
.announce h3 { font-size: 14px; font-weight: 850; line-height: 1.35; }
.announce p { margin-top: 3px; font-size: 12px; color: #64748b; }
.badge-danger, .badge-info, .badge-soft { align-self: start; border-radius: 999px; padding: 5px 9px; text-align: center; font-size: 11px; font-weight: 850; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #dbeafe; color: #005BAC; }
.badge-soft { background: #f1f5f9; color: #475569; }

.check-item { position: relative; padding-left: 28px; }
.check-item:before { content: "✓"; position: absolute; left: 0; top: -1px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 900; }
.timeline-card { position: relative; padding: 18px; }
.timeline-card:before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 999px; background: #005BAC; }
.timeline-card span { color: #005BAC; font-weight: 900; }
.timeline-card h3 { margin-top: 10px; font-weight: 850; }
.timeline-card p { margin: 8px 0 12px; color: #64748b; font-size: 13px; }
.timeline-card b { border-radius: 999px; background: #eff6ff; color: #005BAC; padding: 6px 10px; font-size: 12px; }

.info-tile { padding: 18px; }
.info-tile svg { width: 36px; height: 36px; color: #005BAC; }
.info-tile h3 { margin-top: 14px; font-weight: 850; }
.info-tile p { margin-top: 6px; color: #64748b; font-size: 14px; line-height: 1.6; }

footer h3 { margin-bottom: 12px; color: white; font-weight: 850; }
footer p, footer a { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.7; color: #cbd5e1; }
.social { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.08); color: white; }
.social svg { width: 18px; height: 18px; }

.dashboard-sidebar { border-right: 1px solid #e2e8f0; background: white; padding: 24px; }
.dark .dashboard-sidebar { border-color: #1e293b; background: #020617; }
.dashboard-sidebar small { display: block; color: #64748b; font-size: 12px; font-weight: 700; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: 11px; border-radius: 8px; padding: 12px; color: #475569; font-weight: 800; cursor: pointer; }
.dark .dashboard-sidebar nav a { color: #cbd5e1; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar .side-active { background: #eff6ff; color: #005BAC; }
.dark .dashboard-sidebar nav a:hover, .dark .dashboard-sidebar .side-active { background: rgba(37,99,235,.16); color: #93c5fd; }
.dashboard-sidebar nav svg { width: 18px; height: 18px; }
.welcome-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 12px; background: linear-gradient(135deg, #005BAC, #0f7edb); padding: 26px; color: white; box-shadow: 0 18px 45px rgba(0,91,172,.24); }
.welcome-card p { font-weight: 700; color: #dbeafe; }
.welcome-card h2 { margin-top: 4px; font-size: 30px; font-weight: 900; }
.welcome-card span { display: block; margin-top: 8px; color: #dbeafe; }
.activity { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid #e2e8f0; }
.dark .activity { border-color: #1e293b; }
.activity span { margin-top: 3px; width: 13px; height: 13px; border-radius: 999px; background: #005BAC; box-shadow: 0 0 0 5px #dbeafe; }
.activity b { font-size: 14px; }
.activity p { margin-top: 4px; font-size: 12px; color: #64748b; }
.doc-row { display: grid; grid-template-columns: 34px 1fr 24px; gap: 12px; align-items: center; border-radius: 9px; padding: 12px; color: inherit; }
.doc-row:hover { background: #f8fafc; }
.dark .doc-row:hover { background: #111827; }
.doc-row > svg:first-child { color: #005BAC; }
.doc-row b { font-size: 14px; }
.doc-row small { display: block; margin-top: 3px; color: #64748b; }
.chart-panel { min-height: 360px; }
.chart-panel canvas { max-height: 285px; }

.animate-rise { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1023px) {
  .dashboard-sidebar { position: static; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .dashboard-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  .announce { grid-template-columns: 1fr; }
  .dashboard-sidebar nav { grid-template-columns: 1fr; }
  .welcome-card h2 { font-size: 24px; }
  .quick-access-grid .quick-card { min-height: 92px; gap: 6px; padding: 10px 3px; font-size: 10.5px; line-height: 1.25; }
  .quick-access-grid .quick-icon { width: 42px; height: 42px; }
  .quick-access-grid .quick-icon svg { width: 20px; height: 20px; }
}

/* ─── Public Page Hero ─────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, #005BAC, #0f7edb); padding: 36px 0; color: white; }
.page-hero h1 { font-size: 28px; font-weight: 900; margin: 0 0 6px; }
.page-hero nav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #bfdbfe; }
.page-hero nav a { color: #bfdbfe; }
.page-hero nav a:hover { color: white; }

/* ─── Pagination (Laravel default) ────────────────────── */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination > * { display: inline-flex; }
.pagination span[aria-current] span, .pagination a { min-width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 1px solid #e2e8f0; background: white; color: #334155; padding: 0 8px; transition: .15s ease; }
.dark .pagination span[aria-current] span, .dark .pagination a { border-color: #1e293b; background: #0f172a; color: #cbd5e1; }
.pagination span[aria-current] span { background: #005BAC; color: white; border-color: #005BAC; }
.pagination a:hover { border-color: #005BAC; color: #005BAC; background: #eff6ff; }

/* ─── Line clamp utilities ─────────────────────────────── */
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

