/* assets/css/style.css — Gulshan Motor Driving School */

/* ── Google Fonts loaded in header ── */
:root {
  --brand:        #1a56db;
  --brand-dark:   #1341b0;
  --brand-light:  #e8f0fe;
  --accent:       #f59e0b;
  --accent-dark:  #d97706;
  --success:      #10b981;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --dark:         #0f172a;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --bg:           #f0f4ff;
  --card-shadow:  0 4px 20px rgba(26,86,219,.08);
  --transition:   all .22s ease;
  --radius:       14px;
  --radius-sm:    9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

/* ── Navbar ── */
.gm-navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  padding: 12px 0;
  box-shadow: 0 5px 25px rgba(26,86,219,.2);
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(10px);
}

.gm-navbar .brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: 1.4rem;
  margin-right: 12px; flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(245,158,11,.3);
}
.gm-navbar .brand-text { color: #fff; font-weight: 900; font-size: 1.05rem; line-height: 1.2; }
.gm-navbar .brand-text small { font-size: .72rem; opacity: .75; display: block; font-weight: 500; }
.gm-navbar .navbar-brand { display: flex; align-items: center; text-decoration: none; }

.gm-navbar .nav-link {
  color: rgba(255,255,255,.8) !important; font-weight: 600; font-size: .92rem;
  padding: 8px 16px !important; border-radius: 10px; transition: all .3s;
  position: relative;
}
.gm-navbar .nav-link::before {
  content: ''; position: absolute; bottom: 8px; left: 16px; width: 0;
  height: 2px; background: var(--accent); transition: width .3s;
}
.gm-navbar .nav-link:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.gm-navbar .nav-link:hover::before { width: calc(100% - 32px); }
.gm-navbar .nav-link.active { background: rgba(26,86,219,.6); color: #fff !important; }
.gm-navbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
.gm-navbar .navbar-toggler-icon { filter: invert(1); }

/* ── User Avatar ── */
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Main Content ── */
.main-content { padding: 30px 0 60px; }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #1d4ed8 100%);
  color: #fff; padding: 50px 0 60px; margin-bottom: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 30px rgba(26,86,219,.15);
}
.page-header::before {
  content: ''; position: absolute; top: -30%; left: -5%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.page-header::after {
  content: ''; position: absolute; bottom: -40%; right: -15%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(245,158,11,.06);
}
.page-header h1 { font-weight: 900; font-size: 2.6rem; margin-bottom: 8px; position: relative; z-index: 1; }
.page-header p { opacity: .85; font-size: 1rem; margin: 0; position: relative; z-index: 1; }

/* ── Cards ── */
.gm-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 2px 12px rgba(26,86,219,.08); border: 1px solid rgba(26,86,219,.05);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.gm-card:hover { box-shadow: 0 12px 35px rgba(26,86,219,.15); transform: translateY(-2px); }
.gm-card .card-header-bar {
  padding: 20px 24px; border-bottom: 2px solid rgba(26,86,219,.05);
  font-weight: 800; font-size: 1.05rem; color: var(--dark);
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.gm-card .card-header-bar i { color: var(--brand); font-size: 1.2rem; }
.gm-card .card-body-pad { padding: 26px; }

/* ── Stat Cards ── */
.stat-card {
  background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: 0 2px 12px rgba(26,86,219,.06);
  border: 1px solid rgba(26,86,219,.04); transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--brand-light); opacity: .3;
}
.stat-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 12px 30px rgba(26,86,219,.12);
  border-color: rgba(26,86,219,.15);
}
.stat-icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; position: relative; z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.stat-icon.blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.stat-icon.green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.stat-icon.amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.stat-icon.red    { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.stat-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.stat-val  { font-weight: 900; font-size: 2rem; color: var(--dark); line-height: 1; position: relative; z-index: 1; }
.stat-lbl  { font-size: .84rem; color: var(--muted); margin-top: 4px; font-weight: 500; position: relative; z-index: 1; }

/* ── Wallet Hero ── */
.wallet-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #1d4ed8 100%);
  border-radius: 24px; padding: 40px; color: #fff;
  text-align: center; margin-bottom: 28px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(26,86,219,.25);
}
.wallet-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 80%; height: 80%; background: rgba(245,158,11,.08); border-radius: 50%;
}
.wallet-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 60%; height: 60%; background: rgba(255,255,255,.04); border-radius: 50%;
}
.wallet-hero h6 { font-size: .85rem; opacity: .8; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; position: relative; z-index: 1; }
.wallet-hero h1 { font-size: 3.2rem; font-weight: 900; margin: 12px 0; position: relative; z-index: 1; }
.wallet-pill {
  display: inline-flex; align-items: center; background: rgba(255,255,255,.15);
  padding: 8px 18px; border-radius: 24px; font-size: .85rem; gap: 8px;
  font-weight: 600; backdrop-filter: blur(10px); position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,.2);
}

