/* CSS Design System for Navdiva Group - Modern 2026 Bento & Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #6366f1; /* Indigo */
  --accent-secondary: #06b6d4; /* Cyan */
  --cyan-electric: #00b8ff;
  --text-main: #ffffff;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-blur: 16px;
  
  --card-bg: rgba(31, 41, 55, 0.35);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(99, 102, 241, 0.3);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --nav-height: 70px;
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-primary: #4f46e5;
  --accent-secondary: #0891b2;
  --cyan-electric: #00b8ff;
  --text-main: #000000;
  --accent-glow: rgba(79, 70, 229, 0.1);
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #0891b2 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: rgba(15, 23, 42, 0.06);
  
  --card-bg: rgba(255, 255, 255, 0.5);
  --card-border: rgba(0, 0, 0, 0.05);
  --card-hover-border: rgba(79, 70, 229, 0.25);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Floating Bento Navbar */
header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bento-navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  height: 64px;
  padding: 0 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  box-shadow: 0 10px 30px -10px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.nav-brand {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links li.active a {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links li.active a {
  background: rgba(0, 0, 0, 0.05);
}

.nav-links li.active a {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid var(--glass-border);
}

/* Dropdown Styles */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px var(--glass-shadow);
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-links .dropdown-menu li {
  width: 100%;
}

.nav-links .dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 0;
  transition: var(--transition-smooth);
}

.nav-links .dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-secondary);
}

/* Colored Portfolio Dropdown Items */
.nav-links .dropdown-menu a[href*="ndtechhub.com"] { color: var(--cyan-electric); font-weight: 600; }
.nav-links .dropdown-menu a[href*="ndmart.store"] { color: #f59e0b; font-weight: 600; }
.nav-links .dropdown-menu a[href*="rameshta.online"] { color: #ff7a00; font-weight: 600; }
.nav-links .dropdown-menu a[href*="ghar.navdiva.com"] { color: #10b981; font-weight: 600; }
.nav-links .dropdown-menu a[href*="ndinsights"] { color: #a855f7; font-weight: 600; }

.nav-links .dropdown-menu a[href*="ndtechhub.com"]:hover { background: rgba(0, 184, 255, 0.1); }
.nav-links .dropdown-menu a[href*="ndmart.store"]:hover { background: rgba(245, 158, 11, 0.1); }
.nav-links .dropdown-menu a[href*="rameshta.online"]:hover { background: rgba(255, 122, 0, 0.1); }
.nav-links .dropdown-menu a[href*="ghar.navdiva.com"]:hover { background: rgba(16, 185, 129, 0.1); }
.nav-links .dropdown-menu a[href*="ndinsights"]:hover { background: rgba(168, 85, 247, 0.1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle, .mobile-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(15deg);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

.mobile-toggle {
  display: none;
}

/* Page Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 20px;
}

.bento-card {
  grid-column: span 4;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 0;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-hover-border);
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card * {
  position: relative;
  z-index: 1;
}

/* Bento Grid Spans */
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.col-span-3 { grid-column: span 3; }

.row-span-2 { grid-row: span 2; }
.row-span-3 { grid-row: span 3; }

/* Bento Card Internal Elements */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  font-size: 20px;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.card-link svg {
  transition: var(--transition-smooth);
}

.bento-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Specialized Bento Cards */
.card-featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-featured:hover {
  box-shadow: 0 15px 45px -10px rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  height: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--card-border);
}

[data-theme="light"] .stat-item {
  background: rgba(0, 0, 0, 0.02);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-title);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
}

/* Unit Badges */
.unit-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  width: fit-content;
  margin-bottom: 12px;
}

/* Footer Section */
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(11, 15, 25, 0.4);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* Forms & Controls */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, textarea, select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-smooth);
}

[data-theme="light"] input, 
[data-theme="light"] textarea, 
[data-theme="light"] select {
  background: rgba(0, 0, 0, 0.02);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px var(--accent-glow);
}

[data-theme="light"] input:focus, 
[data-theme="light"] textarea:focus, 
[data-theme="light"] select:focus {
  background: rgba(255, 255, 255, 0.9);
}

option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Modals & Dialogs */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 600px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--text-primary);
}

/* careers specific layout */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.job-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(var(--glass-blur));
  transition: var(--transition-smooth);
  flex-wrap: wrap;
  gap: 20px;
}

.job-card:hover {
  border-color: var(--card-hover-border);
  transform: translateX(4px);
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
}

.job-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Admin Document Workspace styles */
.admin-workspace {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 30px;
  margin-top: 20px;
}

.admin-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  height: fit-content;
  backdrop-filter: blur(var(--glass-blur));
}

.admin-preview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 16px 24px;
  backdrop-filter: blur(var(--glass-blur));
}

.admin-preview-pane {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
  aspect-ratio: 1 / 1.414; /* A4 Ratio */
  width: 100%;
  padding: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
}

