/* ============================================================
   Shree Mahaveer Swami Jain Mandir - Main Stylesheet
   Color Palette: Maroon #8b1a1a | Gold #d4a843 | White #fff | Saffron #e8650a
   ============================================================ */

:root {
  --maroon:   #8b1a1a;
  --maroon-d: #5d1010;
  --maroon-l: #c0392b;
  --gold:     #d4a843;
  --gold-l:   #f0c040;
  --gold-d:   #a07828;
  --saffron:  #e8650a;
  --cream:    #fffbf0;
  --cream-d:  #f5f0e8;
  --text:     #2d2d2d;
  --text-m:   #555;
  --text-l:   #888;
  --border:   #e0d0b0;
  --white:    #ffffff;
  --success:  #2e7d32;
  --warning:  #f57f17;
  --danger:   #c62828;
  --info:     #1565c0;
  --radius:   8px;
  --shadow:   0 4px 20px rgba(139,26,26,0.12);
  --trans:    all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  background: var(--cream-d);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: 'Cinzel', Georgia, serif; color: var(--maroon); line-height: 1.3; }
a { color: var(--maroon); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--saffron); }
p { margin-bottom: 1rem; color: var(--text-m); }

/* ---- NAVBAR ---- */


/* ---- HERO / BANNER ---- */
.hero {
  background: linear-gradient(160deg, var(--maroon-d) 0%, var(--maroon) 40%, #6b1010 100%);
  position: relative; overflow: hidden; padding: 80px 20px;
  text-align: center; color: var(--white);
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(212,168,67,0.15)'/%3E%3C/svg%3E") repeat;
  opacity: 0.6;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--gold), var(--gold-l), var(--gold-d));
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero .om { font-size: 60px; display: block; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hero h2 { font-size: 1.2rem; color: var(--gold-l); letter-spacing: 4px; font-weight: 400; margin-bottom: 20px; }
.hero p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer; border: none;
  transition: var(--trans); letter-spacing: 0.5px; text-align: center;
  font-family: inherit;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-d); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,26,26,0.35); }
.btn-gold { background: var(--gold); color: var(--maroon-d); }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--maroon); color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-outline-gold { background: transparent; border: 2px solid var(--gold); color: var(--white); }
.btn-outline-gold:hover { background: var(--gold); color: var(--maroon-d); }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-block { width: 100%; display: block; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }

/* ---- CARDS ---- */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden; transition: var(--trans);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(139,26,26,0.18); }
.card-header {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-l) 100%);
  color: var(--white); padding: 16px 20px; font-weight: 700; font-family: 'Cinzel', serif;
  border-bottom: 3px solid var(--gold);
}
.card-header h3, .card-header h4 { color: var(--white); margin: 0; }
.card-body { padding: 20px; }
.card-footer { background: var(--cream); padding: 14px 20px; border-top: 1px solid var(--border); }

/* Quick Action Cards */
.action-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: var(--trans); cursor: pointer;
}
.action-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(139,26,26,0.2); border-color: var(--gold); }
.action-card .icon { font-size: 48px; margin-bottom: 14px; display: block; }
.action-card h3 { font-size: 16px; color: var(--maroon); margin-bottom: 8px; }
.action-card p { font-size: 13px; color: var(--text-l); margin: 0; }

/* ---- SECTIONS ---- */
.section { padding: 60px 20px; }
.section-alt { background: var(--cream); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2rem; margin-bottom: 10px; }
.section-title .divider {
  width: 80px; height: 3px; margin: 12px auto;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l), var(--gold-d));
  border-radius: 2px;
}
.section-title p { color: var(--text-l); max-width: 550px; margin: 0 auto; }

.container { max-width: 1200px; margin: 0 auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-m); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-control {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; background: var(--white); color: var(--text);
  transition: var(--trans); outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.15); }