/* ── Service Cards ── */
.service-card {
  background: #fff; border-radius: 18px; padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(26,86,219,.08); border: 2px solid transparent;
  transition: all .3s cubic-bezier(.4, 0, .2, 1); text-align: center; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--brand-light) 0%, transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover {
  border-color: var(--brand); transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26,86,219,.2); color: inherit;
}
.service-card:hover::before { opacity: 1; }
.service-card .svc-icon {
  width: 90px; height: 90px; border-radius: 20px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--brand), var(--brand));
  box-shadow: 0 8px 20px rgba(26,86,219,.2);
}
.service-card:hover .svc-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(26,86,219,.3);
}
.service-card .svc-name { font-weight: 900; font-size: 1.4rem; color: var(--dark); position: relative; z-index: 1; }
.service-card .svc-desc { font-size: .88rem; color: var(--muted); margin-top: 8px; position: relative; z-index: 1; }
.service-card .svc-price {
  margin-top: 20px; font-weight: 800; font-size: 1.8rem; color: var(--brand); position: relative; z-index: 1;
}
.service-card .svc-price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.service-card .svc-btn {
  margin-top: 22px; display: inline-block;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 12px 32px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; transition: all .3s; position: relative; z-index: 1;
  box-shadow: 0 4px 15px rgba(26,86,219,.25);
}
.service-card:hover .svc-btn { 
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.3);
}

/* ── Forms ── */
.gm-form-card {
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 40px rgba(26,86,219,.1); padding: 40px;
  max-width: 560px; margin: 0 auto;
  border: 1px solid rgba(26,86,219,.05);
}
.gm-form-card h2 { font-weight: 900; font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.gm-form-card .form-label { font-weight: 700; font-size: .9rem; color: var(--dark); margin-bottom: 8px; }
.gm-form-card .form-control,
.gm-form-card .form-select {
  border-radius: 12px; padding: 12px 16px;
  border: 2px solid var(--border); font-size: .95rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  background: #fafbfc;
}
.gm-form-card .form-control:focus,
.gm-form-card .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26,86,219,.08);
  background: #fff;
}

