/* Style definitions for Google Drive Upload Web App */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - Premium White / Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  --glass-glow: rgba(99, 102, 241, 0.12);

  --accent-primary: #4f46e5; /* Indigo */
  --accent-primary-glow: rgba(79, 70, 229, 0.25);
  --accent-secondary: #7c3aed; /* Purple */
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inv: #ffffff;

  /* Status Colors */
  --color-success: #059669; /* Emerald */
  --color-success-bg: #ecfdf5;
  --color-warning: #d97706; /* Amber */
  --color-warning-bg: #fffbeb;
  --color-error: #dc2626; /* Red */
  --color-error-bg: #fef2f2;
  --color-pending: #64748b; /* Gray */
  --color-pending-bg: #f1f5f9;

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background decorative orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
}

body::before {
  background: var(--accent-primary);
  top: 10%;
  left: 10%;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

body::after {
  background: var(--accent-secondary);
  bottom: 10%;
  right: 10%;
  animation: floatOrb 25s infinite alternate-reverse ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.2); }
}

/* App Container Layout */
.app-container {
  width: 100%;
  max-width: 720px;
  padding: 24px;
  margin: 20px auto;
  z-index: 1;
}

/* Typography styles */
h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.logo-container svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--accent-primary-glow));
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* Glass Card styling */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 35px -5px rgba(99, 102, 241, 0.12);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.3;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

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

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.required-badge {
  color: var(--color-error);
  margin-left: 4px;
}

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

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 20px;
  height: 20px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 14px 16px 14px 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

input[type="password"] {
  padding-right: 48px;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #94a3b8;
  opacity: 0.8;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
  background: #ffffff;
}

