/* ==========================================================================
   IBN — IMPERIAL BUSINESS NETWORK: PHASE 3 STYLESHEET
   Chapters, Events, Notifications, Join IBN, Payment Checkout & Admin Panel
   ========================================================================== */

/* 1. CHAPTERS DIRECTORY & PROFILE */
.chapters-hero-banner, .events-hero-banner {
  background: linear-gradient(135deg, #071224 0%, #0f254a 100%);
  border-radius: 14px;
  padding: 28px 32px;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #c59b27;
}

.chapters-hero-title, .events-hero-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.chapters-hero-sub, .events-hero-sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.chapters-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  align-items: center;
}

.chapters-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.chapter-card-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chapter-card-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7, 18, 36, 0.08);
  border-color: #cbd5e1;
}

.chapter-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chapter-card-name {
  font-size: 18px;
  font-weight: 800;
  color: #071224;
  margin: 0 0 4px 0;
}

.chapter-badge-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.chapter-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #475569;
}

.chapter-card-meta i {
  width: 18px;
  color: #c59b27;
}

.chapter-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.chapter-member-count-badge {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-view-chapter {
  background: #c59b27;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-view-chapter:hover {
  background: #ab851e;
}

/* 2. EVENTS PAGE */
.events-tabs-row {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.event-tab-btn {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.event-tab-btn.active {
  background: #071224;
  color: #ffffff;
  border-color: #071224;
}

.events-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.event-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.event-date-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.event-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #071224;
  margin: 0 0 8px 0;
}

.event-card-desc {
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 16px;
  line-height: 1.5;
}

.event-card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 18px;
}

.btn-event-register {
  background: #c59b27;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-event-registered {
  background: #10b981 !important;
  color: #ffffff !important;
}

/* 3. NOTIFICATIONS DROPDOWN / PANEL */
.notifications-panel-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.notif-item-row {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.notif-item-row:hover {
  background: #f8fafc;
}

.notif-item-row.unread {
  background: #f0fdf4;
}

.notif-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* 4. PUBLIC JOIN IBN APPLICATION PAGE */
#app-join-section {
  min-height: 100vh;
  background: #071224;
  background-image: radial-gradient(circle at 15% 20%, rgba(197, 155, 39, 0.12) 0%, transparent 40%),
                    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.join-container-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 840px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.join-header-banner {
  background: linear-gradient(135deg, #071224 0%, #11284a 100%);
  padding: 32px 40px;
  color: #ffffff;
  border-bottom: 3px solid #c59b27;
}

.join-form-body {
  padding: 36px 40px;
}

.join-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.join-col-full {
  grid-column: 1 / -1;
}

.btn-submit-join-gold {
  background: linear-gradient(135deg, #e5b842 0%, #c59b27 100%);
  color: #071224;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-submit-join-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.4);
}

/* 5. RAZORPAY PAYMENT CHECKOUT PAGE */
#app-payment-section {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.payment-checkout-card {
  background: #ffffff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.payment-checkout-header {
  background: #071224;
  padding: 24px 28px;
  color: #ffffff;
  border-bottom: 3px solid #c59b27;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-pay-razorpay {
  background: #0c2340;
  color: #ffffff;
  border: 2px solid #3395ff;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}

.btn-pay-razorpay:hover {
  background: #113460;
}

/* 6. IBN ADMIN PANEL */
#app-admin-section {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
  font-family: inherit;
}

.admin-sidebar {
  width: 250px;
  background: #071224;
  color: #ffffff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
}

.admin-sidebar-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
  overflow-y: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-nav-item.active {
  background: rgba(197, 155, 39, 0.12);
  color: #c59b27;
  border-left-color: #c59b27;
  font-weight: 700;
}

.admin-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.admin-top-bar {
  background: #ffffff;
  padding: 16px 32px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-content-area {
  padding: 28px 32px;
  flex: 1;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.admin-stat-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.admin-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #071224;
  margin-top: 4px;
}

.admin-stat-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-block;
}

.badge-status-pending { background: #fef3c7; color: #b45309; }
.badge-status-active { background: #dcfce7; color: #15803d; }
.badge-status-paid { background: #dcfce7; color: #15803d; }
.badge-status-payment_pending { background: #e0f2fe; color: #0369a1; }
.badge-status-rejected { background: #fee2e2; color: #b91c1c; }
.badge-status-suspended { background: #fee2e2; color: #b91c1c; }
.badge-status-overdue { background: #ffedd5; color: #c2410c; }
