/* =================================================
   ADMIN PANEL STYLES
================================================= */

:root {
  --admin-sidebar-width: 260px;
  --admin-header-height: 70px;
  --admin-primary: #15b8e0;
  --admin-secondary: #0ea5e9;
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-text: #111111;
  --admin-text-gray: #6b7280;
  --admin-border: #e5e7eb;
  
  /* Match nav.php variables - Enhanced fonts */
  --font-main: "Poppins", "DM Sans", "Montserrat", sans-serif;
  --font-en-body: "DM Sans", "Montserrat", sans-serif;
  --font-bn-title: "Anek Bangla", "Galada", "Hind Siliguri", sans-serif;
  --font-bn: "Noto Sans Bengali", "Hind Siliguri", "Tiro Bangla", sans-serif;
  --font-logo: "Kaushan Script", "Dancing Script", cursive;
  --color-blue: #15b8e0;
  --transition-normal: 0.3s ease;
}

body.admin-body {
  margin: 0;
  padding: 0;
  background: var(--admin-bg);
  font-family: var(--font-en-body);
  font-weight: 400;
  line-height: 1.6;
}

/* Enhanced typography for admin panel */
body.admin-body[data-lang="bn"] {
  font-family: var(--font-bn);
}

body.admin-body[data-lang="bn"] h1,
body.admin-body[data-lang="bn"] h2,
body.admin-body[data-lang="bn"] h3 {
  font-family: var(--font-bn-title);
}

/* =================================================
   ADMIN HEADER
================================================= */
.admin-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--admin-header-height);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.admin-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 100%;
}

.admin-logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--admin-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-control-item {
  position: relative;
}

.admin-control-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.admin-control-btn:hover {
  background: rgba(21, 184, 224, 0.1);
  border-color: var(--admin-primary);
  color: var(--admin-primary);
}

.admin-control-btn span {
  font-size: 1.1rem;
}

/* Accessibility Dropdown */
.admin-accessibility-dropdown {
  position: relative;
}

.admin-accessibility-btn {
  background: transparent;
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-accessibility-btn:hover {
  background: rgba(21, 184, 224, 0.1);
  border-color: var(--admin-primary);
}

.admin-accessibility-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--admin-card-bg);
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.admin-accessibility-dropdown.active .admin-accessibility-menu {
  display: block;
}

.admin-accessibility-menu .acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-accessibility-menu .acc-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.switch-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--admin-primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-logout-btn {
  padding: 0.5rem 1.5rem;
  background: var(--admin-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.admin-logout-btn:hover {
  background: var(--admin-secondary);
}

/* =================================================
   ADMIN CONTAINER
================================================= */
.admin-container {
  display: flex;
  margin-top: var(--admin-header-height);
  min-height: calc(100vh - var(--admin-header-height));
}

/* =================================================
   ADMIN SIDEBAR
================================================= */
.admin-sidebar {
  width: var(--admin-sidebar-width);
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  left: 0;
  top: var(--admin-header-height);
  height: calc(100vh - var(--admin-header-height));
  overflow-y: auto;
}

.admin-nav ul {
  list-style: none;
  padding: 1.5rem 0;
  margin: 0;
}

.admin-nav li {
  margin: 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--admin-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(21, 184, 224, 0.1);
  border-left-color: var(--admin-primary);
  color: var(--admin-primary);
}

.admin-nav-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

/* =================================================
   ADMIN MAIN CONTENT
================================================= */
.admin-main {
  flex: 1;
  margin-left: var(--admin-sidebar-width);
  padding: 2rem;
  background: var(--admin-bg);
}

.admin-page-header {
  margin-bottom: 2rem;
}

.admin-page-header h1 {
  font-family: var(--font-logo);
  font-size: 2rem;
  color: var(--admin-primary);
  margin-bottom: 0.5rem;
}

.admin-page-header p {
  color: var(--admin-text-gray);
  font-size: 1rem;
}

/* =================================================
   ADMIN CARDS
================================================= */
.admin-card {
  background: var(--admin-card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--admin-border);
}

.admin-card-header h2 {
  font-size: 1.5rem;
  color: var(--admin-primary);
  margin: 0;
}

.admin-btn {
  padding: 0.75rem 1.5rem;
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.admin-btn:hover {
  background: var(--admin-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 184, 224, 0.3);
}

.admin-btn-secondary {
  background: transparent;
  color: var(--admin-primary);
  border: 2px solid var(--admin-primary);
}

.admin-btn-secondary:hover {
  background: var(--admin-primary);
  color: #fff;
}

/* =================================================
   ADMIN STATS GRID
================================================= */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(21, 184, 224, 0.2);
}

.admin-stat-card h3 {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.admin-stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.admin-stat-card .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =================================================
   ADMIN TABLES
================================================= */
.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--admin-card-bg);
}

.admin-table thead {
  background: rgba(21, 184, 224, 0.1);
}

.admin-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--admin-text);
  border-bottom: 2px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--admin-border);
  color: var(--admin-text);
}

