/* =============================================================
   Kilpauk Sangh — Spiritual Trip Registration
   Design: Warm saffron & deep indigo — sacred, modern, trustworthy
   ============================================================= */

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

:root {
  --saffron:    #E8751A;
  --saffron-lt: #F9A84D;
  --saffron-dk: #BF5B0E;
  --indigo:     #2D2D6B;
  --indigo-lt:  #4A4A9C;
  --indigo-dk:  #1A1A45;
  --gold:       #D4A017;
  --cream:      #FDF6EC;
  --bg:         #F5F0E8;
  --white:      #FFFFFF;
  --text:       #2C2C2C;
  --text-muted: #6B6B6B;
  --border:     #E0D5C5;
  --success:    #1A7A4A;
  --danger:     #C0392B;
  --warning:    #D68910;
  --info:       #1A5276;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Cinzel', serif; font-weight: 600; }

/* ---- Header ---- */
.site-header {
  background: linear-gradient(135deg, var(--indigo-dk) 0%, var(--indigo) 50%, var(--indigo-lt) 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,117,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.header-text h1 { font-size: clamp(16px, 3vw, 22px); letter-spacing: 0.5px; }
.header-text p { font-size: 12px; opacity: 0.75; font-family: 'Nunito', sans-serif; font-weight: 400; margin-top: 2px; }
.header-nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}
.header-nav a:hover, .header-nav a.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

/* ---- Trip Banner ---- */
.trip-banner {
  background: linear-gradient(90deg, var(--saffron-dk), var(--saffron), var(--saffron-lt));
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.trip-banner span { margin: 0 12px; opacity: 0.85; }

/* ---- Main Layout ---- */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
.page-title {
  text-align: center;
  margin-bottom: 32px;
}
.page-title h2 {
  font-size: clamp(22px, 4vw, 30px);
  color: var(--indigo);
  margin-bottom: 8px;
}
.page-title p { color: var(--text-muted); font-size: 15px; }
.page-title .divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-lt) 100%);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-header h3 { font-size: 16px; letter-spacing: 0.4px; }
.card-header .icon { font-size: 22px; }
.card-body { padding: 28px 24px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--indigo);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
label .req { color: var(--saffron); }
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232,117,26,0.12);
}
input[readonly] {
  background: var(--cream);
  color: var(--text-muted);
  cursor: not-allowed;
}
select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232D2D6B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 5px; font-weight: 600; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  -webkit-appearance: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--saffron-dk), var(--saffron));
  color: #fff;
  box-shadow: 0 4px 15px rgba(232,117,26,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-lt));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,117,26,0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--indigo);
  border-color: var(--indigo);
}
.btn-secondary:hover { background: var(--indigo); color: #fff; }
.btn-success {
  background: linear-gradient(135deg, #156935, var(--success));
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,122,74,0.3);
}
.btn-danger {
  background: linear-gradient(135deg, #9B2335, var(--danger));
  color: #fff;
  box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}
.btn-warning {
  background: linear-gradient(135deg, #A0660A, var(--warning));
  color: #fff;
  box-shadow: 0 4px 12px rgba(214,137,16,0.3);
}
.btn-info {
  background: linear-gradient(135deg, #0E3B59, var(--info));
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,82,118,0.3);
}
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-submitted  { background: #EBF5FB; color: #1A5276; border: 1px solid #AED6F1; }
.badge-pending    { background: #FEF9E7; color: #7D6608; border: 1px solid #F9E79F; }
.badge-verified   { background: #E8F8F5; color: #0E6655; border: 1px solid #A2D9CE; }
.badge-confirmed  { background: #E9F7EF; color: #1A7A4A; border: 1px solid #A9DFBF; }
.badge-waiting    { background: #FEF0E7; color: #A04000; border: 1px solid #FAD7A0; }
.badge-partial    { background: #F5EEF8; color: #7D3C98; border: 1px solid #D7BDE2; }
.badge-rejected   { background: #FDEDEC; color: #922B21; border: 1px solid #F1948A; }

/* ---- Alerts ---- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}
.alert-close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent; border: none;
  font-size: 15px; cursor: pointer;
  opacity: 0.5; line-height: 1;
  padding: 2px 4px; border-radius: 4px;
  color: inherit;
  transition: opacity 0.2s;
}
.alert-close:hover { opacity: 1; }
.alert-success { background: #E9F7EF; color: #1A7A4A; border-left: 4px solid #1A7A4A; }
.alert-danger  { background: #FDEDEC; color: #922B21; border-left: 4px solid #C0392B; }
.alert-warning { background: #FEF9E7; color: #7D6608; border-left: 4px solid #D4AC0D; }
.alert-info    { background: #EBF5FB; color: #1A5276; border-left: 4px solid #1A5276; }

/* ---- Passenger Cards ---- */
.passenger-list { display: flex; flex-direction: column; gap: 16px; }
.passenger-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.passenger-card:focus-within { border-color: var(--saffron); }
.passenger-card-header {
  background: linear-gradient(135deg, var(--cream), var(--bg));
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.passenger-card-header h4 { font-size: 14px; color: var(--indigo); }
.passenger-card-body { padding: 20px; background: var(--white); }

/* ---- Pricing Box ---- */
.pricing-box {
  background: linear-gradient(135deg, var(--indigo-dk), var(--indigo));
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.pricing-box h3 { font-size: 16px; margin-bottom: 16px; opacity: 0.9; }
.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
}
.pricing-row:last-child { border: none; }
.pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 8px;
  border-top: 2px solid var(--saffron);
  font-size: 18px;
  font-weight: 700;
  color: var(--saffron-lt);
}

/* ---- Stats Cards (Admin) ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.stat-card.s-blue::before   { background: linear-gradient(90deg, var(--indigo), var(--indigo-lt)); }
.stat-card.s-orange::before { background: linear-gradient(90deg, var(--saffron-dk), var(--saffron-lt)); }
.stat-card.s-green::before  { background: linear-gradient(90deg, #156935, #27AE60); }
.stat-card.s-yellow::before { background: linear-gradient(90deg, #A0660A, #F1C40F); }
.stat-card.s-red::before    { background: linear-gradient(90deg, #9B2335, #E74C3C); }
.stat-card.s-purple::before { background: linear-gradient(90deg, #4A235A, #8E44AD); }
.stat-card.s-navy::before { background: linear-gradient(90deg, #8E44AD, #717cad); }
.stat-number { font-size: 36px; font-weight: 700; font-family: 'Cinzel', serif; color: var(--indigo); line-height: 1; margin: 10px 0 6px; }
.stat-label  { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-icon   { font-size: 28px; }

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-lt));
  color: var(--white);
}
thead th { padding: 13px 16px; font-weight: 700; text-align: left; white-space: nowrap; font-family: 'Nunito', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:hover { background: var(--cream); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 16px; vertical-align: middle; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn.active { color: var(--saffron); border-bottom-color: var(--saffron); }
.tab-btn:hover:not(.active) { color: var(--indigo); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- Admin Sidebar ---- */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
  gap: 0;
}
.admin-sidebar {
  background: linear-gradient(180deg, var(--indigo-dk) 0%, var(--indigo) 100%);
  padding: 28px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  text-align: center;
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.sidebar-logo .emoji { font-size: 36px; }
.sidebar-logo h3 { color: var(--white); font-size: 13px; margin-top: 8px; opacity: 0.85; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-nav a.active { color: #fff; background: rgba(232,117,26,0.2); border-left-color: var(--saffron); }
.sidebar-nav .nav-section {
  padding: 16px 22px 6px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-main { padding: 28px 32px; background: var(--bg); overflow-y: auto; }

/* ---- Member Info Box ---- */
.member-info-box {
  background: linear-gradient(135deg, var(--cream), #FFF8ED);
  border: 2px solid var(--saffron-lt);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.member-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.member-details h4 { font-size: 16px; color: var(--indigo); }
.member-details p  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---- Payment Info ---- */
.payment-box {
  background: linear-gradient(135deg, #FEF9E7, #FDEBD0);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.payment-box h4 { color: var(--indigo); margin-bottom: 8px; }
.payment-box .upi { font-size: 22px; font-weight: 700; color: var(--saffron-dk); letter-spacing: 1px; }

/* ---- Status Check ---- */
.status-result {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}
.status-header {
  background: linear-gradient(135deg, var(--indigo-dk), var(--indigo-lt));
  color: var(--white);
  padding: 24px 28px;
}
.status-header h3 { font-size: 20px; }
.status-header p { font-size: 14px; opacity: 0.8; margin-top: 4px; }
.status-body { padding: 24px 28px; }
.passenger-result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.passenger-result-row:last-child { border: none; }
.passenger-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.passenger-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--indigo-dk);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 18px 20px;
  font-size: 12px;
  margin-top: auto;
}
.site-footer a { color: var(--saffron-lt); text-decoration: none; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ---- Loader ---- */
.loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}
.loader-overlay.active { display: flex; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--saffron);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Add Passenger Button ---- */
.add-passenger-btn {
  border: 2px dashed var(--saffron-lt);
  background: transparent;
  color: var(--saffron-dk);
  border-radius: var(--radius);
  padding: 16px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  margin-top: 12px;
}
.add-passenger-btn:hover {
  background: var(--cream);
  border-color: var(--saffron-dk);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; padding: 16px 0; }
  .admin-sidebar .sidebar-logo { padding-bottom: 12px; }
  .admin-main { padding: 20px 16px; }
  .header-inner { padding: 14px 16px; }
  .card-body { padding: 18px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .pricing-box { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-actions { flex-direction: column; }
  .btn { font-size: 13px; padding: 10px 18px; }
}

.upload-box{
border:2px dashed #cfd7df;
border-radius:12px;
padding:12px;
text-align:center;
cursor:pointer;
background:#fafafa;
position:relative;
transition:0.2s;
min-height:90px;
display:flex;
align-items:center;
justify-content:center;
flex-direction:column;
}

.upload-box:hover{
border-color:#4c6ef5;
background:#f6f8ff;
}

.upload-box input{
position:absolute;
inset:0;
opacity:0;
cursor:pointer;
}

.upload-placeholder{
font-size:12px;
color:#777;
}

.upload-preview{
width:60px;
height:60px;
object-fit:cover;
border-radius:8px;
border:1px solid #ddd;
}

.upload-remove{
position:absolute;
top:4px;
right:4px;
background:#ff4d4f;
color:white;
border:none;
border-radius:50%;
width:18px;
height:18px;
font-size:12px;
cursor:pointer;
display:none;
}

.upload-box.has-file .upload-remove{
display:block;
}

/* Mobile */
@media(max-width:768px){

.upload-preview{
width:50px;
height:50px;
}

.form-row{
flex-direction:column;
}

}