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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0b2545;
  --blue: #1a5fa8;
  --blue-mid: #2176c7;
  --cyan: #0ea5e9;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --white: #ffffff;
  --off-white: #f0f6ff;
  --light: #e8f1fb;
  --border: #d1e0f5;
  --text: #0b2545;
  --text-muted: #4a6080;
  --text-light: #7a94b0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11,37,69,0.07);
  --shadow: 0 6px 24px rgba(11,37,69,0.1);
  --shadow-lg: 0 16px 48px rgba(11,37,69,0.14);
}

html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* ======= NAVBAR ======= */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,37,69,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.navbar-brand img { height: 44px; width: 44px; object-fit: contain; }
.navbar-brand-text { font-family: 'Syne', sans-serif; }
.navbar-brand-text .name { color: white; font-size: 0.9rem; font-weight: 700; line-height: 1.1; }
.navbar-brand-text .tagline { color: rgba(255,255,255,0.5); font-size: 0.68rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; font-family: 'Outfit', sans-serif; }
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; padding: 0.5rem 0.85rem; border-radius: 8px; transition: all 0.2s; font-weight: 500; }
.navbar-links a:hover, .navbar-links a.active { background: rgba(255,255,255,0.1); color: white; }
.navbar-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-dashboard-link { color: white; font-size: 0.9rem; padding: 0.5rem 0.85rem; border-radius: 8px; transition: all 0.2s; font-weight: 500; }
.nav-dashboard-link:hover { background: rgba(255,255,255,0.1); }
.nav-user-pill { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 5px 14px 5px 5px; border-radius: 50px; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; color: white; }
.nav-user-name { color: white; font-size: 0.85rem; }

/* ======= BUTTONS ======= */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.7rem 1.6rem; border-radius: 10px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: all 0.22s; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-mid), var(--cyan)); color: white; box-shadow: 0 4px 16px rgba(14,165,233,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.45); }
.btn-white { background: white; color: var(--navy); font-weight: 700; }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline-blue:hover { background: var(--light); }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: #0b7a6e; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: #d97706; transform: translateY(-2px); }
.btn-danger { background: #dc2626; color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }
.btn-google { background: white; color: #333; border: 1.5px solid var(--border); gap: 10px; justify-content: center; width: 100%; }
.btn-google:hover { background: #f5f5f5; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ======= FORMS ======= */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; letter-spacing: 0.3px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; color: var(--text);
  background: white; transition: all 0.2s; outline: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-mid); box-shadow: 0 0 0 3.5px rgba(33,118,199,0.12);
}
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 0.3rem; }

/* ======= CARDS ======= */
.card { background: white; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.card-hover { transition: all 0.25s; cursor: pointer; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }

/* ======= BADGE ======= */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-progress { background: #dbeafe; color: #1e40af; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-new { background: var(--light); color: var(--blue); }

/* ======= SECTION ======= */
.section { padding: 6rem 2rem; max-width: 1160px; margin: 0 auto; }
.section-narrow { max-width: 800px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--navy); margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; max-width: 560px; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem; font-family: 'Outfit', sans-serif; }

/* ======= DIVIDER ======= */
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.8rem; color: var(--text-light); white-space: nowrap; }

/* ======= TOAST ======= */
#toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--navy); color: white; padding: 0.9rem 1.5rem; border-radius: 12px; font-size: 0.9rem; z-index: 9999; transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); max-width: 340px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { background: var(--teal); }
#toast.error { background: #dc2626; }

/* ======= FOOTER ======= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 4rem 2.5rem 2rem;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 50px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; font-family: 'Outfit', sans-serif; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; }
.footer-tagline { color: var(--cyan); font-weight: 600; }

/* ======= MODAL ======= */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,37,69,0.65); backdrop-filter: blur(4px); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.modal { background: white; border-radius: 20px; padding: 2.5rem; max-width: 580px; width: 100%; max-height: 85vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(11,37,69,0.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-header h3 { font-family: 'Syne', sans-serif; color: var(--navy); font-size: 1.3rem; }
.modal-close { background: var(--off-white); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; }
.modal-close:hover { background: var(--light); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.detail-item .dl { font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.detail-item .dv { font-size: 0.9rem; color: var(--text); }
.section-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ======= UTILITY ======= */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.25rem; }

/* ======= RESPONSIVE ======= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .navbar { padding: 0 1.25rem; }
  .navbar-links { display: flex; }
  .navbar-links a:not(.mobile-visible) { display: none; }
  .nav-user-name { display: none; }
  .section { padding: 4rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .modal { padding: 1.5rem; }
}