.admin-table tr:hover {
  background: rgba(21, 184, 224, 0.05);
}

.admin-table .action-buttons {
  display: flex;
  gap: 0.5rem;
}

.admin-table .btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* =================================================
   ADMIN FORMS
================================================= */
.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--admin-text);
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background-color: #fff;
  color: var(--admin-text);
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(21, 184, 224, 0.1);
}

/* Styled Dropdown */
.admin-form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.admin-form-group select:hover {
  border-color: var(--admin-primary);
}

.admin-form-group select option {
  padding: 0.5rem;
  background-color: #fff;
  color: var(--admin-text);
}

/* Search Box Styles */
.admin-search-box {
  margin-bottom: 1.5rem;
  position: relative;
}

.admin-search-box input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.admin-search-box input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(21, 184, 224, 0.1);
}

.admin-search-box .search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1rem;
  opacity: 0.6;
  color: #6b7280;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-search-box .search-icon::before {
  content: "🔍";
  font-size: 1rem;
}

.admin-search-box input::placeholder {
  color: #9ca3af;
}

.admin-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =================================================
   ADMIN MODAL
================================================= */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--admin-border);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--admin-text-gray);
}

/* =================================================
   RESPONSIVE (Updated - matches nav.php style)
================================================= */

body[data-lang="bn"] .admin-page-header h1,
body[data-lang="bn"] .admin-card-header h2 {
  font-family: var(--font-bn-title);
}

body[data-lang="bn"] .admin-nav-link,
body[data-lang="bn"] .admin-page-header p,
body[data-lang="bn"] .admin-table,
body[data-lang="bn"] .admin-form-group label {
  font-family: var(--font-bn);
}

/* Dark Theme Styles */
body[data-theme="dark"] {
  --admin-bg: #111827;
  --admin-card-bg: #1f2937;
  --admin-text: #f9fafb;
  --admin-text-gray: #d1d5db;
  --admin-border: #374151;
}

body[data-theme="dark"] .admin-header {
  background: #1f2937;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .admin-sidebar {
  background: #1f2937;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .admin-card {
  background: #1f2937;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] .admin-table thead {
  background: rgba(21, 184, 224, 0.2);
}

body[data-theme="dark"] .admin-table tr:hover {
  background: rgba(21, 184, 224, 0.1);
}

body[data-theme="dark"] .admin-modal-content {
  background: #1f2937;
  color: #f9fafb;
}

body[data-theme="dark"] .admin-control-btn {
  border-color: #374151;
  color: #f9fafb;
}

body[data-theme="dark"] .admin-control-btn:hover {
  background: rgba(21, 184, 224, 0.2);
  border-color: var(--admin-primary);
}

/* =================================================
   HAMBURGER MENU
================================================= */
.admin-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.admin-hamburger span {
  width: 26px;
  height: 2px;
  background: var(--admin-text);
  transition: all var(--transition-normal);
}

.admin-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.admin-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.admin-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =================================================
   RESPONSIVE STYLES
================================================= */
@media (max-width: 991px) {
  /* Prevent horizontal scroll */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Header adjustments */
  .admin-header-content {
    padding: 0 1rem;
  }
  
  .admin-user-menu span {
    display: none;
  }
  
  /* Show hamburger */
  .admin-hamburger {
    display: flex;
  }
  
  /* Sidebar - hidden by default on mobile */
  .admin-sidebar {
    position: fixed;
    left: -100%;
    top: var(--admin-header-height);
    width: 70vw;
    max-width: 300px;
    height: calc(100vh - var(--admin-header-height));
    transition: left var(--transition-normal);
    z-index: 999;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
  }
  
  .admin-sidebar.active {
    left: 0;
  }
  
  /* Overlay when sidebar is open */
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--admin-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
  
  .admin-sidebar-overlay.active {
    display: block;
  }
  
  /* Main content - full width on mobile */
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
  
  /* Stats grid - 2 columns on tablet, 1 on mobile */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Cards - less padding on mobile */
  .admin-card {
    padding: 1.5rem;
  }
  
  /* Table - horizontal scroll on mobile */
  .admin-table-wrapper {
    overflow-x: auto;
  }
  
  /* Form groups */
  .admin-form-group {
    margin-bottom: 1rem;
  }
  
  /* Buttons - full width on mobile */
  .admin-btn {
    width: 100%;
    text-align: center;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .action-buttons .admin-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-page-header {
    margin-bottom: 1rem;
  }
  
  .admin-page-header h1 {
    font-size: 1.5rem;
  }
  
  .admin-header-content {
    padding: 0 0.75rem;
  }
  
  .admin-logo span {
    font-size: 1rem;
  }
  
  .admin-logo img {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    width: 85vw;
  }
  
  .admin-card {
    padding: 1rem;
  }
  
  .admin-main {
    padding: 0.75rem;
  }
}
/* Responsive Tables */
@media screen and (max-width: 768px) {
  .responsive-table,
  .admin-table {
    display: block;
    width: 100%;
  }
  
  .responsive-table thead,
  .admin-table thead {
    display: none;
  }
  
  .responsive-table tbody,
  .admin-table tbody,
  .responsive-table tr,
  .admin-table tr {
    display: block;
    width: 100%;
  }
  
  .responsive-table td,
  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    padding-left: 50%;
  }
  
  .responsive-table td:before,
  .admin-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
  }
  
  .responsive-table td:last-child,
  .admin-table td:last-child {
    border-bottom: 2px solid #d1d5db;
  }
}

