:root {
  --bg-dark: #070b14;
  --bg-surface: #0e1526;
  --bg-card: #131c31;
  --bg-card-hover: #19243d;
  --border-subtle: #1e2c4a;
  --border-focus: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.25);
  --color-orange: #f59e0b;
  --color-orange-glow: rgba(245, 158, 11, 0.25);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.25);
  --color-blue: #38bdf8;
  --color-purple: #a855f7;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==================== HEADER ==================== */
header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-shield {
  background: linear-gradient(135deg, #0284c7, #0f766e);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #38bdf8, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.event-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.organizer-badge {
  background: #1e293b;
  color: var(--color-blue);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.status-compliant {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

.status-fine {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  animation: pulse-orange 1.5s infinite;
}

.status-ban {
  background: rgba(239, 68, 68, 0.25);
  color: var(--color-red);
  border: 1px solid var(--color-red);
  animation: pulse-red 1s infinite;
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 10px 3px rgba(245, 158, 11, 0.5); }
}

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 15px 4px rgba(239, 68, 68, 0.7); }
}

/* ==================== BUTTONS ==================== */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #0284c7;
  color: #fff;
}
.btn-primary:hover { background: #0369a1; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-danger-outline {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-warning {
  background: #d97706;
  color: #fff;
}
.btn-warning:hover { background: #b45309; }

.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

.btn-block { width: 100%; margin-top: 10px; }

.btn-action-blue {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  padding: 10px;
}
.btn-action-blue:hover { background: linear-gradient(135deg, #0369a1, #1d4ed8); }

.btn-action-orange {
  background: linear-gradient(135deg, #d97706, #ea580c);
  color: white;
  padding: 10px;
}
.btn-action-orange:hover { background: linear-gradient(135deg, #b45309, #c2410c); }

.btn-action-green {
  background: linear-gradient(135deg, #059669, #0f766e);
  color: white;
  padding: 10px;
}
.btn-action-green:hover { background: linear-gradient(135deg, #047857, #115e59); }

/* ==================== DASHBOARD BODY ==================== */
.dashboard-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Alert Banner */
.alert-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--color-red);
  border-left: 6px solid var(--color-red);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.alert-banner.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--color-orange);
  border-left-color: var(--color-orange);
}

.alert-icon { font-size: 1.8rem; }
.alert-content { flex: 1; }
.alert-content strong { font-size: 1rem; color: #fff; }
.alert-content p { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

.btn-alert {
  background: var(--color-red);
  color: #fff;
  padding: 8px 16px;
}

/* ==================== KPI CARDS ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #2e3e66;
}

.highlight-card {
  background: linear-gradient(135deg, #131c31 0%, #172545 100%);
  border-color: #2b3d68;
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.badge-tag {
  background: #1e293b;
  color: var(--text-main);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.sensor-chip {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

.kpi-value-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-number {
  font-size: 2.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kpi-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.text-vehicles { color: var(--color-blue); }
.text-energy { color: var(--color-orange); }
.text-waste { color: var(--color-green); }

.progress-bar-container {
  height: 7px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}

.progress-bar {
  height: 100%;
  background: var(--color-green);
  border-radius: 4px;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.kpi-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sub-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sub-stat-row strong { color: var(--text-main); }

/* ==================== ANALYTICS & VISUALS ==================== */
.visuals-grid {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 18px;
}

@media (max-width: 1100px) {
  .visuals-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.info-tooltip {
  font-size: 0.72rem;
  background: #1e293b;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
}

.legend-pills {
  display: flex;
  gap: 8px;
}

.legend-pill {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-pill::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}

.gauge-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-indicators {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 4px;
}

.mark-green { color: var(--color-green); }
.mark-orange { color: var(--color-orange); }
.mark-red { color: var(--color-red); }

.gauge-status-box {
  background: #101827;
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  margin-top: 10px;
}

.chart-wrapper, .donut-wrapper {
  flex: 1;
  position: relative;
  min-height: 220px;
}

/* ==================== EDGE IOT SIMULATION CONSOLES ==================== */
.iot-sim-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-title-row h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.section-title-row p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.benches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.bench-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.bench-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bench-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.bench-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-blue { background: rgba(56, 189, 248, 0.15); color: var(--color-blue); }
.tag-orange { background: rgba(245, 158, 11, 0.15); color: var(--color-orange); }
.tag-green { background: rgba(16, 185, 129, 0.15); color: var(--color-green); }

.bench-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  outline: none;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--border-focus);
}

.slider-control {
  width: 100%;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.ai-feedback-box {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Electrical load buttons */
.load-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.load-btn {
  background: #0b1220;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}

.load-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--color-orange);
  color: var(--text-main);
}

.load-name { font-size: 0.78rem; font-weight: 600; }
.load-kw { font-size: 0.72rem; color: var(--color-orange); }

.meter-readout-row {
  display: flex;
  justify-content: space-around;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
}

.meter-stat .lbl { font-size: 0.65rem; color: var(--text-dim); display: block; }
.meter-stat .val { font-size: 0.9rem; font-weight: 800; }

/* Bin Buttons */
.bin-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.bin-type-btn {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #0b1220;
  color: var(--text-muted);
  padding: 8px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bin-type-btn:hover { background: #121c33; }
.bin-type-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-green);
  color: var(--color-green);
}

.bin-actuator-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.rotary-dial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed #334155;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-needle {
  width: 2px;
  height: 18px;
  background: var(--color-green);
  position: absolute;
  top: 4px;
  transform-origin: bottom center;
  transition: transform 0.5s ease;
}

.dial-info {
  display: flex;
  flex-direction: column;
}

.dial-info .lbl { font-size: 0.65rem; color: var(--text-dim); }
.dial-info strong { font-size: 0.85rem; color: var(--color-green); }
.selected-cat { font-size: 0.72rem; color: var(--text-muted); }

/* ==================== AUDIT TABLES ==================== */
.audit-logs-section { margin-top: 10px; }
.logs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .logs-grid { grid-template-columns: 1fr; }
}

.table-container {
  overflow-x: auto;
  max-height: 240px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.data-table th {
  background: #090e1a;
  color: var(--text-dim);
  padding: 8px 10px;
  font-weight: 700;
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #111a2f;
  color: var(--text-muted);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.empty-state {
  text-align: center;
  padding: 24px !important;
  color: var(--text-dim);
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.hidden { display: none; }

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header.border-orange { border-bottom: 2px solid var(--color-orange); }
.modal-header.border-red { border-bottom: 2px solid var(--color-red); }

.modal-header h2 { font-size: 1.05rem; }
.warning-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-orange);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ban-tag {
  background: rgba(239, 68, 68, 0.25);
  color: var(--color-red);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover { color: #fff; }

.modal-body {
  padding: 20px;
  font-size: 0.85rem;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Invoice Styling */
.invoice-box {
  background: #0a0f1d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 10px;
}

.invoice-top h3 { font-size: 0.85rem; font-weight: 800; }
.invoice-top p { font-size: 0.72rem; color: var(--text-muted); }
.invoice-meta { text-align: right; font-family: monospace; font-size: 0.8rem; color: var(--color-blue); }

.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table td { padding: 6px 0; border-bottom: 1px solid #141f38; }
.invoice-table .highlight-row td { background: rgba(245, 158, 11, 0.08); }
.invoice-table .total-row td {
  border-top: 2px solid var(--border-subtle);
  border-bottom: none;
  padding-top: 10px;
  font-weight: 800;
}
.text-right { text-align: right; }
.price-val { font-size: 1.3rem; color: var(--color-orange); }

.offset-declaration {
  display: flex;
  gap: 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.offset-leaf { font-size: 1.5rem; }
.offset-declaration h4 { font-size: 0.82rem; color: var(--color-green); }
.offset-declaration p { font-size: 0.75rem; color: var(--text-muted); }

/* Ban Decree Styling */
.decree-box {
  background: #110c11;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.decree-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  padding-bottom: 10px;
}

.decree-header h3 { font-size: 0.85rem; color: var(--color-red); }
.decree-ref { font-family: monospace; font-size: 0.72rem; color: var(--text-dim); }

.ban-statement { font-size: 0.82rem; color: var(--text-main); }
.sanction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sanction-item {
  display: flex;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.sanction-num {
  background: var(--color-red);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sanction-item strong { font-size: 0.8rem; color: #fff; }
.sanction-item p { font-size: 0.72rem; color: var(--text-muted); }

.ban-countdown-box {
  background: #000;
  border: 1px solid var(--color-red);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* Config modal row */
.form-row { display: flex; gap: 12px; }
.form-row .half { flex: 1; }

/* ==================== NEW NAV BUTTONS ==================== */
.btn-nav-college {
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.btn-nav-college:hover { background: rgba(99, 102, 241, 0.3); }

.btn-nav-event {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.btn-nav-event:hover { background: rgba(16, 185, 129, 0.3); }

.btn-indigo {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
}
.btn-indigo:hover { background: linear-gradient(135deg, #4338ca, #4f46e5); }

.btn-action-send {
  background: linear-gradient(135deg, #0f766e, #059669);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-action-send:hover { background: linear-gradient(135deg, #0d6460, #047857); }

/* ==================== COLLEGE RIBBON ==================== */
.college-ribbon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.ribbon-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.ribbon-scroll {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ribbon-scroll::-webkit-scrollbar { display: none; }

.ribbon-empty {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ribbon-college-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0b1220;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ribbon-college-chip:hover { border-color: #6366f1; }

.ribbon-chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #818cf8;
  overflow: hidden;
  flex-shrink: 0;
}

.ribbon-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ribbon-chip-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
}

.ribbon-chip-type {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.ribbon-add-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px dashed rgba(99, 102, 241, 0.5);
  color: #818cf8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.ribbon-add-btn:hover { background: rgba(99, 102, 241, 0.3); }

/* ==================== EVENT REGISTRATION STRIP ==================== */
.event-reg-strip {
  background: linear-gradient(135deg, #0f1e38 0%, #0e1f1e 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.event-strip-icon { font-size: 1.4rem; }

.event-strip-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.event-strip-info strong {
  font-size: 0.92rem;
  color: var(--text-main);
}

.event-strip-info span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.event-strip-ngo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid rgba(16, 185, 129, 0.3);
  padding-left: 14px;
}

.ngo-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-green);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.event-strip-ngo strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.ngo-email {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==================== COLLEGE MODAL STYLES ==================== */
.college-modal {
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
}

.form-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.logo-upload-zone {
  background: #090e1a;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-upload-zone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
}

.logo-upload-zone .upload-icon { font-size: 1.5rem; margin-right: 8px; }
.logo-upload-zone p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.logo-upload-zone small { color: var(--text-dim); }

#logoPreviewArea {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-preview-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
}

/* College Cards Grid */
.college-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.college-card {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.2s;
}

.college-card:hover { border-color: #6366f1; }

.college-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #818cf8;
  overflow: hidden;
  flex-shrink: 0;
}

.college-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.college-card-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.college-card-code {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
}

.college-card-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.college-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.college-card:hover .college-card-delete { opacity: 1; }

.no-college-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ==================== EVENT REGISTRATION MODAL ==================== */
.event-reg-modal {
  max-width: 800px;
  max-height: 92vh;
  overflow-y: auto;
}

.ngo-registration-box {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ngo-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.ngo-section-title h4 {
  color: var(--color-green);
  font-size: 0.88rem;
}

.ngo-section-title small {
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* ==================== INVOICE MODAL STYLES ==================== */
.invoice-modal {
  max-width: 820px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.email-composer-bar {
  background: #090e1a;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid #111a2f;
}

.email-field-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  width: 55px;
  flex-shrink: 0;
}

.email-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.82rem;
  outline: none;
}

.email-tag-live {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.invoice-preview-scroll {
  flex: 1;
  overflow-y: auto;
  background: #0a0f1c;
  padding: 20px;
}

.invoice-preview-paper {
  background: #fff;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 32px 40px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  max-width: 740px;
  margin: 0 auto;
}

/* ==================== EMAIL SENT MODAL ==================== */
.email-sent-modal {
  max-width: 480px;
}

.sent-ngo-block {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 0 auto 16px;
  max-width: 320px;
}

.sent-ngo-name {
  font-size: 1rem;
  font-weight: 800;
  color: #10b981;
}

.sent-ngo-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sent-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.sent-detail-item {
  background: #090e1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.sent-detail-item .lbl {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sent-detail-item .val {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

