/* ==========================================================================
   REDX GAMES - MEDIA VAULT DESIGN SYSTEM
   Dark Gaming Aesthetics, 3:4 Ratio Layouts, Custom Cropper Overrides
   ========================================================================== */

:root {
  --bg-dark: #0b0d12;
  --bg-surface: #12151e;
  --bg-card: #161922;
  --bg-card-hover: #1c202c;
  --bg-input: #1a1e2b;
  --border-color: #262b3d;
  --border-focus: #ff0033;
  
  --primary-red: #ff0033;
  --primary-red-hover: #e0002d;
  --primary-red-glow: rgba(255, 0, 51, 0.25);
  
  --text-main: #f1f3f9;
  --text-muted: #8c96a8;
  --text-dim: #5c6578;
  
  --accent-green: #00e676;
  --accent-yellow: #ffb300;
  --accent-blue: #29b6f6;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

::-webkit-scrollbar-thumb {
  background: #252a3a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-red);
}

/* Helpers */
.d-none {
  display: none !important;
}

/* Typography & Badges */
.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logo-red {
  color: var(--primary-red);
  text-shadow: 0 0 10px var(--primary-red-glow);
}

.logo-white {
  color: #ffffff;
}

.badge-admin {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  box-shadow: 0 0 15px var(--primary-red-glow);
}

.btn-secondary {
  background-color: #212636;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: #2b3247;
  border-color: #3f4761;
}

.btn-danger {
  background-color: rgba(255, 0, 51, 0.15);
  color: #ff4d6d;
  border: 1px solid rgba(255, 0, 51, 0.3);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-danger:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.btn-icon-ghost:hover {
  color: var(--text-main);
}


/* ================= AUTH / LOGIN PAGE ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top center, #1b0a14 0%, var(--bg-dark) 70%);
  padding: 20px;
}

.auth-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-red);
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.auth-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 12px;
  margin-bottom: 6px;

}

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

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

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

.form-group label .req {
  color: var(--primary-red);
}

.form-group input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px var(--primary-red-glow);
}

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

.password-input-wrapper input {
  padding-right: 44px;
}

.password-input-wrapper button {
  position: absolute;
  right: 6px;
}

.auth-error {
  background-color: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.3);
  color: #ff4d6d;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

.allowed-accounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
}

.acc-title {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.allowed-accounts code {
  background-color: #1a1e2b;
  border: 1px solid #282e42;
  color: #61afef;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
}


/* ================= MAIN DASHBOARD LAYOUT ================= */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.domain-sub {
  display: block;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 4px;
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 14px;
  margin-bottom: 8px;
  padding-left: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background-color: rgba(255, 0, 51, 0.1);
  border-left: 3px solid var(--primary-red);
}

.nav-item i {
  font-size: 1.1rem;
  color: var(--primary-red);
}

.nav-upload-btn {
  width: 100%;
  margin-top: 16px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background-color: #0f121a;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-red), #99001f);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-email {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.7rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-role i {
  font-size: 0.4rem;
}

.btn-logout {
  width: 100%;
  background-color: rgba(255, 0, 51, 0.08);
  border: 1px solid rgba(255, 0, 51, 0.2);
  color: var(--primary-red);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background-color: var(--primary-red);
  color: #ffffff;
}

/* Main Content */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 30px;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.topbar-title h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-title h1 i {
  color: var(--primary-red);
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
  width: 280px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 34px 10px 36px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-red);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card i {
  font-size: 1.8rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.03);
}

.icon-red { color: var(--primary-red); }
.icon-blue { color: var(--accent-blue); }
.icon-green { color: var(--accent-green); }
.icon-yellow { color: var(--accent-yellow); }

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

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

/* Gallery Controls */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.showing-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.custom-select {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

/* ================= MEDIA GRID & 3:4 CARDS ================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

/* 3:4 Aspect Ratio Card */
.media-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-red);
  box-shadow: 0 10px 25px rgba(255, 0, 51, 0.2);
}

/* Fixed 3:4 Image Wrapper */
.media-card-img-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  background-color: #0d0f16;
}

.media-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-card:hover .media-card-img-wrapper img {
  transform: scale(1.05);
}

/* Hover Quick Overlay Actions */
.card-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 18, 0.75);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.btn-card-action {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-card-action:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: scale(1.1);
}

/* Card Information Body */
.media-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.media-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.media-card-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.media-card-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.05);
  color: #a0aabf;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 4px;
}

.media-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-color);
  background-color: #12151f;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-copy-url-quick {
  background-color: transparent;
  border: none;
  color: var(--primary-red);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-copy-url-quick:hover {
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-surface);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.empty-icon {
  font-size: 4rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}


/* ================= MODALS SYSTEM ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-dialog {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-red);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modal-lg { max-width: 960px; }
.modal-md { max-width: 680px; }

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

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h3 i {
  color: var(--primary-red);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background-color: #0f121a;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}


/* ================= UPLOAD & CROPPER MODAL STYLES ================= */
.dropzone-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.dropzone-area.drag-over, .dropzone-area:hover {
  border-color: var(--primary-red);
  background-color: rgba(255, 0, 51, 0.05);
}

.drop-icon {
  font-size: 3.5rem;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.dropzone-content h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.dropzone-content p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.file-hint {
  display: block;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Cropper Grid Layout */
.cropper-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.cropper-workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cropper-img-container {
  width: 100%;
  height: 420px;
  background-color: #050608;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.cropper-img-container img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Toolbar */
.cropper-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.btn-tool {
  background-color: #202534;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-tool:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
}

/* Meta Panel */
.cropper-meta-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cropper-meta-panel h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.readonly-input {
  background-color: #12151f !important;
  color: var(--accent-yellow) !important;
  font-family: monospace;
  font-size: 0.85rem !important;
  cursor: not-allowed;
}

.preview-box-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-box-container label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.crop-preview-wrapper {
  width: 140px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border: 2px solid var(--primary-red);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 0 15px var(--primary-red-glow);
}

.img-preview {
  width: 100%;
  height: 100%;
  overflow: hidden;
}


/* ================= URL EMBED MODAL ================= */
.url-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.url-thumb-preview {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.ratio-3-4-box {
  width: 80px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--primary-red);
  background-color: #000;
  flex-shrink: 0;
}

.ratio-3-4-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.url-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.url-thumb-info strong {
  font-size: 1.1rem;
}

.url-thumb-info small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.url-codes-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.code-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-copy-flex {
  display: flex;
  gap: 8px;
}

.input-copy-flex input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: #61afef;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  outline: none;
}

.btn-copy {
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-copy:hover {
  background-color: var(--primary-red-hover);
}


/* ================= TOAST NOTIFICATIONS ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-red);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left-color: var(--accent-green); }
.toast.success i { color: var(--accent-green); }
.toast.error { border-left-color: var(--primary-red); }
.toast.error i { color: var(--primary-red); }

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

/* Cropper Override Styles */
.cropper-view-box,
.cropper-face {
  border-radius: 4px;
}
.cropper-line, .cropper-point {
  background-color: var(--primary-red);
}

/* Direct Image Viewer Styles */
.direct-viewer-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
}

.direct-viewer-header {
  padding: 16px 24px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.direct-viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.direct-img-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-red);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.direct-3-4-box {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 20px var(--primary-red-glow);
  background-color: #000;
}

.direct-3-4-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direct-img-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.direct-img-info h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
}

.direct-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.meta-item {
  background-color: #12151f;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

