/* ==========================================================================
   IBN ATTENDANCE GOVERNANCE SYSTEM — LUXURY STYLESHEET
   Supports: Member Portal, Chapter President, State Director, Super Admin
   ========================================================================== */

/* Attendance Status Badges */
.att-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-badge-present {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.att-badge-absent {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #ef4444;
}

.att-badge-late {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.att-badge-excused {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #0ea5e9;
}

/* Next Zoom Meeting Hero Card */
.zoom-meeting-hero {
  background: linear-gradient(135deg, #060e1c 0%, #0d1e38 100%);
  border: 1px solid rgba(229, 184, 66, 0.35);
  border-radius: 14px;
  padding: 24px 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 14, 28, 0.25);
  margin-bottom: 24px;
}

.zoom-meeting-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e5b842 0%, #38bdf8 50%, #10b981 100%);
}

.zoom-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.zoom-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0 0 6px 0;
}

.zoom-hero-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zoom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 12.5px;
  color: #e2e8f0;
}

.zoom-pill-gold {
  background: rgba(229, 184, 66, 0.15);
  border-color: rgba(229, 184, 66, 0.4);
  color: #fef08a;
  font-weight: 700;
}

.zoom-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-join-zoom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.btn-join-zoom:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.6);
  color: #ffffff;
}

.btn-check-in-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-check-in-now:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

.btn-nudge-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nudge-member:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #f87171;
  transform: translateY(-1px);
}

/* Attendance KPI Grid */
.att-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .att-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.att-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.att-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #94a3b8;
}

.att-card.kpi-rate::before { background: linear-gradient(90deg, #10b981, #059669); }
.att-card.kpi-streak::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.att-card.kpi-attended::before { background: linear-gradient(90deg, #2563eb, #1d4ed8); }
.att-card.kpi-missed::before { background: linear-gradient(90deg, #ef4444, #dc2626); }

.att-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.att-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.att-card-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* State Attendance Overview Grid (Super Admin) */
.state-att-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.state-att-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.state-att-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.state-att-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.state-att-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.state-director-badge {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

.state-rate-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.state-rate-high {
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #10b981;
}

.state-rate-med {
  background: #fffbeb;
  color: #92400e;
  border: 2px solid #f59e0b;
}

.state-rate-low {
  background: #fef2f2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.state-extremes-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #f1f5f9;
}

.state-extreme-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* State Drilldown Modal & Rankings */
.state-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.spotlight-box {
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
}

.spotlight-highest {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #22c55e;
}

.spotlight-lowest {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1.5px solid #ef4444;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-high-crown {
  background: #166534;
  color: #ffffff;
}

.badge-low-alert {
  background: #991b1b;
  color: #ffffff;
}

.btn-feedback-president {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-feedback-president:hover {
  background: #991b1b;
  transform: translateY(-1px);
}

/* Attendance Marker Toggle Buttons */
.att-toggle-group {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.att-toggle-btn {
  border: none;
  background: transparent;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.att-toggle-btn.active.btn-present {
  background: #10b981;
  color: #ffffff;
}

.att-toggle-btn.active.btn-absent {
  background: #ef4444;
  color: #ffffff;
}

.att-toggle-btn.active.btn-late {
  background: #f59e0b;
  color: #ffffff;
}

.att-toggle-btn.active.btn-excused {
  background: #0ea5e9;
  color: #ffffff;
}
