/* ==========================================================================
   Industrial Grow Design - Control Panel Stylesheet
   ========================================================================== */

:root {
  --bg-admin: #0d0f12;
  --bg-sidebar: #13161c;
  --bg-card: #1a1e26;
  --bg-input: #12151b;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #2e7d32;
  --accent-light: #4caf50;
  --accent-glow: rgba(76, 175, 80, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(76, 175, 80, 0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body, body.admin-login-body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-admin);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

.admin-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-main {
  flex: 1;
  padding: 30px 0 60px;
}

.admin-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.admin-container.narrow {
  max-width: 860px;
}

/* ==========================================================================
   Admin Top Bar
   ========================================================================== */

.admin-topbar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.admin-logo-badge {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--accent);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.admin-logo-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-nav-action {
  background: var(--accent);
  color: #ffffff !important;
}

.btn-nav-action:hover {
  background: var(--accent-light) !important;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-live-link {
  font-size: 0.85rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.admin-logout-btn {
  font-size: 0.85rem;
  color: #ef5350;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 83, 80, 0.3);
  transition: all 0.2s ease;
}

.admin-logout-btn:hover {
  background: rgba(239, 83, 80, 0.15);
}

/* ==========================================================================
   Page Titles & Stats
   ========================================================================== */

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.page-title-row.sticky-bar {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 20px;
  margin: -14px -20px 24px -20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.page-title-row.sticky-bar .page-title {
  font-size: 1.6rem;
  line-height: 1.2;
}

.page-title-row.sticky-bar .page-desc {
  font-size: 0.82rem;
  margin-top: 2px;
}

.page-title {
  font-family: 'Raleway', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.page-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.stat-sub {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cards & Tables
   ========================================================================== */

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.3rem;
  font-family: 'Raleway', sans-serif;
  color: #ffffff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-thumb {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #000;
  display: block;
}

.table-thumb-placeholder {
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-title {
  font-weight: 600;
  color: #ffffff;
}

.table-slug {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.badge-accent {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* ==========================================================================
   Forms & Image Uploads
   ========================================================================== */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group.half {
  flex: 1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group .required {
  color: #ef5350;
}

.form-group input, .form-group textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-section-divider {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  margin-top: 10px;
}

.form-section-divider h3 {
  font-size: 1.1rem;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
}

.image-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.current-image-preview label {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.preview-box {
  width: 180px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: #000;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background: var(--bg-input);
  position: relative;
  transition: all 0.2s ease;
}

.file-drop-zone:hover {
  border-color: var(--accent-light);
  background: rgba(76, 175, 80, 0.05);
}

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.file-icon {
  font-size: 2rem;
}

.file-text {
  font-size: 0.95rem;
  color: var(--text-main);
}

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

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form-actions-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--border-focus);
  color: #ffffff;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: rgba(239, 83, 80, 0.15);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

.btn-danger:hover {
  background: #ef5350;
  color: #ffffff;
}

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

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

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Alerts & Feedback
   ========================================================================== */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.alert-error {
  background: rgba(239, 83, 80, 0.15);
  color: #e57373;
  border: 1px solid rgba(239, 83, 80, 0.3);
}

/* ==========================================================================
   Media Grid
   ========================================================================== */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.media-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.media-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #000;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-filename {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

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

/* ==========================================================================
   Login Page
   ========================================================================== */

.admin-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.login-badge {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  letter-spacing: 1.5px;
}

.login-title {
  font-size: 1.4rem;
  font-family: 'Raleway', sans-serif;
  color: #ffffff;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.login-back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.login-back-link:hover {
  color: #ffffff;
}

.admin-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-sidebar);
}

/* ==========================================================================
   Project Gallery Manager & Media Library Picker
   ========================================================================== */

.gallery-management-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.gallery-admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-admin-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.gallery-admin-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.gallery-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-admin-meta {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-admin-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-success {
  background: rgba(46, 125, 50, 0.25);
  color: #86efac;
  border: 1px solid #2e7d32;
}

.btn-success:hover {
  background: #2e7d32;
  color: #fff;
}

.gallery-admin-card.is-background-photo {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 0 2px #2e7d32, 0 8px 24px rgba(46, 125, 50, 0.35);
  background: rgba(46, 125, 50, 0.08);
}

.active-bg-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(46, 125, 50, 0.95);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 5;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.set-bg-btn {
  width: 100%;
  font-size: 0.72rem;
  padding: 4px 6px;
  font-weight: 600;
}

.hero-image-controls-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-drop-zone {
  width: 240px;
  min-height: 120px;
  height: 120px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-drop-zone .file-label {
  gap: 4px;
}

.hero-drop-zone .file-icon {
  font-size: 1.35rem;
}

.hero-drop-zone .file-text {
  font-size: 0.8rem;
  line-height: 1.25;
}

.hero-drop-zone .file-hint {
  font-size: 0.68rem;
}

.hero-pick-action-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 120px;
  padding-top: 2px;
}

/* Modal Backdrop & Dialog */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-dialog {
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.admin-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.admin-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0.7;
}

.admin-modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

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

.library-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.library-search-bar input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
}

.badge-selected {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.media-lib-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.media-lib-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.media-lib-card.selected {
  border-color: var(--accent-light);
  background: rgba(46, 125, 50, 0.2);
}

.media-lib-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.media-lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-lib-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
}

.media-lib-card.selected .media-lib-check {
  display: flex;
}

.media-lib-name {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ==========================================================================
   Media Manager: Tabs, Checkboxes, Bulk Toolbar & Trash Can
   ========================================================================== */

.media-tabs-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.media-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s ease;
}

.media-tab-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.media-tab-link.active {
  color: #ffffff;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.media-tab-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.media-tab-link.active .media-tab-pill {
  background: var(--accent);
  color: #ffffff;
}

.media-tab-pill.pill-trash {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
}

.media-tab-pill.pill-unused {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.media-tab-link.active .media-tab-pill.pill-unused {
  background: #f59e0b;
  color: #0f1115;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.bulk-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bulk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  user-select: none;
}

.media-card {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

.media-card.is-selected {
  border-color: var(--accent-light) !important;
  box-shadow: 0 0 0 2px var(--accent-light), 0 8px 20px rgba(0, 0, 0, 0.3);
  background: rgba(46, 125, 50, 0.12);
}

.media-card-checkbox-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  background: rgba(15, 17, 21, 0.88);
  backdrop-filter: blur(4px);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.media-card-checkbox-wrap:hover {
  background: rgba(15, 17, 21, 0.98);
  border-color: var(--accent-light);
  transform: scale(1.08);
}

#selectAllCheckbox,
.media-select-cb {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2e7d32;
  margin: 0;
}

.media-card.is-deleting {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.badge-danger {
  background: rgba(239, 83, 80, 0.2);
  color: #ef5350;
  border: 1px solid rgba(239, 83, 80, 0.3);
}
