/* ==========================================================================
   ArtFlow Frontend CSS Stylesheet - Premium Dark & Glassmorphism Theme
   ========================================================================== */

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

:root {
  /* Colors */
  --bg-space: #07070b;
  --bg-deep: #0c0c12;
  --bg-card: rgba(20, 20, 30, 0.6);
  --bg-card-hover: rgba(28, 28, 42, 0.8);
  --bg-overlay: rgba(5, 5, 10, 0.85);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-glow-hover: rgba(168, 85, 247, 0.5);

  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  
  --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
  --grad-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  
  --text-white: #fafafa;
  --text-light: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dark: #52525b;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #f43f5e;
  
  /* Font Families */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadow & Blur */
  --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px -3px rgba(99, 102, 241, 0.4);
  --blur-glass: blur(14px);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Cybernetic Ambient Glow Backgrounds */
body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(0,0,0,0) 70%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, rgba(0,0,0,0) 70%);
  z-index: -2;
  pointer-events: none;
}

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

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

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

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

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--accent-indigo);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-purple);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Layout SPA Wrapper */
#app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Toast Notification System */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background: rgba(15, 15, 25, 0.9);
  backdrop-filter: var(--blur-glass);
  border-left: 4px solid var(--accent-indigo);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text-white);
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: var(--color-warning); }

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-white);
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: fadeOutRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ==========================================================================
   Interactive UI Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 25px -1px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-white);
}

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

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #fda4af;
}

.btn-danger:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-admin {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}

.badge-vip {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.badge-user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.badge-upload-on {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.badge-upload-off {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fca5a5;
}

.badge-banned {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid var(--color-danger);
  color: #fda4af;
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Glassmorphism Inputs */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.input-glow-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.input-glow-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-fast);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 15px -3px rgba(99, 102, 241, 0.3);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control option {
  background-color: var(--bg-deep);
  color: var(--text-light);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: var(--blur-glass);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: rgba(20, 20, 30, 0.85);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium), 0 0 40px -10px rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
}

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

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Page Specific Layouts
   ========================================================================== */

/* 1. Login Page View */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 10;
  animation: cardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

.login-logo h1 {
  font-size: 2.25rem;
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  font-weight: 800;
}

.login-logo p {
  font-size: 0.9375rem;
}

.settings-toggle-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.settings-toggle-btn:hover {
  color: var(--text-white);
  transform: rotate(45deg);
}

.login-settings-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 0 solid var(--border-light);
  margin-bottom: 0;
}

.login-settings-panel.open {
  max-height: 150px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

/* 2. Application Core Layout */
.app-header {
  height: 72px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: var(--blur-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand-logo {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

.app-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(to right, #ffffff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-user-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}

.user-profile-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-indigo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.user-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
}

/* App Main Template */
.app-container {
  flex-grow: 1;
  display: flex;
}

.app-sidebar {
  width: 260px;
  border-right: 1px solid var(--border-light);
  background: rgba(9, 9, 11, 0.3);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  background: var(--grad-glow);
  border-left: 3px solid var(--accent-indigo);
  color: var(--text-white);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.app-content {
  flex-grow: 1;
  padding: 32px;
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Grid & Layout Utilities */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.view-title-area h2 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

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

/* Dashboard Home View */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--grad-primary);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  background: var(--bg-card-hover);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-indigo);
}

.stat-info h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* Home Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.8) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.welcome-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.welcome-text p {
  max-width: 600px;
}

/* Filter Toolbar */
.toolbar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.search-input-wrapper {
  position: relative;
  min-width: 240px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper .form-control {
  padding-left: 36px;
}

/* Grid Views */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Cards (Albums / Images) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-premium), 0 8px 30px -10px rgba(99, 102, 241, 0.25);
  background: var(--bg-card-hover);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-overlay-actions {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  transition: opacity 0.3s ease;
  z-index: 10;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.card-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.card-favorite-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-danger);
  transform: scale(1.1);
}

.card-favorite-btn.active {
  color: var(--color-danger);
  fill: var(--color-danger);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(0, 0, 0, 0.1);
}

/* Image Placeholder for Albums without files */
.album-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.card:hover .album-placeholder {
  color: var(--accent-indigo);
}

/* Lightbox UI */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.95);
  backdrop-filter: var(--blur-glass);
  z-index: 2000;
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.lightbox-title {
  font-size: 1.125rem;
  font-weight: 600;
}

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

