/* ==========================================================================
   Base CSS & Variables (Color System, Typography & Resets)
   ========================================================================== */
:root {
  color-scheme: dark;
  /* Color Palette - Premium Slate & Orange Theme (Dark Mode Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #121826;
  --card-bg: rgba(22, 30, 49, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --primary-color: #f97316;
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --accent-color: #fbbf24;
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  --glass-glow: rgba(249, 115, 22, 0.15);
  
  /* Font Stack */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Layout values */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
  color-scheme: light;
  /* Color Palette - Premium White & Orange Theme (Light Mode) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.08);
  
  --primary-color: #ea580c;
  --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --accent-color: #d97706;
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #ea580c 100%);
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --glass-glow: rgba(234, 88, 12, 0.1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Glowing Orbs for Aesthetic depth */
.background-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.glow-orb-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--primary-color);
  animation: orbFloat 25s ease-in-out infinite alternate;
}

.glow-orb-2 {
  bottom: -15%;
  left: -5%;
  width: 60vw;
  height: 60vw;
  background: var(--accent-color);
  animation: orbFloat 35s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.1); }
  100% { transform: translate(-3%, -5%) scale(0.95); }
}

/* Main Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.logo-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.logo-icon i {
  width: 32px;
  height: 32px;
  color: var(--text-inverse);
}

.logo-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.minister-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
  background: #ffffff;
  transition: var(--transition-smooth);
}

.logo-icon-wrapper:hover .minister-avatar {
  transform: scale(1.05);
  border-color: var(--primary-color);
}

.logo-badge-icon {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-badge-icon i {
  width: 18px;
  height: 18px;
  color: #fff;
}

.logo-area h1 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-area .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 2px;
}

/* Contact Person Card */
.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-width: 420px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.1);
}

.contact-card-bottom {
  margin: 1.5rem auto 0 auto;
  width: 100%;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-header i {
  width: 18px;
  height: 18px;
}

.contact-header h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.contact-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  width: fit-content;
}

.contact-item i {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
}

.contact-item:hover {
  color: #fff;
  transform: translateX(3px);
}

