﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --dark:          #0f172a;
  --gray-100:      #f8fafc;
  --gray-200:      #f1f5f9;
  --gray-600:      #64748b;
  --gray-800:      #1e293b;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --transition:    .25s ease;
  --font:          'Inter', system-ui, sans-serif;
}

/* ── Dark Mode ─────────────────────────────────────────────────── */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .bg-white { background: #1e293b !important; }
[data-theme="dark"] .bg-light { background: #1e293b !important; }
[data-theme="dark"] .bg-surface { background: #0f172a !important; }
[data-theme="dark"] .text-dark { color: #f1f5f9 !important; }
[data-theme="dark"] .card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] #siteNav { background: rgba(15,23,42,.95) !important; border-color: rgba(255,255,255,.07) !important; }
[data-theme="dark"] .navbar-brand { color: #60a5fa !important; }
[data-theme="dark"] .nav-link { color: #cbd5e1 !important; }
[data-theme="dark"] .dropdown-menu { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .dropdown-item:hover { background: #334155; }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { background: #0f172a; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .table { color: #e2e8f0; }
[data-theme="dark"] .table-light { background: #1e293b !important; }
[data-theme="dark"] .list-group-item { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .border-bottom { border-color: #334155 !important; }
[data-theme="dark"] .section-title { color: #f1f5f9; }
[data-theme="dark"] .pt-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .pt-card:hover { border-color: rgba(96,165,250,.3); }

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--gray-800); background: #fff; margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Typography ────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark); }
.section-sub { font-size: 1.05rem; color: var(--gray-600); max-width: 580px; margin: 0 auto; }

/* ── Navbar ────────────────────────────────────────────────────── */
#siteNav {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow var(--transition);
  overflow: visible !important;
}
#siteNav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.navbar-brand { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; color: var(--primary) !important; }
.navbar-brand span { color: var(--accent); }
.nav-link { font-weight: 500; font-size: .9rem; color: #374151 !important; padding: .45rem .75rem !important; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; background: rgba(37,99,235,.07); }

/* Navbar Dropdown Styles */
#siteNav .dropdown { position: relative; }
#siteNav .dropdown-menu { 
  position: absolute !important; 
  top: 100% !important; 
  left: auto !important; 
  right: 0 !important;
  border: none; 
  box-shadow: var(--shadow-lg); 
  border-radius: var(--radius); 
  padding: .5rem; 
  animation: fadeInDown .18s ease;
  background: #fff;
  z-index: 1050;
  min-width: 160px;
  display: none;
}
#siteNav .dropdown-menu.show { 
  display: block !important;
}
.dropdown-item { border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; padding: .45rem .85rem; transition: background var(--transition); }
.dropdown-item:hover { background: rgba(37,99,235,.07); color: var(--primary); }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn { font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition); letter-spacing: .01em; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #1e3a8a); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border: none; color: #fff; }
.btn-accent:hover { background: linear-gradient(135deg, var(--accent-dark), #b45309); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.35); color: #fff; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%); color: #fff; padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.15), transparent 60%); }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
.hero-sub { font-size: 1.15rem; opacity: .8; max-width: 520px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); padding: .3rem .9rem; border-radius: 100px; font-size: .82rem; font-weight: 600; color: #e2e8f0; margin-bottom: 1.25rem; }

/* ── Sections ──────────────────────────────────────────────────── */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }
.bg-surface { background: var(--gray-100); }

/* ── Cards ─────────────────────────────────────────────────────── */
.pt-card { border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); overflow: hidden; }
.pt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,.2); }
.pt-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pt-card-img-sm { height: 160px; }
.pt-card-img-lg { height: 240px; }
.pt-card-body { padding: 1.25rem; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid #e2e8f0; padding: .65rem .9rem; font-size: .9rem; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: none; }
.form-label { font-weight: 600; font-size: .875rem; color: #374151; margin-bottom: .4rem; }

/* ── Pagination ────────────────────────────────────────────────── */
.pagination .page-link { border-radius: var(--radius-sm) !important; margin: 0 2px; border: 1.5px solid #e2e8f0; color: var(--gray-800); font-weight: 500; font-size: .875rem; transition: all var(--transition); }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link:hover { background: rgba(37,99,235,.07); color: var(--primary); border-color: var(--primary); }

/* ── Footer ────────────────────────────────────────────────────── */
#siteFooter { background: var(--dark); color: #94a3b8; padding: 64px 0 0; font-size: .9rem; }
#siteFooter .footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
#siteFooter .footer-brand span { color: var(--accent); }
#siteFooter h6 { color: #e2e8f0; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
#siteFooter a { color: #94a3b8; text-decoration: none; transition: color var(--transition); font-size: .875rem; }
#siteFooter a:hover { color: var(--accent); }
#siteFooter ul { list-style: none; padding: 0; margin: 0; }
#siteFooter ul li { margin-bottom: .5rem; }
#siteFooter .footer-bottom { background: rgba(0,0,0,.25); padding: 1.25rem 0; margin-top: 3rem; font-size: .82rem; }
#siteFooter .social-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #94a3b8; transition: all var(--transition); text-decoration: none; }
#siteFooter .social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ── Dark Mode Toggle ──────────────────────────────────────────── */
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #e2e8f0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); color: #64748b; }
.theme-toggle:hover { background: var(--gray-200); border-color: var(--primary); color: var(--primary); }
[data-theme="dark"] .theme-toggle { border-color: #475569; color: #f59e0b; }

/* ── Toastr ────────────────────────────────────────────────────── */
#toast-container > .toast-success { background: #10b981 !important; }
#toast-container > .toast-error   { background: #ef4444 !important; }
#toast-container > .toast-info    { background: #3b82f6 !important; }
#toast-container > .toast-warning { background: #f59e0b !important; }
#toast-container > div { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; padding: 12px 20px !important; font-size: .9rem !important; font-family: var(--font) !important; opacity: 1 !important; }

/* ── Utilities ─────────────────────────────────────────────────── */
.text-accent { color: var(--accent) !important; }
.rounded-xl  { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800; }
.lh-sm  { line-height: 1.3; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.fade-in-up  { animation: fadeInUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 72px 0 60px; }
  .section-pad { padding: 56px 0; }
  #siteFooter { padding: 48px 0 0; }
}
