/* Brand Identity Design System - Jandra Samajam Admin Control Panel */
/* Custom Glassmorphism & Neumorphic Hybrid Styling */

:root {
  /* Rich, vibrant dark mesh/gradient background colors (from second image) */
  --bg-gradient: radial-gradient(at 0% 0%, #1e1b4b 0px, transparent 55%),
                  radial-gradient(at 50% 0%, #311042 0px, transparent 55%),
                  radial-gradient(at 100% 0%, #4c1d95 0px, transparent 55%),
                  radial-gradient(at 0% 100%, #0f172a 0px, transparent 55%),
                  radial-gradient(at 100% 100%, #3b0764 0px, transparent 55%),
                  #0b0714;
                  
  /* Frosted Glass transparency styles (from second image) */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-border-hover: rgba(255, 255, 255, 0.28);
  
  /* Neumorphic/Embossed light-blue accents (from first image) */
  --neumo-accent-bg: #d0e5f5;
  --neumo-accent-hover: #e0f0fd;
  --neumo-accent-text: #1a2e40;
  
  /* Accent states with vibrant glow */
  --accent-saffron: #f97316;
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-maroon: #f43f5e;
  
  /* Typography color palette with increased contrast */
  --text-primary: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dark: #0f172a;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;

  /* Legacy variable compatibility mappings to ensure seamless rendering */
  --loom-linen: var(--glass-bg);
  --loom-ivory: rgba(255, 255, 255, 0.04);
  --loom-indigo: #cbd5e1; /* White/grey text representation */
  --loom-saffron: var(--accent-saffron);
  --loom-gold: var(--accent-gold);
  --loom-green: var(--accent-green);
  --loom-maroon: var(--accent-maroon);
  --loom-border: var(--glass-border);
  --loom-text-muted: var(--text-muted);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
}

/* App Shell Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar Styling - Frosted Glass Column */
.sidebar {
  width: 290px;
  background: rgba(11, 7, 20, 0.45);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--glass-border);
  flex-shrink: 0;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
}

/* Embossed circular logo box */
.logo-box {
  width: 48px;
  height: 48px;
  background: var(--neumo-accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4), 
              -2px -2px 6px rgba(255, 255, 255, 0.4),
              inset 1px 1px 3px rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-svg {
  width: 42px;
  height: 42px;
}

.title-box h1 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-box span {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-menu {
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  overflow-y: auto;
}

/* Neumorphic Navigation Buttons */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 15px; /* Increased for readability */
  font-weight: 600;
  text-align: left;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.05);
}

.nav-item:hover {
  background-color: var(--glass-bg-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Selected Tab - Light Embossed Button style */
.nav-item.active {
  background-color: var(--neumo-accent-bg);
  color: var(--neumo-accent-text);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3),
              -2px -2px 6px rgba(255, 255, 255, 0.5),
              inset 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-weight: 700;
  transform: none;
}

.nav-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-maroon {
  background-color: var(--accent-maroon);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

.sidebar-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--glass-border);
}

.user-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Main Content Wrapper - Floating layout on top of gradient backdrop */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

/* Top bar styling - Glassmorphic horizontal row */
.top-bar {
  height: 76px;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  flex-shrink: 0;
}

.top-bar h2 {
  font-size: 22px; /* Increased for readability */
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.system-time {
  font-size: 14px; /* Increased */
  font-weight: 600;
  color: var(--text-muted);
}

/* Inner scroll container */
.content-wrapper {
  padding: 36px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Tabs Toggle Display */
.tab-panel {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Metrics Dashboard Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

/* Glassmorphic Metric Cards */
.metric-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-bottom: 3.5px solid var(--accent-gold);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 255, 255, 0.1);
}

.metric-info h3 {
  font-size: 13.5px; /* Increased */
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 32px; /* Increased */
  font-weight: 800;
  color: var(--text-primary);
}

.text-saffron {
  color: var(--accent-saffron) !important;
}

/* Embossed Neumorphic Icons (inspired by first image) */
.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.35),
              -2px -2px 6px rgba(255, 255, 255, 0.05),
              inset 1px 1px 3px rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.metric-card:hover .metric-icon {
  background: var(--neumo-accent-bg);
  color: var(--neumo-accent-text);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4),
              -2px -2px 6px rgba(255, 255, 255, 0.6),
              inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.bg-indigo { background: rgba(99, 102, 241, 0.15); border-color: rgba(99, 102, 241, 0.3) !important; }
.bg-green { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3) !important; }
.bg-saffron { background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.3) !important; }
.bg-maroon { background: rgba(244, 63, 94, 0.15); border-color: rgba(244, 63, 94, 0.3) !important; }

.metric-icon svg {
  width: 26px;
  height: 26px;
}

/* Dashboard Columns Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

/* Glass Panel boxes */
.chart-box, .recent-notices-box, .card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 26px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  color: var(--text-primary);
}

.chart-box h3, .recent-notices-box h3, .card h3 {
  font-size: 18px; /* Increased */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.chart-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.svg-chart {
  width: 100%;
  height: 100%;
}

.chart-desc, .section-desc {
  font-size: 13.5px; /* Increased */
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
}

/* Bulletin / Announcements Log feed */
.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.bulletin-item {
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--accent-saffron);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-size: 14.5px; /* Increased */
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.bulletin-item.notice-admin {
  border-left-color: var(--neumo-accent-bg);
}

/* Custom Web Scrollbar (Glass themed) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neumo-accent-bg);
}

/* Table styling */
.table-container {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: transparent;
}

th, td {
  padding: 16px 20px;
  font-size: 15px; /* Increased */
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
}

th {
  background-color: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 12.5px; /* Increased */
  letter-spacing: 0.75px;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Avatars and badges in Table */
.avatar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.av-bg-1 { background-color: #4f46e5; }
.av-bg-2 { background-color: var(--accent-saffron); }
.av-bg-3 { background-color: var(--accent-gold); color: var(--text-dark); }
.av-bg-4 { background-color: var(--accent-green); }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px; /* Increased */
  font-weight: 700;
  border-radius: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-saffron {
  background-color: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.badge-maroon-status {
  background-color: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Button UI controls - Neumorphic Embossed Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px; /* Increased */
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.35),
              -2px -2px 6px rgba(255, 255, 255, 0.04),
              inset 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.btn:active {
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5),
              inset -2px -2px 4px rgba(255, 255, 255, 0.05);
  transform: translateY(1px);
}

/* Neumorphic Primary (Light Blue Embossed style from first image) */
.btn-indigo {
  background-color: var(--neumo-accent-bg);
  color: var(--neumo-accent-text);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-shadow: none;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3),
              -2px -2px 6px rgba(255, 255, 255, 0.4),
              inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-indigo:hover {
  background-color: var(--neumo-accent-hover);
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35),
              -2px -2px 6px rgba(255, 255, 255, 0.5),
              inset 1px 1px 2px rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.btn-indigo:active {
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.25),
              inset -2px -2px 6px rgba(255, 255, 255, 0.5);
  transform: translateY(1px);
}

.btn-saffron {
  background-color: var(--accent-saffron);
  color: #ffffff;
}

.btn-saffron:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
}

.btn-green {
  background-color: var(--accent-green);
  color: #0f172a;
  text-shadow: none;
}

.btn-green:hover {
  background-color: #059669;
  transform: translateY(-1px);
}

.btn-maroon {
  background-color: var(--accent-maroon);
  color: #ffffff;
}

.btn-maroon:hover {
  background-color: #e11d48;
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12.5px; /* Increased */
}

.btn-full {
  width: 100%;
  padding: 14px;
}

.action-row {
  display: flex;
  gap: 8px;
}

/* Search bar styling */
.search-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.search-box-wrapper {
  flex-grow: 1;
}

.search-box-wrapper input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14.5px; /* Increased */
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.search-box-wrapper input:focus {
  border-color: var(--neumo-accent-bg);
  box-shadow: 0 0 10px rgba(208, 229, 245, 0.2);
  outline: none;
}

.filter-controls {
  display: flex;
  gap: 12px;
}

.filter-controls select {
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px; /* Increased */
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.filter-controls select option {
  background-color: #1e1b4b;
  color: var(--text-primary);
}

/* Matrimony layout Grid */
.matrimony-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.matrimony-action-header h3 {
  font-size: 20px; /* Increased */
  font-weight: 800;
}

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

.matrimony-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border-top: 3.5px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-normal);
}

.matrimony-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 255, 255, 0.08);
}