.form-control.is-invalid { border-color: var(--danger); }
.form-hint { font-size: 12px; color: var(--text-l); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; background: var(--white); }
table.data-table thead tr { background: var(--maroon); color: var(--white); }
table.data-table th { padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
table.data-table td { padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--cream-d); }
table.data-table tbody tr:hover { background: var(--cream); }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ---- BADGES ---- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff8e1; color: #e65100; }
.badge-danger  { background: #ffebee; color: #c62828; }
.badge-info    { background: #e3f2fd; color: #1565c0; }
.badge-secondary { background: #f5f5f5; color: #616161; }
.badge-primary { background: #ede7f6; color: #4527a0; }

/* ---- ALERTS ---- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; border-left: 4px solid; }
.alert-success { background: #e8f5e9; border-color: #2e7d32; color: #1b5e20; }
.alert-error   { background: #ffebee; border-color: var(--danger); color: #b71c1c; }
.alert-warning { background: #fff8e1; border-color: var(--warning); color: #e65100; }
.alert-info    { background: #e3f2fd; border-color: var(--info); color: #0d47a1; }

/* ---- TIMINGS BOX ---- */
.timings-box {
  background: linear-gradient(135deg, var(--maroon-d), var(--maroon));
  color: var(--white); border-radius: var(--radius); padding: 30px;
  border: 2px solid var(--gold); text-align: center;
}
.timings-box h3 { color: var(--gold-l); font-size: 18px; margin-bottom: 20px; }
.timing-item { margin: 10px 0; }
.timing-item .time-label { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2px; }
.timing-item .time-val { font-size: 20px; color: var(--gold-l); font-weight: 700; }
.timing-divider { border: none; border-top: 1px solid rgba(212,168,67,0.3); margin: 15px 0; }

/* ---- EVENT CARDS ---- */
.event-card { display: flex; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 12px; }
.event-date { background: var(--maroon); color: var(--white); border-radius: 6px; padding: 10px 14px; text-align: center; min-width: 56px; }
.event-date .day { font-size: 22px; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-l); }
.event-info h4 { font-size: 15px; color: var(--maroon); margin-bottom: 4px; }
.event-info p { font-size: 13px; color: var(--text-l); margin: 0; }

/* ---- PAYMENT SECTION ---- */
.payment-box {
  background: var(--cream); border: 2px solid var(--gold); border-radius: var(--radius); padding: 24px; text-align: center;
}
.payment-box h4 { color: var(--maroon); margin-bottom: 16px; }
.qr-img { width: 180px; height: 180px; border: 3px solid var(--gold); border-radius: var(--radius); object-fit: cover; }
.bank-details { text-align: left; margin-top: 20px; }
.bank-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.bank-row .bl { color: var(--text-l); min-width: 130px; }
.bank-row .bv { color: var(--text); font-weight: 700; }

/* ---- USER DASHBOARD ---- */
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 20px;
}
.stat-card .stat-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--maroon); line-height: 1; }
.stat-card .stat-label { font-size: 12px; color: var(--text-l); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-icon-maroon { background: #fce4e4; }
.stat-icon-gold   { background: #fff8e1; }
.stat-icon-green  { background: #e8f5e9; }
.stat-icon-blue   { background: #e3f2fd; }

/* ---- FOOTER ---- */
.footer {
  background: linear-gradient(135deg, var(--maroon-d), var(--maroon));
  color: rgba(255,255,255,0.8); padding: 50px 20px 20px; margin-top: 60px;
  border-top: 4px solid var(--gold);
}
.footer h4 { color: var(--gold-l); font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer p, .footer a { font-size: 13px; color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--gold-l); }
.footer-bottom { border-top: 1px solid rgba(212,168,67,0.3); margin-top: 30px; padding-top: 15px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer .social-links { display: flex; gap: 10px; margin-top: 10px; }
.footer .social-link { width: 36px; height: 36px; border: 1px solid rgba(212,168,67,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--trans); }
.footer .social-link:hover { background: var(--gold); color: var(--maroon-d); border-color: var(--gold); }

/* ---- BREADCRUMB ---- */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--border); padding: 12px 20px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; font-size: 13px; color: var(--text-l); }
.breadcrumb-inner a { color: var(--maroon); }
.breadcrumb-inner span { margin: 0 8px; }

/* ---- MODAL ---- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 560px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; animation: modalIn 0.3s ease; }
@keyframes modalIn { from{transform:scale(0.9);opacity:0} to{transform:scale(1);opacity:1} }
.modal-header { background: var(--maroon); color: var(--white); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); }
.modal-header h3 { color: var(--white); margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 22px; cursor: pointer; transition: var(--trans); }
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; background: var(--cream); border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-d); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-maroon { color: var(--maroon) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-l) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.mt-0{margin-top:0} .mt-1{margin-top:.5rem} .mt-2{margin-top:1rem} .mt-3{margin-top:1.5rem} .mt-4{margin-top:2rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:.5rem} .mb-2{margin-bottom:1rem} .mb-3{margin-bottom:1.5rem} .mb-4{margin-bottom:2rem}
.p-0{padding:0} .p-1{padding:.5rem} .p-2{padding:1rem} .p-3{padding:1.5rem}
.d-flex{display:flex} .align-center{align-items:center} .justify-between{justify-content:space-between} .gap-1{gap:.5rem} .gap-2{gap:1rem} .gap-3{gap:1.5rem} .flex-wrap{flex-wrap:wrap}
.w-100{width:100%} .rounded{border-radius:var(--radius)}
.divider-gold { border: none; border-top: 2px solid var(--gold); margin: 24px 0; opacity: 0.4; }
.om-divider { text-align:center; color: var(--gold); font-size: 22px; margin: 20px 0; opacity: 0.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--maroon-d); padding: 10px; z-index: 999; }
  .navbar-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .hero h2 { font-size: 1rem; }
  .hero .om { font-size: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 16px; }
  table.data-table { font-size: 12px; }
  table.data-table th, table.data-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 12px 22px; font-size: 14px; }
  .modal { margin: 10px; }
}