/* ── Buttons ── */
.btn-gm {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 28px; font-weight: 800; font-size: .94rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1); cursor: pointer;
  box-shadow: 0 4px 15px rgba(26,86,219,.3);
  position: relative; overflow: hidden;
}
.btn-gm::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s;
}
.btn-gm:hover::before { left: 100%; }
.btn-gm:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(26,86,219,.4); color: #fff; }
.btn-gm:active { transform: translateY(-1px); }
.btn-gm-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border: none; border-radius: 12px;
  padding: 13px 28px; font-weight: 800; font-size: .94rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1); cursor: pointer;
  box-shadow: 0 4px 15px rgba(245,158,11,.3);
}
.btn-gm-accent:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245,158,11,.4); color: #fff; }
.btn-gm-outline {
  background: transparent; color: var(--brand);
  border: 2px solid var(--brand); border-radius: 12px;
  padding: 11px 26px; font-weight: 700; font-size: .92rem; 
  transition: all .3s cubic-bezier(.4, 0, .2, 1); cursor: pointer;
}
.btn-gm-outline:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ── Badges ── */
.gm-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 20px; font-size: .72rem; font-weight: 600;
}
.gm-badge.pending  { background: #fef3c7; color: #92400e; }
.gm-badge.approved { background: #d1fae5; color: #065f46; }
.gm-badge.rejected { background: #fee2e2; color: #991b1b; }
.gm-badge.completed { background: #d1fae5; color: #065f46; }
.gm-badge.success  { background: #d1fae5; color: #065f46; }
.gm-badge.failed   { background: #fee2e2; color: #991b1b; }
.gm-badge.cancelled{ background: #f1f5f9; color: #64748b; }

/* ── Table ── */
.gm-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.gm-table th {
  background: var(--bg); padding: 12px 16px; font-weight: 700;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.gm-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: .88rem; vertical-align: middle;
}
.gm-table tr:last-child td { border-bottom: none; }
.gm-table tbody tr:hover { background: var(--brand-light); }

/* ── Alerts ── */
.gm-alert {
  border-radius: 12px; padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px; font-size: .9rem;
  border: none;
}
.gm-alert.success { background: #d1fae5; color: #065f46; }
.gm-alert.error   { background: #fee2e2; color: #991b1b; }
.gm-alert.info    { background: #dbeafe; color: #1e40af; }
.gm-alert.warning { background: #fef3c7; color: #92400e; }

/* ── Login/Register Page ── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1a56db 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 30px 15px;
}
.auth-card {
  background: #fff; border-radius: 20px; padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  animation: fadeUp .5s ease-out;
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo .logo-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: 2rem; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.auth-logo h2 { font-weight: 800; font-size: 1.4rem; color: var(--dark); }
.auth-logo p  { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ── Payment Page ── */
.pay-hdr {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 16px 16px 0 0; padding: 18px 24px;
  color: #fff; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.pay-hdr h4 { font-weight: 700; margin: 0; }
.pay-amt { background: rgba(255,255,255,.2); border-radius: 10px; padding: 6px 16px; font-size: 1.4rem; font-weight: 800; }
.pay-body { background: #fff; border-radius: 0 0 16px 16px; padding: 22px 24px; box-shadow: 0 12px 35px rgba(0,0,0,.12); }

.qr-frame {
  background: #f8fafc; border: 2px dashed #c7d2fe; border-radius: 14px;
  overflow: hidden; position: relative; margin-bottom: 16px;
}
.qr-frame iframe { width: 100%; height: 540px; border: none; display: block; }
.qr-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; z-index: 10;
}

/* ── Timer bar ── */
.t-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.t-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #818cf8); transition: width 1s linear; }

/* ── Status bar ── */
.sb {
  border-radius: 11px; padding: 12px 16px; margin-bottom: 14px;
  border-left: 4px solid #c7d2fe; background: #eef2ff;
  display: flex; align-items: center; gap: 10px; transition: all .3s;
}
.sb.ok   { background: #d1fae5; border-left-color: var(--success); }
.sb.bad  { background: #fee2e2; border-left-color: var(--danger); }
.sb.warn { background: #fef3c7; border-left-color: var(--warning); }
.sb-title { font-weight: 700; font-size: .88rem; }
.sb-sub   { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* ── Footer ── */
.gm-footer {
  background: var(--dark); color: rgba(255,255,255,.6);
  padding: 20px 0; font-size: .82rem; margin-top: auto;
}

/* ── Misc ── */
@keyframes fadeUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
@keyframes spin { 0%{transform:rotate(0deg)} 100%{transform:rotate(360deg)} }
.spin { animation: spin 1s linear infinite; display: inline-block; }

.modal-content { border-radius: 16px; border: none; box-shadow: 0 25px 60px rgba(0,0,0,.15); }
.modal-icon { font-size: 3.5rem; margin-bottom: .5rem; }
.si { color: var(--success); } .pi { color: var(--warning); } .ei { color: var(--danger); }

.form-label { font-weight: 600; font-size: .88rem; color: var(--dark); margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: 9px; padding: 10px 13px; border: 2px solid var(--border); font-size: .92rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.text-brand { color: var(--brand) !important; }
.text-accent { color: var(--accent) !important; }
.bg-brand   { background: var(--brand) !important; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 12px; color: #cbd5e1; }