.mat-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mat-card-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mat-card-header-info h4 {
  font-size: 16px; /* Increased */
  font-weight: 800;
  color: var(--text-primary);
}

.mat-card-header-info p {
  font-size: 12px; /* Increased */
  font-weight: 600;
  color: var(--text-muted);
}

.mat-card-relation {
  margin-left: auto;
  font-size: 11px; /* Increased */
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mat-card-body {
  font-size: 14px; /* Increased */
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
}

.mat-card-body p strong {
  color: var(--text-muted);
}

.mat-card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

/* Home Banner upload and lists */
.banner-manager-container {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 24px;
}

.banner-upload-card {
  height: fit-content;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13.5px; /* Increased */
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14.5px; /* Increased */
  font-weight: 500;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--neumo-accent-bg);
  box-shadow: 0 0 8px rgba(208, 229, 245, 0.25);
}

.presets-block {
  margin-bottom: 24px;
}

.presets-block label {
  font-size: 13px; /* Increased */
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.preset-cards {
  display: flex;
  gap: 10px;
}

.preset-btn {
  flex-grow: 1;
  height: 50px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px; /* Increased */
  color: #ffffff;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.preset-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.preset-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--accent-gold);
}

.p-saffron { background: linear-gradient(135deg, var(--accent-saffron), var(--accent-gold)); }
.p-indigo { background: linear-gradient(135deg, #4f46e5, var(--accent-gold)); }
.p-maroon { background: linear-gradient(135deg, var(--accent-maroon), var(--accent-saffron)); }

.banner-preview-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.banner-item-card {
  height: 100px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.banner-item-img {
  width: 150px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border-right: 1px solid var(--glass-border);
}

.banner-item-info {
  flex-grow: 1;
  padding: 0 18px;
}

.banner-item-info h4 {
  font-size: 14.5px; /* Increased */
  font-weight: 700;
  color: var(--text-primary);
}

.banner-item-info p {
  font-size: 11px; /* Increased */
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 4px;
}

.banner-item-actions {
  padding-right: 18px;
}

/* Empty State Styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  stroke: var(--glass-border);
}

.empty-state p {
  font-size: 14.5px; /* Increased */
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* Modal Popup Core styles - Ultra-Frosted Backdrop */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 7, 20, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}

.modal-content {
  background: rgba(30, 27, 57, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--border-radius-md);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  color: var(--text-primary);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-large {
  max-width: 680px;
}

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

.modal-header h3 {
  font-size: 19px; /* Increased */
  font-weight: 800;
  color: var(--text-primary);
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-modal-btn:hover {
  color: var(--accent-maroon);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
}

.scrollable-modal-body {
  max-height: 60vh;
}

.modal-footer {
  padding: 18px 26px;
  border-top: 1.5px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

/* Modal audit field design */
.audit-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--glass-border);
  font-size: 14.5px; /* Increased */
}

.audit-row:last-child {
  border-bottom: none;
}

.audit-row span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.audit-row span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

/* Matrimony Form Modal specifics */
.form-section-title {
  font-size: 13px; /* Increased */
  font-weight: 800;
  color: var(--accent-saffron);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin: 16px 0 10px 0;
  border-bottom: 1.5px solid var(--glass-border);
  padding-bottom: 6px;
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.word-counter {
  font-size: 12px; /* Increased */
  font-weight: 700;
  align-self: flex-end;
  color: var(--text-muted);
  margin-top: 4px;
}

.word-counter.limit-exceeded {
  color: var(--accent-maroon);
}

/* Funding Tab Layout and Elements styling */
.funding-manager-container {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 26px;
  align-items: start;
}

.funding-left-column, .funding-right-column {
  display: flex;
  flex-direction: column;
}

.qr-upload-preview-container {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  overflow: hidden;
  position: relative;
}

.preview-placeholder {
  font-size: 12px; /* Increased */
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.funding-metrics-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

/* Profile update request changes list */
.changes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  padding: 4px;
}

.changes-list div {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border-left: 3px solid var(--loom-gold, #d97706);
  color: var(--text-primary);
}

/* Column Header Filter Inputs */
.col-filter-input, .col-filter-select {
  width: 100%;
  padding: 4px 6px;
  font-size: 11.5px;
  border-radius: 4px;
  border: 1px solid var(--loom-border, #cbd5e1);
  background: #ffffff;
  color: #1a2a44;
  margin-top: 2px;
  box-sizing: border-box;
  font-weight: normal;
}

.col-filter-input:focus, .col-filter-select:focus {
  outline: none;
  border-color: var(--loom-saffron, #e67e22);
  box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}