/* Add data-label attributes via JavaScript or PHP */

/* =================================================
   STYLED FILE UPLOAD BUTTONS
================================================= */
/* Hide file inputs only when they're inside file-upload-wrapper */
.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

/* Show file inputs that are NOT in a wrapper (fallback) */
.admin-form-group input[type="file"]:not(.file-upload-wrapper input) {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--admin-border);
  border-radius: 8px;
  background: white;
}

.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-secondary));
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  border: 2px solid transparent;
  text-align: center;
}

.file-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 184, 224, 0.3);
  background: linear-gradient(135deg, var(--admin-secondary), var(--admin-primary));
}

.file-upload-label:active {
  transform: translateY(0);
}

.file-upload-label svg,
.file-upload-label::before {
  content: "📁";
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.file-upload-label.has-file {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.file-upload-label.has-file::before {
  content: "✓";
  color: white;
}

.file-name-display {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--admin-text);
  border-left: 3px solid var(--admin-primary);
  display: none;
}

.file-name-display.show {
  display: block;
}

.file-name-display span {
  font-weight: 600;
  color: var(--admin-primary);
}

/* Alternative style for file inputs */
.custom-file-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.custom-file-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: white;
  border: 2px dashed var(--admin-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--admin-text);
}

.custom-file-input-label:hover {
  border-color: var(--admin-primary);
  background: rgba(21, 184, 224, 0.05);
}

.custom-file-input-label .file-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--admin-text-gray);
}

.custom-file-input-label .file-button {
  padding: 0.5rem 1rem;
  background: var(--admin-primary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.custom-file-input-label:hover .file-button {
  background: var(--admin-secondary);
}

.custom-file-input input[type="file"]:focus + .custom-file-input-label {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(21, 184, 224, 0.1);
}

/* =================================================
   STYLED IMAGE UPLOAD FIELDS (Multiple Fields)
================================================= */
.image-upload-field-wrapper {
  position: relative;
  width: 100%;
}

.image-upload-field-wrapper .file-upload-wrapper {
  position: relative;
  width: 100%;
}

.image-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: var(--admin-text);
  border: 2px dashed var(--admin-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  position: relative;
}

.image-upload-label:hover {
  border-color: var(--admin-primary);
  background: linear-gradient(135deg, rgba(21, 184, 224, 0.05), rgba(14, 165, 233, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21, 184, 224, 0.15);
}

.image-upload-label.has-file {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #22c55e;
  color: #059669;
}

.image-upload-label.has-file::before {
  content: "✓";
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: #22c55e;
}

.image-upload-label::after {
  content: "📷";
  font-size: 1.3rem;
  margin-left: 0.5rem;
  opacity: 0.7;
}

.image-upload-label.has-file::after {
  content: "";
}

.remove-image-field-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.remove-image-field-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.remove-image-field-btn span {
  line-height: 1;
  margin-top: -2px;
}

.image-preview-single {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#imageUploadFields {
  margin-bottom: 1rem;
}

#addMoreImageBtn {
  border: 2px dashed var(--admin-border);
  background: transparent;
  color: var(--admin-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

#addMoreImageBtn:hover {
  border-color: var(--admin-primary);
  background: rgba(21, 184, 224, 0.05);
  transform: translateY(-2px);
}

#imagePreviewContainer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed var(--admin-border);
}

#imagePreviewContainer:empty {
  display: none;
}

#imageCount {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

#imageCount:empty {
  display: none;
}