.lightbox-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  cursor: pointer;
  color: var(--text-white);
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.lightbox-content-area {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.lightbox-nav-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--accent-indigo);
  transform: scale(1.08);
}

.lightbox-main-img-container {
  max-width: calc(100% - 150px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 80px rgba(99,102,241,0.1);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-main-img.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-sidebar {
  width: 320px;
  background: rgba(15, 15, 25, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
}

.lightbox-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 10px;
}

.lightbox-detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.lightbox-detail-val {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-white);
}

/* ==========================================================================
   Modern Upload Dropzone & Queue
   ========================================================================== */
.upload-dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.03);
  box-shadow: 0 0 30px -10px rgba(99, 102, 241, 0.2);
}

.upload-dropzone svg {
  width: 48px;
  height: 48px;
  color: var(--accent-indigo);
  transition: transform 0.3s ease;
}

.upload-dropzone:hover svg {
  transform: translateY(-4px);
}

.upload-dropzone-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
}

.upload-dropzone-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Upload Queue Section */
.upload-queue-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-queue-header {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.upload-queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.upload-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.upload-item-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.upload-item-status.uploading { color: var(--accent-indigo); }
.upload-item-status.success { color: var(--color-success); }
.upload-item-status.error { color: var(--color-danger); }

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: hidden;
}

.progress-thumb {
  height: 100%;
  background: var(--grad-primary);
  width: 0%;
  border-radius: 50px;
  transition: width 0.15s ease;
}

/* ==========================================================================
   Admin Section - User Management Table
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
  background: var(--bg-card);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 20px;
  font-size: 0.875rem;
}

.admin-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
}

.admin-table td {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

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

.admin-table tr {
  transition: background-color var(--transition-fast);
}

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

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
}

.user-cell-name {
  color: var(--text-white);
  font-weight: 600;
}

.user-cell-id {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.admin-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom CSS dropdown overlay inside table */
.dropdown-menu-custom {
  position: absolute;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
  display: none;
  flex-direction: column;
  z-index: 100;
  width: 140px;
}

.dropdown-menu-custom.active {
  display: flex;
}

/* ==========================================================================
   Loading, Skeletons, States
   ========================================================================== */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-indigo);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  margin: 40px auto;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--text-dark);
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.empty-state-desc {
  max-width: 360px;
  font-size: 0.875rem;
}

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeletonGlow 1.5s infinite;
}

@keyframes skeletonGlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Responsive Rules (Mobile and PC Adaptations)
   ========================================================================== */
@media (max-width: 1024px) {
  .app-sidebar {
    width: 80px;
    padding: 24px 10px;
  }
  
  .nav-item-text, .sidebar-footer-text, .user-profile-name {
    display: none;
  }
  
  .nav-item {
    justify-content: center;
    padding: 12px;
  }
  
  .user-profile-badge {
    padding: 6px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  #app-root {
    flex-direction: column;
  }
  
  .app-container {
    flex-direction: column;
  }
  
  .app-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    flex-direction: row;
    padding: 10px 16px;
    overflow-x: auto;
    position: sticky;
    top: 72px;
    z-index: 850;
    backdrop-filter: var(--blur-glass);
    background: rgba(9, 9, 11, 0.9);
  }
  
  .sidebar-nav {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
  
  .nav-item {
    padding: 10px;
    margin: 0;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .app-content {
    padding: 16px;
  }
  
  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .view-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .toolbar-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-input-wrapper {
    width: 100%;
  }
  
  .welcome-card {
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Lightbox Mobile Adjustments */
  .lightbox-content-area {
    flex-direction: column;
    padding: 16px;
    justify-content: center;
  }
  
  .lightbox-main-img-container {
    max-width: 100%;
    max-height: 60vh;
  }
  
  .lightbox-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: auto;
    max-height: 30vh;
  }
  
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    position: absolute;
  }
  
  .lightbox-nav-btn:first-of-type {
    left: 10px;
    top: 40%;
  }
  
  .lightbox-nav-btn:last-of-type {
    right: 10px;
    top: 40%;
  }
}