/* Document Template Styling in Preview Mode */
.doc-letterhead {
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.doc-logo {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  color: #1e1b4b;
}

.doc-logo span {
  color: #4f46e5;
}

.doc-org-info {
  text-align: right;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.doc-metadata {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  margin-bottom: 30px;
}

.doc-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.doc-body {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 50px;
}

.doc-body p {
  margin-bottom: 16px;
  text-align: justify;
}

.doc-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  font-size: 13px;
  color: #475569;
}

.doc-sig-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.doc-sig-line {
  border-top: 1px solid #94a3b8;
  width: 100%;
  margin-bottom: 8px;
}

/* Units Specific Styles */
.units-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.unit-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  min-height: 350px;
}

.unit-card-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.unit-card-visual {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--card-border);
}

.unit-card-visual::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.15;
  filter: blur(40px);
}

.unit-card-logo-giant {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 100px 16px 40px 16px;
  }

  .bento-navbar {
    width: 95%;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 90px;
    left: 2.5%;
    width: 95%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--border-radius-lg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-card {
    grid-column: span 12 !important;
    grid-row: span 1 !important;
  }

  .unit-showcase-card {
    grid-template-columns: 1fr;
  }

  .unit-card-visual {
    border-left: none;
    border-top: 1px solid var(--card-border);
    min-height: 200px;
  }
}


/* Rameshta Aarti Custom Styling */
.aarti-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aarti-deity-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.deity-tab-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.deity-tab-btn:hover, .deity-tab-btn.active {
  border-color: #f59e0b; /* Marigold Orange */
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-primary);
}

.deity-tab-btn svg {
  width: 24px;
  height: 24px;
  color: #f59e0b;
}

.aarti-altar {
  position: relative;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border: 4px double #d97706; /* Golden border */
  border-radius: var(--border-radius-lg);
  padding: 40px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* Golden pillars / arches decoration */
.aarti-altar::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: calc(var(--border-radius-lg) - 4px);
  pointer-events: none;
}

.aarti-deity-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
  transition: var(--transition-smooth);
  margin-bottom: 80px;
}

.deity-graphic-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
  transition: var(--transition-smooth);
}

.deity-graphic-wrapper svg {
  width: 90px;
  height: 90px;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* Waving Diya (Aarti animation) */
.aarti-diya-overlay {
  position: absolute;
  bottom: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.diya-flame-glow {
  width: 18px;
  height: 28px;
  background: radial-gradient(circle, #ffedd5 10%, #f97316 60%, #ef4444 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 20px #f97316, 0 0 40px #ef4444;
  animation: flicker 0.15s infinite alternate;
}

.diya-base {
  width: 44px;
  height: 18px;
  background: linear-gradient(180deg, #d97706 0%, #78350f 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
  margin-top: -4px;
  border: 1px solid #f59e0b;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); filter: brightness(1); }
  100% { transform: scale(1.15) rotate(1deg); filter: brightness(1.2); }
}

/* Diya circular motion when waving */
.waving-active .deity-graphic-wrapper {
  animation: glow-pulse 2s infinite ease-in-out;
}

.waving-active .aarti-diya-overlay {
  animation: wave-diya 3s infinite linear;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.4); border-color: rgba(245, 158, 11, 0.9); }
}

@keyframes wave-diya {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-55px, -40px); }
  50% { transform: translate(0, -80px); }
  75% { transform: translate(55px, -40px); }
  100% { transform: translate(0, 0); }
}

.aarti-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  z-index: 2;
  margin-top: 10px;
}

.aarti-bell-btn, .aarti-wave-btn, .aarti-conch-btn {
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.aarti-wave-btn {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.aarti-bell-btn {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.aarti-conch-btn {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.2);
}

.aarti-bell-btn:hover, .aarti-conch-btn:hover {
  transform: translateY(-2px);
}

.aarti-wave-btn.active {
  animation: pulse-active 1.5s infinite alternate;
}

@keyframes pulse-active {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(245, 158, 11, 0.8); }
}

.aarti-lyrics-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 20px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 13px;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.8;
  z-index: 2;
}

.sound-waves {
  display: none;
  align-items: center;
  gap: 3px;
  height: 20px;
  margin-top: 10px;
  z-index: 2;
}

.sound-waves.active {
  display: flex;
}

.sound-bar {
  width: 3px;
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  animation: sound-bounce 0.8s infinite ease-in-out alternate;
}

.sound-bar:nth-child(2) { animation-delay: 0.15s; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; }
.sound-bar:nth-child(4) { animation-delay: 0.45s; }
.sound-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes sound-bounce {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* PRINT MEDIA STYLES - Crucial for prefilled document printing */
@media print {
  /* Hide standard webpage components */
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  header, footer, navdiva-footer, .admin-sidebar, .preview-header-bar, .section-header, .theme-toggle, .btn, .nav-actions, .mobile-toggle {
    display: none !important;
  }

  .container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .admin-workspace {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-preview-container {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  @page {
    margin: 0;
  }

  /* Target only the document container to fill the entire page */
  .admin-preview-pane {
    display: block !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20mm !important; /* Internal padding to replace paper margins */
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
  }

  .doc-letterhead {
    border-bottom: 2px solid #000000 !important;
  }

  .doc-logo {
    color: #000000 !important;
  }

  .doc-logo span {
    color: #000000 !important;
  }
}

