/* ============================================================
   WGJ PWA - Custom Stylesheet (Neon Cyberpunk Theme)
   ============================================================ */

/* Theme Variables */
:root {
  /* Dark Theme Default */
  --bg-primary: #070a13;
  --bg-secondary: #0c101f;
  --bg-panel: rgba(13, 18, 33, 0.75);
  --bg-card: rgba(18, 26, 47, 0.8);
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-cyan: #00bcff;
  --color-blue: #0066ff;
  --color-indigo: #4f46e5;
  --color-success: #10b981;
  --color-danger: #ef4444;
  
  --neon-shadow-cyan: 0 0 10px rgba(0, 188, 255, 0.4), 0 0 20px rgba(0, 188, 255, 0.2);
  --neon-shadow-blue: 0 0 10px rgba(0, 102, 255, 0.4), 0 0 20px rgba(0, 102, 255, 0.2);
  
  --border-glow: 1px solid rgba(0, 188, 255, 0.15);
  --border-glow-focus: 1px solid rgba(0, 188, 255, 0.6);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --grid-line-color: rgba(0, 188, 255, 0.05);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-panel: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-cyan: #0284c7;
  --color-blue: #2563eb;
  --color-indigo: #4f46e5;
  --color-success: #10b981;
  --color-danger: #ef4444;
  
  --neon-shadow-cyan: 0 4px 12px rgba(2, 132, 199, 0.15);
  --neon-shadow-blue: 0 4px 12px rgba(37, 99, 235, 0.15);
  
  --border-glow: 1px solid rgba(37, 99, 235, 0.15);
  --border-glow-focus: 1px solid rgba(37, 99, 235, 0.5);
  --shadow-glass: 0 8px 24px 0 rgba(148, 163, 184, 0.15);
  
  --grid-line-color: rgba(37, 99, 235, 0.03);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Background hexagonal grid with GPU acceleration (RAM friendly) */
.neon-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M0 50L0 84L28 100L56 84L56 50' fill='none' stroke='%2300bcff' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  pointer-events: none;
  z-index: -2;
  transform: translate3d(0, 0, 0);
  animation: gridMove 60s linear infinite;
  will-change: transform;
  opacity: 0.8;
}

[data-theme="light"] .neon-bg-grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M0 50L0 84L28 100L56 84L56 50' fill='none' stroke='%232563eb' stroke-width='1' stroke-opacity='0.04'/%3E%3C/svg%3E");
}

.radial-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-56px, -100px, 0); }
}

/* Custom Text styles */
.neon-text {
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 188, 255, 0.5);
}

.neon-text-secondary {
  color: var(--color-blue);
  text-shadow: 0 0 8px rgba(0, 102, 255, 0.5);
}

.hidden {
  display: none !important;
}

/* ============================================================
   1. AUTHENTICATION SECTION (LOGIN)
   ============================================================ */
.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glow);
  border-radius: 16px;
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-glass);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 8px 32px 0 rgba(0, 188, 255, 0.15);
}

.logo-container {
  margin-bottom: 20px;
}

.auth-logo {
  height: 64px;
  object-fit: contain;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 30px;
}

.error-banner {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--color-danger);
  color: #fca5a5;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: left;
  margin-bottom: 20px;
}

/* Glow Form inputs */
.form-group-glow {
  margin-bottom: 20px;
  text-align: left;
}

.form-group-glow label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group-glow label i {
  margin-right: 5px;
  color: var(--color-cyan);
}

.form-group-glow input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: var(--border-glow);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group-glow input:focus {
  outline: none;
  border: var(--border-glow-focus);
  box-shadow: 0 0 10px rgba(0, 188, 255, 0.2);
}

/* Neon Glow Buttons */
.btn-neon-glow {
  width: 100%;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  padding: 14px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: var(--neon-shadow-cyan);
  transition: all 0.3s ease;
}

.btn-neon-glow:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(0, 188, 255, 0.6), 0 0 30px rgba(0, 188, 255, 0.3);
}

.btn-neon-glow:active {
  transform: translateY(0);
}

/* ============================================================
   2. APP CONTAINER & LAYOUT
   ============================================================ */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-header {
  background: var(--bg-secondary);
  border-bottom: var(--border-glow);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-img {
  height: 36px;
  object-fit: contain;
}

.header-title-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--color-cyan);
  background: rgba(0, 188, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: var(--border-glow);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.admin-icon {
  color: var(--color-cyan);
}

.profile-name {
  font-weight: 500;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--color-danger);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: var(--color-danger);
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* LAYOUT PANEL */
.app-layout {
  display: flex;
  flex: 1;
}

/* SIDEBAR */
.app-sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: var(--border-glow);
  padding: 30px 15px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  text-align: left;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-blue) 0%, rgba(0, 102, 255, 0.1) 100%);
  border-left: 3px solid var(--color-cyan);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

/* MAIN CONTENT PANEL */
.content-panel {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0; /* Prevent flex child from expanding past viewport */
  background: transparent;
}

.tab-content {
  animation: fadeIn 0.4s ease;
}

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

/* ============================================================
   3. DASHBOARD TAB
   ============================================================ */
.welcome-banner {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glow);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-glass);
}

.welcome-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.welcome-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.stat-card {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 188, 255, 0.4);
}

