/* TCA Main Stylesheet - Blue Gradient Theme */
:root {
  --tca-primary: #1565c0;
  --tca-primary-dark: #0d47a1;
  --tca-primary-light: #1976d2;
  --tca-accent: #f39c12;
  --tca-green: #27ae60;
  --tca-dark: #0a1628;
  --tca-bg: #f0f4f8;
  --tca-grad: linear-gradient(135deg, #1565c0 0%, #0d47a1 50%, #0a1628 100%);
  --tca-grad2: linear-gradient(135deg, #1976d2, #1565c0);
}

/* TOPBAR */
.topbar {
  background: var(--tca-grad);
  padding: 10px 20px;
  border-bottom: 3px solid var(--tca-accent);
}
.topbar-logo { width: 56px; height: 56px; border-radius: 50%; border: 2px solid gold; }
.topbar-title { color: #fff; font-weight: 700; font-size: 17px; }
.topbar-sub { color: rgba(255,255,255,0.8); font-size: 11px; }

/* LOGIN BUTTONS */
.btn-login-admin  { background: #c0392b; color: #fff; border: none; font-weight: 600; }
.btn-login-admin:hover  { background: #a93226; color: #fff; }
.btn-login-clerk  { background: #7b1fa2; color: #fff; border: none; font-weight: 600; }
.btn-login-clerk:hover  { background: #6a1b9a; color: #fff; }
.btn-login-user   { background: var(--tca-accent); color: #fff; border: none; font-weight: 600; }
.btn-login-user:hover   { background: #e67e22; color: #fff; }
.btn-register     { background: var(--tca-green); color: #fff; border: none; font-weight: 600; }
.btn-register:hover     { background: #219a52; color: #fff; }

/* NAVBAR */
.main-nav { background: var(--tca-primary-dark); padding: 0 20px; }
.main-nav .nav-link { color: #e3f2fd !important; font-weight: 500; padding: 13px 16px !important; transition: all 0.2s; }
.main-nav .nav-link:hover, .main-nav .nav-link.active {
  background: var(--tca-primary-light); color: #fff !important;
  border-bottom: 3px solid var(--tca-accent);
}

/* HERO */
.hero-section {
  background: var(--tca-grad);
  color: #fff; padding: 70px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section h1 { font-size: 2.5rem; font-weight: 800; text-shadow: 2px 2px 8px rgba(0,0,0,0.4); }
.hero-section .lead { font-size: 1.1rem; opacity: 0.9; }
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px; padding: 6px 18px;
  font-size: 13px; display: inline-block; margin: 4px;
}

/* SECTION */
.section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--tca-primary);
  border-left: 4px solid var(--tca-accent); padding-left: 14px; margin-bottom: 24px;
}

/* CARDS */
.feature-card {
  background: #fff; border-radius: 12px; padding: 28px;
  box-shadow: 0 4px 20px rgba(21,101,192,0.1);
  text-align: center; border-top: 4px solid var(--tca-primary);
  height: 100%; transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(21,101,192,0.2); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.feature-card h5 { color: var(--tca-primary-dark); }

/* OFFICE BEARERS */
.ob-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 16px rgba(21,101,192,0.1);
  text-align: center; border-top: 3px solid var(--tca-accent);
  height: 100%; transition: transform 0.2s;
}
.ob-card:hover { transform: translateY(-3px); }
.ob-role {
  background: var(--tca-primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 12px;
  border-radius: 12px; display: inline-block; margin-bottom: 8px;
}
.ob-photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--tca-accent);
  margin: 0 auto 10px; display: block;
}
.ob-photo-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border: 3px solid var(--tca-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 10px;
}
.ob-name { font-weight: 700; font-size: 15px; color: var(--tca-dark); }
.ob-inst { font-size: 12px; color: #888; margin-top: 4px; }

/* ========================
   PROFESSIONAL ID CARD
   Indian Standard: 85.6mm × 54mm (credit card size)
   At 96dpi ≈ 323px × 204px, scaled up 2x for screen
   ======================== */
.id-card-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.id-card-front {
  width: 340px; height: 214px;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 60%, #1976d2 100%);
  border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,71,161,0.5);
  border: 1.5px solid rgba(255,255,255,0.2);
  position: relative; font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
}
.id-card-front::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.06); border-radius: 50%;
}
.id-card-front::after {
  content: ''; position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  background: rgba(255,200,0,0.08); border-radius: 50%;
}
.id-card-header-strip {
  background: rgba(0,0,0,0.25);
  padding: 7px 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid rgba(255,200,0,0.4);
  position: relative; z-index: 1;
}
.id-card-header-strip img.logo { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid gold; }
.id-card-org { line-height: 1.2; }
.id-card-org .org-name { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.id-card-org .org-sub  { font-size: 8.5px; color: rgba(255,255,255,0.75); }
.id-card-body {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; position: relative; z-index: 1;
}
.id-card-photo {
  width: 68px; height: 76px; border-radius: 8px;
  object-fit: cover; border: 2px solid rgba(255,200,0,0.7);
  flex-shrink: 0;
}
.id-card-photo-ph {
  width: 68px; height: 76px; border-radius: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,200,0,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.id-card-info { flex: 1; }
.id-card-info .member-name { font-size: 13px; font-weight: 700; line-height: 1.2; color: #fff; }
.id-card-info .tca-id-badge {
  background: linear-gradient(90deg, #f39c12, #e67e22);
  color: #fff; font-weight: 700; font-size: 10px;
  padding: 2px 8px; border-radius: 4px; display: inline-block;
  margin: 3px 0; letter-spacing: 0.5px;
}
.id-card-info .id-detail { font-size: 9.5px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.id-card-footer-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.3);
  padding: 4px 12px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,200,0,0.3);
}
.id-card-footer-strip .valid-text { font-size: 8px; color: rgba(255,255,255,0.7); }
.id-card-qr-corner { position: absolute; bottom: 24px; right: 10px; z-index: 2; }
.id-card-qr-corner canvas { border-radius: 4px; border: 1.5px solid rgba(255,200,0,0.5); }

/* ID card back */
.id-card-back {
  width: 340px; height: 214px;
  background: linear-gradient(135deg, #0a1628, #1565c0);
  border-radius: 14px; padding: 0; overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,71,161,0.5);
  border: 1.5px solid rgba(255,255,255,0.2);
  position: relative; color: #fff; font-family: 'Segoe UI', Arial, sans-serif;
}
.id-card-back .magnetic-stripe { background: #111; height: 36px; margin-top: 30px; }
.id-card-back-content { padding: 10px 16px; font-size: 10px; color: rgba(255,255,255,0.85); line-height: 1.8; }
.id-card-back .barcode-area { text-align: center; margin-top: 8px; }
.id-card-back .back-footer { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 8px; color: rgba(255,255,255,0.5); }

/* EVENT CARD */
.event-card {
  background: #fff; border-radius: 12px; padding: 20px;
  box-shadow: 0 4px 16px rgba(21,101,192,0.1);
  border-left: 4px solid var(--tca-accent);
}
.event-date {
  background: var(--tca-primary); color: #fff;
  border-radius: 8px; padding: 8px; text-align: center;
  width: 56px; font-size: 12px; font-weight: 700; line-height: 1.3; float: right;
}

/* GALLERY */
.gallery-item { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.1); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* FOOTER */
.site-footer { background: var(--tca-dark); padding: 40px 0 20px; }
.footer-link { color: #b0bec5; text-decoration: none; display: block; padding: 3px 0; font-size: 14px; }
.footer-link:hover { color: var(--tca-accent); }

/* STAT BOXES */
.stat-box { background: #fff; border-radius: 12px; padding: 24px; text-align: center; box-shadow: 0 4px 16px rgba(21,101,192,0.1); }
.stat-box .num { font-size: 2.2rem; font-weight: 800; color: var(--tca-primary); }
.stat-box .lbl { font-size: 13px; color: #888; margin-top: 4px; }

/* STATUS BADGES */
.badge-approved { background: #d4edda; color: #155724; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-pending  { background: #fff3cd; color: #856404; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.badge-rejected { background: #f8d7da; color: #721c24; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }

/* WHATSAPP */
.wa-btn { background: #25d366; color: #fff; border: none; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: background 0.2s; }
.wa-btn:hover { background: #1da851; color: #fff; }
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.wa-float a { background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.5); font-size: 26px; text-decoration: none; transition: transform 0.2s; }
.wa-float a:hover { transform: scale(1.1); }

@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.8rem; }
  .id-card-front, .id-card-back { width: 100%; max-width: 340px; }
}

@media print {
  .no-print { display: none !important; }
  body { background: white !important; }
  .id-card-front { box-shadow: none; }
}
