/* 
   Google Gemini Backup & Staging - AI Engineer MLOps Console Theme
   Matte Graphite/Charcoal Palette, Sophisticated Blue/Indigo Accents, Clean Technical Typography
*/

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600;1,700&family=Titillium+Web:wght@300;400;600;700;800&display=swap');

:root {
  /* Matte Professional Color Palette */
  --bg-dark-obsidian: #0b0f19;
  --bg-dark-pure: #070a10;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(22, 30, 49, 0.95);
  
  /* Precision Borders */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(59, 130, 246, 0.4);
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accent Colors (Google/Vertex AI Tones) */
  --accent-blue: #3b82f6;
  --accent-blue-rgb: 59, 130, 246;
  --accent-indigo: #4f46e5;
  --accent-indigo-rgb: 79, 70, 229;
  --accent-purple: #818cf8;
  --accent-gold: #e5c158;
  
  /* Status Colors */
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --error: #ef4444;
  --error-rgb: 239, 68, 68;
  --warning: #f59e0b;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  
  /* Typography */
  --font-family: 'Titillium Web', sans-serif;
  --font-headers: 'Playfair Display', serif;
  --font-logo: 'Dancing Script', cursive;
  
  /* Clean Matte Shadows */
  --shadow-premium: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  --card-blur: 16px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark-obsidian);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Very faint dashboard layout grid lines */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-obsidian);
}

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

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

/* Hide glowing floating orbs for cleaner workspace */
.glow-orb {
  display: none;
}

/* Container & Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-logo);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-main svg {
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.2));
}

.logo-sub {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.2rem;
  opacity: 0.8;
}

/* Auth Status Bar */
.auth-status-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(var(--card-blur));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.status-connected {
  background-color: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-disconnected {
  background-color: var(--error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Cards (Matte/Structured Glassmorphism) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  transition: border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-glass-hover);
  background-color: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Removed glowing corner brackets for an AI Engineer look */
.card::before, .card::after {
  display: none;
}

/* API Setup Card */
.setup-card {
  border-left: 3px solid var(--accent-blue);
}

.card-title {
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.2px;
}

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

/* Setup Form */
.setup-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(13, 20, 35, 0.9);
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border-top: 3px solid var(--accent-indigo);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
  font-family: var(--font-headers);
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
}

.module-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-family);
}