.stat-icon {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Custom Card Skins */
.card-cyan .stat-icon {
  background: rgba(0, 188, 255, 0.1);
  color: var(--color-cyan);
}
.card-cyan:hover {
  box-shadow: 0 0 20px rgba(0, 188, 255, 0.15);
}

.card-blue .stat-icon {
  background: rgba(0, 102, 255, 0.1);
  color: var(--color-blue);
}
.card-blue:hover {
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.15);
}

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

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.card-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* ============================================================
   4. MANAGEMENT TABLES PANEL
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.panel-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.btn-action {
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  padding: 10px 20px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--neon-shadow-cyan);
  transition: all 0.3s ease;
}

.btn-action:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(0, 188, 255, 0.4);
}

/* Responsive Table Wrapper */
.table-container {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glow);
  border-radius: 12px;
  overflow-x: auto; /* Enable horizontal scrolling inside card */
  overflow-y: hidden;
  box-shadow: var(--shadow-glass);

  /* Styled Scrollbar for premium look */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 188, 255, 0.3) transparent;
}

/* Chrome/Safari Scrollbar styling */
.table-container::-webkit-scrollbar {
  height: 6px;
}
.table-container::-webkit-scrollbar-track {
  background: transparent;
}
.table-container::-webkit-scrollbar-thumb {
  background: rgba(0, 188, 255, 0.2);
  border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 188, 255, 0.4);
}

.data-table {
  width: 100%;
  min-width: 950px; /* Ensure columns have enough space without wrapping weirdly */
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

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

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Table loading states */
.loading-td {
  text-align: center;
  padding: 40px !important;
  color: var(--text-secondary);
  font-style: italic;
}

.loading-td i {
  margin-right: 8px;
  color: var(--color-cyan);
}

/* Action icons inside tables */
.table-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-table {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-edit {
  color: var(--color-cyan);
  border: 1px solid rgba(0, 188, 255, 0.2);
}

.btn-edit:hover {
  background: rgba(0, 188, 255, 0.15);
  color: white;
}

.btn-delete {
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-delete:hover {
  background: var(--color-danger);
  color: white;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* ============================================================
   5. MODAL BOX DIALOG
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-box {
  background: var(--bg-secondary);
  border: var(--border-glow);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  animation: modalSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-box.modal-large {
  max-width: 700px;
}

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

.modal-header {
  background: rgba(0, 0, 0, 0.15);
  border-bottom: var(--border-glow);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.modal-body {
  padding: 24px;
}

/* Form layouts inside modals */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }
}

.form-group-pwa {
  margin-bottom: 20px;
}

.form-row .form-group-pwa {
  margin-bottom: 0;
}

.form-group-pwa label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group-pwa input, .form-group-pwa select, .form-group-pwa textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: var(--border-glow);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.form-group-pwa input:focus, .form-group-pwa select:focus, .form-group-pwa textarea:focus {
  outline: none;
  border: var(--border-glow-focus);
  box-shadow: 0 0 8px rgba(0, 188, 255, 0.15);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.help-text {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-footer {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glow);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--neon-shadow-cyan);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

/* ============================================================
   6. TOAST NOTIFICATION STYLING
   ============================================================ */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-panel);
  border: var(--border-glow);
  box-shadow: var(--shadow-glass);
  border-radius: 8px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 380px;
  animation: toastSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toastSlide {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-success {
  border-left: 4px solid var(--color-success);
}
.toast-success i {
  color: var(--color-success);
}

.toast-error {
  border-left: 4px solid var(--color-danger);
}
.toast-error i {
  color: var(--color-danger);
}

.toast-info {
  border-left: 4px solid var(--color-cyan);
}
.toast-info i {
  color: var(--color-cyan);
}

/* Responsive sidebar hides on small displays */
@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }
  
  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: var(--border-glow);
    padding: 15px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .nav-item {
    padding: 10px;
    font-size: 0.85rem;
    gap: 8px;
    justify-content: center;
  }
  
  .content-panel {
    padding: 20px;
  }

  /* Responsive Header for Mobile Devices */
  .app-header {
    padding: 10px 15px;
  }

  .header-logo-img {
    height: 28px;
  }

  .header-title-text {
    font-size: 1rem;
  }

  .header-controls {
    gap: 8px;
  }

  .user-profile {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
  }

  .user-profile .profile-name {
    display: none;
  }

  .btn-logout {
    padding: 0;
    width: 36px;
    height: 36px;
    justify-content: center;
    border-radius: 50%;
  }

  .btn-logout span {
    display: none;
  }
}

/* ============================================================
   7. SEARCH & SORT COMPONENTS
   ============================================================ */

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Wrapper */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  background: rgba(0, 0, 0, 0.2);
  border: var(--border-glow);
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 240px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border: var(--border-glow-focus);
  box-shadow: 0 0 10px rgba(0, 188, 255, 0.15);
  width: 280px;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Sortable Headers */
.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.sortable:hover {
  color: var(--color-cyan);
}

.sort-icon {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.sortable.active-sort .sort-icon {
  color: var(--color-cyan);
}

.sortable.asc .sort-icon .fa-sort {
  display: none;
}

.sortable.asc .sort-icon::after {
  content: '\f0de';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-cyan);
}

.sortable.desc .sort-icon .fa-sort {
  display: none;
}

.sortable.desc .sort-icon::after {
  content: '\f0dd';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-cyan);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 40px !important;
  color: var(--text-secondary);
}

.no-results i {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .search-wrapper {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .search-input:focus {
    width: 100%;
  }

  .btn-action {
    justify-content: center;
  }
}