.whatsapp-prompt {
  margin-top: 0.5rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.whatsapp-btn:hover {
  background-color: var(--success-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.whatsapp-btn:disabled,
.whatsapp-btn.disabled {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.whatsapp-btn i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Navigation Component
   ========================================================================== */
.tab-navigation {
  display: flex;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  width: fit-content;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.tab-btn i {
  width: 18px;
  height: 18px;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

/* ==========================================================================
   Sections and Cards
   ========================================================================== */
.tab-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

.section-card, .sheet-container-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.section-card::before, .sheet-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card-header {
  margin-bottom: 2rem;
}

.card-header h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Form Fields and Elements
   ========================================================================== */
.form-group-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  background-color: rgba(0, 0, 0, 0.15);
}

.form-group-fieldset legend {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-color);
  padding: 0 0.75rem;
  letter-spacing: 0.5px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-field label .required {
  color: var(--danger-color);
}

.form-field label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  background-color: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 80px;
}

.phone-input-wrapper {
  display: grid;
  grid-template-columns: minmax(104px, auto) 1fr;
  align-items: stretch;
  width: 100%;
  background-color: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
  background-color: rgba(18, 24, 38, 0.95);
}

.phone-country-code,
.phone-input-wrapper input {
  min-width: 0;
  height: 100%;
  background: transparent !important;
  border: none !important;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  box-shadow: none !important;
}

.phone-country-code {
  padding: 0.75rem 0.6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  cursor: pointer;
  appearance: auto;
}

.phone-country-code option {
  background-color: var(--bg-secondary);
  color: #fff;
}

.phone-input-wrapper input {
  padding: 0.75rem 1rem;
}

body.light-mode .phone-input-wrapper {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
}

body.light-mode .phone-input-wrapper:focus-within {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

body.light-mode .phone-country-code,
body.light-mode .phone-input-wrapper input {
  color: #0f172a;
}

body.light-mode .phone-country-code {
  border-right: 1px solid #cbd5e1 !important;
}

body.light-mode .phone-country-code option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Focused states */
.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
  background-color: rgba(18, 24, 38, 0.95);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper select:focus + .input-icon,
.input-wrapper textarea:focus + .input-icon {
  color: var(--primary-color);
}

/* Custom select dropdown styling in chromium */
.input-wrapper select option {
  background-color: var(--bg-secondary);
  color: #fff;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hide dynamic field */
.dynamic-field.hidden {
  display: none !important;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.submit-btn {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.3);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn i {
  width: 18px;
  height: 18px;
}

/* Status Notifications */
.form-message {
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition-smooth);
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

/* ==========================================================================
   Spreadsheet View Dashboard
   ========================================================================== */
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.sheet-title h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.sheet-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sheet-actions {
  display: flex;
  gap: 0.75rem;
}

.export-btn, .refresh-btn {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.export-btn {
  background: var(--accent-gradient);
  color: #0b0f19;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
}

.export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.export-btn i, .refresh-btn i {
  width: 16px;
  height: 16px;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Searching and Filtering Panel */
.sheet-controls {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

.filter-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-icon {
  position: absolute;
  left: 0.9rem;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.filter-box select {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem 0.65rem 2.25rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 220px;
}

.filter-box select:focus {
  border-color: var(--accent-color);
}

.row-count-badge, .row-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

/* ==========================================================================
   Spreadsheet Table (Excel-like Grid Styles)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  background: rgba(11, 15, 25, 0.4);
}

/* Custom Scrollbars for spreadsheet */
.table-responsive::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.5);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.spreadsheet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Grid Headers */
.spreadsheet-table th {
  background-color: rgba(18, 24, 38, 0.95);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: sticky;
  top: 0;
  z-index: 10;
}

.spreadsheet-table th:hover {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--primary-color);
}

.spreadsheet-table th:last-child {
  border-right: none;
  cursor: default;
}

.spreadsheet-table th:last-child:hover {
  background-color: rgba(18, 24, 38, 0.95);
  color: #fff;
}

.sort-indicator {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.75rem;
}

/* Grid Cells */
.spreadsheet-table td {
  padding: 0.85rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  vertical-align: middle;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spreadsheet-table td:last-child {
  border-right: none;
}

.spreadsheet-table tbody tr {
  transition: var(--transition-smooth);
}

/* Row Hovering & Alternating colors */
.spreadsheet-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.01);
}

.spreadsheet-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

/* Highlight Cell Styling */
.cell-id {
  font-family: monospace;
  color: var(--accent-color);
  font-weight: 600;
}

.cell-timestamp {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cell-name {
  font-weight: 600;
  color: #fff;
}

.cell-department {
  background-color: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.cell-accompanying {
  text-align: center;
  font-weight: 600;
}

.delete-row-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-row-btn:hover {
  background: var(--danger-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.delete-row-btn i {
  width: 14px;
  height: 14px;
}

/* Empty database state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state.hidden {
  display: none;
}

.empty-state i {
  width: 60px;
  height: 60px;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-family: var(--font-title);
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Admin Authentication Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  overflow-y: auto;
  padding: 2rem 1rem;
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: var(--transition-smooth);
  text-align: center;
  margin: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 54px;
  height: 54px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.modal-icon i {
  width: 24px;
  height: 24px;
}

.modal-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-content .form-field {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal-content input[type="password"] {
  width: 100%;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.modal-content input[type="password"]:focus {
  border-color: var(--accent-color);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

.cancel-btn, .login-btn {
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.login-btn {
  background: var(--accent-gradient);
  color: #0b0f19;
}

.login-btn:hover {
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
  opacity: 0.95;
}

.modal-error-msg {
  color: var(--danger-color);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.modal-error-msg.show {
  display: block;
}

/* Overlay Helper Classes */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

.app-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .contact-card {
    max-width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .section-card, .sheet-container-card {
    padding: 1.5rem;
  }

  .form-group-fieldset {
    padding: 1.25rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .sheet-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sheet-actions {
    width: 100%;
  }

  .sheet-actions button {
    flex: 1;
    justify-content: center;
  }

  .sheet-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-box select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .logo-area h1 {
    font-size: 1.5rem;
  }
  
  .logo-area .subtitle {
    font-size: 0.85rem;
  }

  .logo-icon-wrapper {
    width: 100px;
    height: 100px;
  }
  
  .logo-badge-icon {
    width: 30px;
    height: 30px;
  }

  .logo-badge-icon i {
    width: 15px;
    height: 15px;
  }

  .receipt-modal-content {
    padding: 1.5rem 1rem;
    width: 95%;
  }

  .receipt-print-wrapper {
    padding: 1.25rem 1rem;
  }

  .modal-actions-receipt {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  
  .modal-actions-receipt button {
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .modal-actions-receipt button:nth-child(3) {
    grid-column: span 2 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
  }
  
  body.light-mode .modal-actions-receipt button:nth-child(3) {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
  }
  
  .modal-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Receipt Modal & Print Styles
   ========================================================================== */
.receipt-modal-content {
  max-width: 620px;
  width: 90%;
  padding: 2.2rem;
}

.success-icon {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--success-color) !important;
}

.receipt-print-wrapper {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.receipt-header-print {
  text-align: center;
  margin-bottom: 1.5rem;
}

.receipt-emblem {
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.receipt-emblem i {
  width: 32px;
  height: 32px;
}

.receipt-header-print h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.emblem-subtitle {
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
}

.receipt-divider {
  height: 1px;
  background: #cbd5e1;
  margin: 0.75rem auto;
  width: 80%;
}

.receipt-meta-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.receipt-badge-container {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.receipt-id-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
}

.receipt-id-val {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.receipt-section {
  margin-bottom: 1.5rem;
}

.receipt-sec-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 0.3rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.receipt-table-details {
  width: 100%;
}

.receipt-table-details tr {
  border-bottom: 1px solid #f1f5f9;
}

.receipt-table-details tr:last-child {
  border-bottom: none;
}

.receipt-table-details td {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #334155;
  background: transparent !important;
  border: none !important;
  white-space: normal;
}

.receipt-table-details td.lbl {
  width: 38%;
  font-weight: 700;
  color: #64748b;
}

.receipt-table-details td.val {
  width: 62%;
  font-weight: 500;
  color: #0f172a;
}

.receipt-footer-print {
  border-top: 1.5px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.receipt-note-bold {
  font-weight: 700;
  color: #0f172a;
  margin: 0.6rem 0;
  font-size: 0.85rem;
}

.receipt-timestamp-print {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 0.75rem;
  font-style: italic;
}

.modal-actions-receipt {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wa-share-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.wa-share-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.wa-share-btn i {
  width: 18px;
  height: 18px;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden;
  }
  #receipt-print-area, #receipt-print-area * {
    visibility: visible;
  }
  #receipt-print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
}

/* Admin Portal Button Styles */
.admin-portal-btn {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--primary-color);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
  margin-top: 0.6rem;
  outline: none;
}

.admin-portal-btn:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transform: translateY(-1px);
}

.admin-portal-btn:active {
  transform: translateY(1px);
}

.admin-portal-btn i {
  width: 14px;
  height: 14px;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  position: static;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex: 0 0 auto;
  box-shadow: none;
  line-height: 1;
  appearance: none;
}

.app-header > .theme-toggle-btn {
  align-self: flex-end;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
  background: rgba(249, 115, 22, 0.14);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
  border-color: var(--primary-color);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.theme-toggle-btn i {
  display: block;
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

body.light-mode .theme-toggle-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.light-mode .theme-toggle-btn:hover {
  background: #f1f5f9;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.18);
  border-color: var(--primary-color);
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  .theme-toggle-btn i {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Light Mode Overrides
   ========================================================================== */
body.light-mode {
  color: var(--text-main);
  background-color: var(--bg-primary);
}

body.light-mode .logo-area h1 {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .card-header h2,
body.light-mode .sheet-title h2,
body.light-mode .modal-content h2 {
  color: #0f172a;
}

body.light-mode .contact-name {
  color: #0f172a;
}

body.light-mode .contact-item {
  color: var(--text-muted);
}

body.light-mode .contact-item:hover {
  color: #0f172a;
}

body.light-mode .form-field label {
  color: #1e293b;
}

body.light-mode .form-group-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.02);
}

body.light-mode .section-card,
body.light-mode .sheet-container-card {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

body.light-mode .input-wrapper input,
body.light-mode .input-wrapper select,
body.light-mode .input-wrapper textarea {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.light-mode .input-wrapper input:focus,
body.light-mode .input-wrapper select:focus,
body.light-mode .input-wrapper textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

body.light-mode .input-wrapper select option {
  background-color: #ffffff;
  color: #0f172a;
}

body.light-mode .tab-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}

body.light-mode .table-responsive {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.light-mode .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid var(--bg-primary);
}

body.light-mode .spreadsheet-table th {
  background-color: #e2e8f0;
  color: #0f172a;
  border-right: 1px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
}

body.light-mode .spreadsheet-table th:hover {
  background-color: #cbd5e1;
  color: var(--primary-color);
}

body.light-mode .spreadsheet-table th:last-child:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

body.light-mode .spreadsheet-table td {
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
}

body.light-mode .spreadsheet-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.015);
}

body.light-mode .spreadsheet-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.035);
}

body.light-mode .cell-name {
  color: #0f172a;
}

body.light-mode .search-box input {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.light-mode .search-box input:focus {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

body.light-mode .filter-box select {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.light-mode .filter-box select option {
  background: #ffffff;
  color: #0f172a;
}

body.light-mode .filter-box select:focus {
  background: #ffffff;
  border-color: var(--primary-color);
}

body.light-mode .row-count-badge,
body.light-mode .row-count {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

body.light-mode .glow-orb {
  opacity: 0.06;
}

body.light-mode .modal-overlay {
  background-color: rgba(248, 250, 252, 0.85);
}

body.light-mode .modal-content {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .modal-content p {
  color: #475569;
}

body.light-mode .modal-content input[type="password"] {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.light-mode .modal-content input[type="password"]:focus {
  background: #ffffff;
  border-color: var(--primary-color);
}

body.light-mode .cancel-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

body.light-mode .cancel-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

body.light-mode .refresh-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-main);
}

body.light-mode .refresh-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

body.light-mode .app-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .app-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Restructured Remake CSS - Stats, Calendar & Status Lookups
   ========================================================================== */
.tab-navigation-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.lookup-submit-btn {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  height: 47px;
  white-space: nowrap;
}

.lookup-submit-btn:hover {
  opacity: 0.9;
}

.status-result-container {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  animation: fadeIn 0.4s ease;
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-ref-id {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

body.light-mode .status-ref-id {
  color: #0f172a;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-open {
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-progress {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-cancel {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-closed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status Timeline */
.status-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

body.light-mode .status-timeline::before {
  background: rgba(0, 0, 0, 0.08);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 120px;
}

.step-icon-container {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  margin-bottom: 0.75rem;
}

body.light-mode .step-icon-container {
  border-color: rgba(0, 0, 0, 0.12);
}

.step-icon-container i {
  width: 20px;
  height: 20px;
}

.step-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 160px;
}

/* Timeline Active / Completed States */
.timeline-step.active .step-icon-container {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.timeline-step.active .step-title {
  color: var(--accent-color);
}

.timeline-step.completed .step-icon-container {
  border-color: var(--success-color);
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.05);
}

.timeline-step.completed .step-title {
  color: var(--success-color);
}

.timeline-step.cancelled .step-icon-container {
  border-color: var(--danger-color);
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.05);
}

.timeline-step.cancelled .step-title {
  color: var(--danger-color);
}

/* Details Card */
.status-details-card {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.status-details-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 8px;
}

body.light-mode .status-details-card h3 {
  color: #0f172a;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.detail-item .val {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
}

body.light-mode .detail-item .val {
  color: #0f172a;
}

.details-actions {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon i {
  width: 22px;
  height: 22px;
}

.icon-total {
  background: rgba(37, 99, 235, 0.12);
  color: #3b82f6;
}
.icon-today {
  background: rgba(234, 88, 12, 0.12);
  color: var(--primary-color);
}
.icon-scheduled {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-color);
}
.icon-pending {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
}

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

body.light-mode .stat-value {
  color: #0f172a;
}

/* ==========================================================================
   Dashboard Calendar Widget & Layout
   ========================================================================== */
.dashboard-split-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.dashboard-split-layout .sheet-container-card {
  flex: 1;
  min-width: 0;
}

.calendar-sidebar-card {
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.75rem;
}

.sidebar-header h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

body.light-mode .sidebar-header h3 {
  color: #0f172a;
}

.sidebar-header i {
  width: 20px;
  height: 20px;
}

/* Calendar Grid rendering */
.cal-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cal-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: #fff;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.cal-nav-btn:hover {
  background: var(--primary-color);
}

.cal-month-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

body.light-mode .cal-month-title,
body.light-mode .cal-nav-btn {
  color: #0f172a;
}

.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 0.5rem;
}

.cal-header-day {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.cal-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.cal-day-cell:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.cal-day-cell.selected {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.cal-day-cell.empty {
  cursor: default;
}

.appt-dot {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.dot-pending {
  background: var(--primary-color);
}

.dot-scheduled {
  background: var(--success-color);
}

.cal-day-cell.has-appointment {
  font-weight: 700;
  color: #fff;
}

body.light-mode .cal-day-cell.has-appointment {
  color: #0f172a;
}

.calendar-meta-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

.clear-calendar-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 0.75rem;
  transition: var(--transition-smooth);
}

.clear-calendar-btn:hover {
  background: var(--danger-color);
  color: #fff;
  border-color: transparent;
}

/* ==========================================================================
   Inline Table Status Selectors
   ========================================================================== */
.status-select-inline {
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  width: 110px;
}

.status-select-inline option {
  background: var(--bg-secondary);
  color: #fff;
}

body.light-mode .status-select-inline {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.light-mode .status-select-inline option {
  background: #fff;
  color: #0f172a;
}

.status-select-inline.sel-open {
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--primary-color);
  background: rgba(249, 115, 22, 0.08);
}
.status-select-inline.sel-progress {
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--accent-color);
  background: rgba(251, 191, 36, 0.08);
}
.status-select-inline.sel-cancel {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.08);
}
.status-select-inline.sel-closed {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.08);
}

.wa-action-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-action-btn:hover {
  background: var(--success-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* Scheduler Modal Details */
.scheduler-modal-content {
  max-width: 440px;
}

/* Responsive adjustment for split layout */
@media (max-width: 992px) {
  .dashboard-split-layout {
    flex-direction: column;
    align-items: stretch;
  }
  
  .calendar-sidebar-card {
    width: 100%;
    position: static;
  }
}

/* ==========================================================================
   Media Gallery & Slideshow Styles
   ========================================================================== */
.hero-slideshow-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-slideshow-container {
    height: 280px;
  }
}

.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease;
}

.slideshow-slide.active img {
  transform: scale(1.05);
}

.slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.4) 70%, transparent 100%);
  color: #fff;
  z-index: 2;
}

.slideshow-caption h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10;
}

.slideshow-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

.slideshow-overlay-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.slideshow-action-btn {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.slideshow-action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slideshow-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

/* Gallery Thumbnail Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

.gallery-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-container img {
  transform: scale(1.08);
}

.gallery-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.zoom-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  transform: scale(0.8);
  transition: var(--transition-smooth);
}

.gallery-card:hover .zoom-icon {
  transform: scale(1);
}

.gallery-card-info {
  padding: 1rem;
}

.gallery-card-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card:hover .gallery-card-info p {
  color: var(--text-main);
}

/* Lightbox Styles */
.lightbox-nav-btn {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-nav-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

@media (max-width: 600px) {
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
  }
  .lb-prev {
    left: -10px !important;
  }
  .lb-next {
    right: -10px !important;
  }
}

/* ==========================================================================
   Blog Styling
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.blog-card:hover .blog-card-image {
  transform: scale(1.06);
}

.blog-rich-content {
  font-family: var(--font-body);
}

.blog-rich-content p {
  margin-bottom: 1.25rem;
}

.blog-rich-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 1.5rem 0;
  background: rgba(249, 115, 22, 0.05);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-rich-content h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
}

.blog-rich-content ul, .blog-rich-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-rich-content li {
  margin-bottom: 0.5rem;
}

/* WYSIWYG Editor Admin Toolbar styling */
.editor-toolbar {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--card-border);
}

.toolbar-btn {
  background: transparent;
  border: 1px solid transparent;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.toolbar-btn i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Homepage Mockup Styles (Hero Banner, Portfolios, Quick Access)
   ========================================================================== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: url('media/dhekiajuli shiv mandir.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1.5rem;
    min-height: 300px;
  }
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.65) 100%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-banner-content h2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-banner-content .role {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: -4px;
}

.hero-banner-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-banner-content .hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.hero-banner-content .hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* Portfolio Section */
.section-headline-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-headline-wrapper i {
  color: var(--primary-color);
}

.section-headline-wrapper h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.1);
}

.portfolio-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.portfolio-card h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quick Access Grid */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.quick-access-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.quick-access-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.1);
}

.quick-access-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

.quick-access-card-info {
  flex-grow: 1;
}

.quick-access-card-info h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.quick-access-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.quick-access-card-chevron {
  color: var(--text-muted);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.quick-access-card:hover .quick-access-card-chevron {
  transform: translateX(4px);
  color: var(--primary-color);
}

/* Navigation Bar & Links */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 30, 49, 0.4);
  border: 1px solid var(--card-border);
  padding: 4px;
  border-radius: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

@media (max-width: 600px) {
  .nav-bar {
    width: 100%;
    justify-content: space-around;
  }
  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Mockup Gallery & Portraits Styles
   ========================================================================== */
.filter-pill {
  background: rgba(22, 30, 49, 0.4);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.filter-pill.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Horizontal Scrollable Thumbnail Strip */
.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.4);
  border-radius: 4px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.thumbnail-item {
  width: 76px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  opacity: 0.5;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-item:hover {
  opacity: 0.85;
  border-color: rgba(249, 115, 22, 0.4);
}

.thumbnail-item.active {
  opacity: 1;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

/* Portrait Card hover styling */
.portrait-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.portrait-card:hover .portrait-hover-overlay {
  opacity: 1 !important;
}

.portrait-card:hover .portrait-img-container img {
  transform: scale(1.03);
}