.badge-accent {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

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

/* Page Selector Container */
.page-selector-container {
  margin-bottom: 1rem;
}

.page-select {
  cursor: pointer;
  appearance: none;
  width: 100%;
  background-color: rgba(10, 15, 26, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2394a3b8' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 20px !important;
  padding-right: 36px !important;
}

.page-select:focus {
  border-color: var(--accent-blue);
}

.page-select option {
  background-color: #111827;
  color: #ffffff;
  padding: 10px;
}

/* Action Preview Buttons Layout */
.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

/* Progress Section */
.progress-section {
  margin-bottom: 1.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.2s ease forwards;
}

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

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.progress-msg {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.progress-num {
  font-weight: 700;
  color: var(--accent-blue);
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Deploy Links */
.deploy-links {
  margin-bottom: 1.4rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.link-label {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.link-url {
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.link-url:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Buttons (Futuristic cyber styling) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--grad-primary);
  border: none;
  color: #ffffff;
  padding: 0.85rem 1.8rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.85rem 1.8rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 3px;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Sidebar Column */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* System Services Card */
.services-card {
  border-top: 3px solid var(--accent-blue);
}

.services-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.service-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-name {
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.running {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.stopped {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.not_installed {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.services-auto-note {
  font-size: 0.78rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Warnings and Notification Callout */
.warning-box {
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 1rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.03);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  position: relative;
}

.warning-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--error);
}

.warning-icon {
  width: 24px;
  height: 24px;
  background: var(--error);
  color: #ffffff;
  font-weight: 800;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.warning-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.warning-content p {
  font-size: 0.85rem;
  color: #fda4af;
  line-height: 1.4;
}

.warning-content strong {
  color: #ffffff;
}

/* Guide & Info Card styling */
.guide-card .card-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.guide-link {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.15s ease;
}

.guide-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #ffffff;
}

.info-list {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-list li {
  line-height: 1.5;
}

.info-list a {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.15s ease;
}

.info-list a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.text-accent {
  color: var(--accent-blue);
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 2rem 1.2rem;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    text-align: left;
  }
  
  .auth-status-bar {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Media Gallery & Lightbox Styles - Premium MLOps Edition */
.media-card {
  transition: all 0.3s ease;
  background: rgba(17, 24, 39, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(12px);
}

.media-grid {
  margin-top: 1.5rem;
}

.media-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(7, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  aspect-ratio: 16 / 10; /* Wider aspect ratio for better previews of landscape photos and videos! */
  display: flex;
  flex-direction: column;
}

.media-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.6), 
    0 0 15px rgba(59, 130, 246, 0.15);
}

.media-thumbnail-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  background: #030712;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-item:hover .media-thumbnail {
  transform: scale(1.08);
}

/* Premium Glassmorphic Play Button Overlay */
.media-icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.media-item:hover .media-icon-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-blue);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.6), 
    0 4px 15px rgba(0, 0, 0, 0.5);
}

.media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.5px;
}

.media-badge.badge-image {
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.media-badge.badge-code {
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.media-badge.badge-archive {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.media-badge.badge-pdf {
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.media-badge.badge-torrent {
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.media-meta-bar {
  padding: 0.6rem 0.8rem;
  background: rgba(11, 15, 25, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.media-name {
  color: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.media-size {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Lightbox Modal - Advanced Cinematic Theater */
.lightbox-modal {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 7, 18, 0.96) !important;
  z-index: 9999;
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content {
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(17, 24, 39, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

#lightbox-media-container {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

#lightbox-media-container img, 
#lightbox-media-container video {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  border-radius: 4px;
}

/* Custom Controls for Video to make it match MLOps style */
#lightbox-media-container video::-webkit-media-controls-panel {
  background-image: linear-gradient(to top, rgba(7, 10, 18, 0.95), rgba(7, 10, 18, 0)) !important;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  width: 44px !important;
  height: 44px !important;
}

.lightbox-close:hover {
  background: var(--error) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: rotate(90deg) !important;
}

.lightbox-info {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  width: 100%;
}

/* List View Table & View Toggle Styles */
.media-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1.5rem;
  background: rgba(11, 15, 25, 0.65);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.media-list-table th, 
.media-list-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  transition: all 0.2s ease;
}

.media-list-table th {
  background: rgba(7, 10, 17, 0.85);
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-size: 0.76rem;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.media-list-table th:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.03);
  border-bottom-color: #00f0ff;
}

.media-list-table th .sort-indicator {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, transform 0.2s;
}

.media-list-table th:hover .sort-indicator {
  color: #00f0ff;
}

.media-list-table tr {
  position: relative;
  background: transparent;
}

/* Zebra Striping */
.media-list-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.media-list-table tr:hover {
  background: rgba(59, 130, 246, 0.04) !important;
}

.media-list-table tr:hover td {
  color: #ffffff;
  border-bottom-color: rgba(0, 240, 255, 0.15);
}

/* Glowing Left-Edge Indicator on Hover */
.media-list-table tbody tr td:first-child {
  position: relative;
}

.media-list-table tbody tr td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: all 0.2s ease;
}

.media-list-table tbody tr:hover td:first-child::before {
  background: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.media-list-table tr:last-child td {
  border-bottom: none;
}

.media-list-table td .media-item-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  overflow: hidden;
  max-width: 380px;
}

.media-list-table td .media-thumbnail-mini {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.media-list-table tr:hover .media-thumbnail-mini {
  transform: scale(1.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.media-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Titillium Web', sans-serif;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.media-list-table tr:hover .media-name-text {
  color: #00f0ff;
}

/* Modern File Type Pill Badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.5px;
  font-family: 'Titillium Web', sans-serif;
  text-transform: uppercase;
}

.type-badge.badge-image {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.type-badge.badge-video {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.type-badge.badge-code {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.type-badge.badge-archive {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.type-badge.badge-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.type-badge.badge-torrent {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.type-badge.badge-other {
  background: rgba(156, 163, 175, 0.12);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.25);
}

.media-size, .media-date {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Circle Action Buttons in List View */
.list-actions-wrapper {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.list-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-action-btn svg {
  transition: transform 0.2s ease;
}

.list-action-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.list-action-btn:hover svg {
  transform: scale(1.1);
}

.list-action-btn.btn-download:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.list-action-btn.btn-rename:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.list-action-btn.btn-edit:hover {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.35);
  color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

.list-action-btn.btn-share:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.list-action-btn.btn-delete:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.btn-view-toggle.active {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.btn-view-toggle:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