/* Drag & Drop Zone */
.dropzone-container {
  border: 2px dashed #cbd5e1;
  border-radius: var(--border-radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dropzone-container:hover, .dropzone-container.dragover {
  border-color: var(--accent-primary);
  background: #eef2ff;
  transform: translateY(-2px);
}

.dropzone-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.dropzone-container:hover .dropzone-icon, .dropzone-container.dragover .dropzone-icon {
  color: var(--accent-primary);
  transform: translateY(-4px) scale(1.1);
}

.dropzone-icon svg {
  width: 48px;
  height: 48px;
}

.dropzone-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

.file-input {
  display: none;
}

/* Queue Section */
.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.queue-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-count-badge {
  background: var(--accent-gradient);
  color: var(--text-main);
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.file-list {
  max-height: 260px;
  overflow-y: auto;
  margin-right: -8px;
  padding-right: 8px;
}

/* Custom Scrollbar for File List */
.file-list::-webkit-scrollbar {
  width: 6px;
}

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

.file-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  animation: slideIn var(--transition-fast) forwards;
}

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

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}

.file-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.file-details {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.file-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.file-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge.pending {
  background: var(--color-pending-bg);
  color: var(--text-muted);
}

.status-badge.uploading {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-secondary);
  animation: pulseBg 1.5s infinite ease-in-out;
}

.status-badge.success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.status-badge.error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

@keyframes pulseBg {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.5; }
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.btn-remove:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.btn-remove svg {
  width: 16px;
  height: 16px;
}

/* Empty Queue Placeholder */
.empty-queue {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-queue svg {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

/* Dashboard Progress Cards */
.progress-card {
  display: none; /* Shown dynamically via JS */
  margin-bottom: 24px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-percent {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.progress-bar-outer {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.progress-bar-inner {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-files {
  font-weight: 500;
}

/* Buttons and Interactions */
.action-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-normal);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: var(--color-pending-bg);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  flex: 0 0 auto;
  width: 60px;
  padding: 14px;
}

.btn-secondary:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-secondary svg {
  margin: 0;
}

/* Alerts and feedback notifications */
.alert {
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none; /* Managed by JS */
  align-items: flex-start;
  gap: 10px;
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

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

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Mobile Responsiveness Rules */
@media (max-width: 576px) {
  .app-container {
    padding: 16px;
    margin: 0;
  }
  
  .card {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: var(--border-radius-md);
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header {
    margin-bottom: 24px;
  }

  .dropzone-container {
    padding: 24px 16px;
  }

  .file-item {
    padding: 10px 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Upload card split actions */
.upload-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}
.upload-opt-btn {
  flex: 1 !important;
  width: auto !important;
  max-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Camera Modal Styles */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.camera-container {
  width: 100%;
  max-width: 640px;
  height: 100%;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 16px;
  color: var(--text-main);
}

@media (max-width: 640px) {
  .camera-container {
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 12px;
  }
}

.camera-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.camera-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

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

.camera-view-container {
  flex: 1;
  position: relative;
  background: #000;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cameraVideo, .capture-preview-container video, .capture-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recording-timer {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: monospace;
  font-size: 14px;
  z-index: 20;
}

.timer-dot {
  width: 10px;
  height: 10px;
  background: var(--color-error);
  border-radius: 50%;
  animation: blinkTimer 1s infinite alternate;
}

@keyframes blinkTimer {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

.camera-controls {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.camera-modes {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  padding: 4px;
  gap: 4px;
}

.btn-mode {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 16px;
  font-weight: 500;
  border-radius: calc(var(--border-radius-sm) - 2px);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-mode.active {
  background: var(--accent-gradient);
  color: #ffffff;
}

.camera-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 320px;
}

.btn-circle {
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-main);
}

.btn-secondary-action {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
}

.btn-secondary-action:hover {
  background: #e2e8f0;
}

.btn-capture {
  width: 64px;
  height: 64px;
  background: #fff;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 16px var(--accent-primary-glow);
}

.btn-capture:hover {
  transform: scale(1.05);
}

.btn-capture.recording {
  background: var(--color-error);
  border-color: #ff8080;
  animation: pulseRecording 1.5s infinite;
  border-radius: 8px;
}

@keyframes pulseRecording {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.decision-buttons {
  display: flex;
  gap: 24px;
}

.btn-discard {
  width: 56px;
  height: 56px;
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.btn-discard:hover {
  background: var(--color-error);
  color: var(--text-inv);
}

.btn-accept {
  width: 56px;
  height: 56px;
  background: var(--color-success-bg);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.btn-accept:hover {
  background: var(--color-success);
  color: var(--text-inv);
}

/* Save / Download Button in Queue List */
.btn-download {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-download svg {
  width: 16px;
  height: 16px;
}

.btn-download:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

/* Zoom Slider Styles */
.camera-zoom-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 15, 0.75);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.btn-zoom {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-zoom:hover {
  background: var(--accent-gradient);
  color: var(--text-inv);
  transform: scale(1.1);
}

.camera-zoom-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.camera-zoom-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-primary-glow);
  transition: transform var(--transition-fast);
}

.camera-zoom-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.zoom-text {
  color: #fff;
  font-size: 12px;
  font-family: monospace;
  min-width: 32px;
  text-align: center;
}

/* Enable CSS digital zoom smooth scaling on video preview */
#cameraVideo {
  transition: transform 0.1s ease-out;
}

/* Aspect Ratio Selector Styles */
.aspect-ratio-selector {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--border-radius-sm);
  padding: 2px;
  gap: 2px;
  border: 1px solid #e2e8f0;
}

.btn-aspect {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: calc(var(--border-radius-sm) - 4px);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-aspect.active {
  background: var(--accent-gradient);
  color: var(--text-inv);
}

/* Ensure smooth aspect ratio height adjustments */
.camera-view-container {
  transition: aspect-ratio 0.3s ease;
  aspect-ratio: 16 / 9;
}

/* History Chips Styles */
.history-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.history-chip-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  align-self: center;
  font-weight: 500;
}

.chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip:hover {
  background: #eef2ff;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn var(--transition-fast) forwards;
}

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

.lightbox-content {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.lightbox-title-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.lightbox-title-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.btn-lightbox-action {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lightbox-action:hover {
  background: #eef2ff;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.lightbox-body {
  flex: 1;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

#lightboxImage, #lightboxVideo {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #94a3b8;
  text-align: center;
}

/* Cursor pointer on file queue items for lightbox trigger */
.file-item {
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.file-item:hover {
  border-color: var(--accent-primary);
}

/* Security Authentication Lock Screen Styles */
.login-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.lock-icon-badge {
  width: 56px;
  height: 56px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.login-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-card-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.btn-toggle-password:hover {
  color: var(--accent-primary);
}

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

/* Authenticated User Status Badge in Header */
.auth-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-main);
  margin-top: 12px;
}

.auth-user-badge strong {
  color: var(--accent-primary);
  font-weight: 600;
}

.btn-logout {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}
