:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
  --navbar-height: 70px;
  --primary-color: #18327e;
  --sidebar-bg: #ffffff;
  --main-bg: #f8f9fa;
  --primary-btn-color: #e1a900;
  --dark: #000000;
  --wp-border: #dcdcde;
}

.lucide {
  width: 18px;
}

/* Utillities */
.default-bg {
  background-color: var(--primary-color) !important;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--main-bg);
  overflow-x: hidden;
}

/* --- Navbar Styling --- */
.navbar-admin {
  height: var(--navbar-height);
  background-color: #250344;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1030;
}

.navbar-admin a.span {
  color: var(--sidebar-bg);
}

.search-input {
  background-color: #f3f4f6;
  border: none;
  padding-left: 2.5rem;
  border-radius: 8px;
  width: 300px;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

/* --- Sidebar Styling --- */
.sidebar {
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  background-color: var(--sidebar-bg);
  border-right: 1px solid #e5e7eb;
  z-index: 1020;
  overflow-y: auto;
}

/* Collapsed Sidebar State (Desktop) */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-heading,
.sidebar.collapsed .nav-link-custom span,
.sidebar.collapsed .nav-link-custom .bi-chevron-down {
  display: none;
}

.sidebar.collapsed .nav-link-custom {
  justify-content: center;
  padding: 0.75rem 0;
  margin: 0.2rem 0.5rem;
}

.sidebar.collapsed .nav-link-custom i {
  margin-right: 0;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 8px;
  margin: 0.2rem 1rem;
  white-space: nowrap;
  gap: 10px;
}

.nav-link-custom i {
  font-size: 1.25rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  background-color: #eff6ff;
  color: var(--primary-color);
}

.nav-link-custom.active i {
  color: var(--primary-color);
}

.sidebar-heading {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 700;
}

/* Submenu styling */
.submenu .nav-link-custom {
  padding-left: 3.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

/* --- Content Area --- */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

.dashboard-block {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  border: 1px solid #edf2f7;
}

/* Grid for 5 cards in a row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .main-content {
    margin-left: 0;
  }
  .sidebar {
    display: none;
  }
  .top-navbar {
    margin-left: 0;
  }
}

/* Ad Card styling using your repeater-card logic */
.repeater-card {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;

  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  /* padding: 12px; */
  height: 100%;
}
.repeater-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cta-btn-link {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-btn-color);
  color: var(--dark);
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Dashboard Card Styling */
.ad-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

/* Media Preview Enhancement */
.media-container {
  position: relative;
  background-color: #111827;
  border-bottom: 1px solid #f3f4f6;
  overflow: hidden;
}

.media-preview-wrapper {
  transition: transform 0.5s ease;
}

.ad-card:hover .media-preview-wrapper {
  transform: scale(1.05);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.5rem;
  z-index: 10;
}

.ad-card:hover .media-overlay {
  opacity: 1;
}

/* Text & Labels */
.campaign-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.ad-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

body.modal-is-locked {
  overflow: hidden;
}

.gylf-modal-title {
  font-size: 18px;
  font-weight: 600;
}

.gylf-modal {
  position: fixed;
  display: grid;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  font-family: "inter", sans-serif;
  inset: 0px;
  place-items: center;
  transition:
    opacity var(--transition-speed) var(--ease-out-expo),
    visibility var(--transition-speed) var(--ease-out-expo);
  padding: 1.5rem;
}

.gylf-modal-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 25px 50px -12px;
  transform: scale(0.95) translateY(20px);
  background: #fff;
  border-radius: 3px;
  transition: transform var(--transition-speed) var(--ease-out-expo);
  overflow: hidden;
}

.gylf-modal-overlay {
  position: absolute;
  backdrop-filter: blur(8px);
  inset: 0px;
  background-color: rgba(0, 0, 0, 0.15);
}

.gylf-modal.is-active .gylf-modal-container {
  transform: scale(1) translateY(0px);
}

.gylf-modal.is-active {
  opacity: 1;
  visibility: visible;
}

/* Action Buttons */
.btn-action-circle {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  background: white;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.btn-action-circle:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Create Button - High Impact */
.btn-create-ad {
  background-color: var(--accent-blue);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  transition: all 0.2s;
  color: white;
}

.btn-create-ad:hover {
  background-color: #2563eb;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
  color: white;
}

.object-fit-cover {
  object-fit: cover;
}

/* Swiper Header Navigation */
.newsSwiper {
  overflow: hidden;
}

.newsSwiper .swiper-slide {
  flex-shrink: 0;
  width: calc((100% - 30px) / 2) !important;
}
.swiper-wrapper {
  display: flex;
}
.swiper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 20px;
}
.nav-controls {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.btn-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  color: #64748b;
}
.btn-nav:first-child {
  border-right: 1px solid #e2e8f0;
}
.btn-nav:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
}

/* Hide Swiper Defaults */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination {
  display: none !important;
}

/* Media Library Specifics */
.media-container-scroll {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;

  height: 55vh;
  /* overflow-y: auto; */
}

.media-item {
  aspect-ratio: 1/1;
  background: #eee;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.1s ease;
}

.media-item.active {
  border-color: var(--primary-color);
  box-shadow: inset 0 0 0 1px #fff;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-item .video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #cbd5e1;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--primary-color);
  background: #f1f5f9;
}

/* Details Sidebar */
.details-sidebar {
  width: 350px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  overflow-y: auto;
  padding: 20px;
  display: none;
  height: 100vh;
}

.details-sidebar.active {
  display: block;
}

.primary-btn-color {
  background-color: var(--primary-btn-color);
  color: #000;
  border: none;
  font-weight: 600;
}

.primary-btn-color:hover {
  background-color: var(--dark);
  color: var(--primary-btn-color);
}

@media (max-width: 992px) {
  .sidebar {
    display: none;
  }
  .main-content {
    margin-left: 0;
  }
  .details-sidebar {
    position: fixed;
    right: 0;
    height: 100%;
    z-index: 1040;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    left: calc(-1 * var(--sidebar-width));
  }

  .sidebar.show {
    left: 0;
    width: var(--sidebar-width) !important;
  }

  .sidebar.show .sidebar-heading,
  .sidebar.show .nav-link-custom span,
  .sidebar.show .nav-link-custom .bi-chevron-down {
    display: block !important;
  }

  .main-content {
    margin-left: 0 !important;
  }
}

.btn {
  border-radius: 0;
}

.view-section textarea {
  resize: none;
}

.view-section td:first-child {
  font-size: 16px;
}
.flexwrap {
  flex-wrap: wrap;
}
.gap-30 {
  gap: 30px;
}

.ck-editor__editable {
  min-height: 200px;
  /* Mobile / default height */
  max-height: 100%;
  /* Prevent overflow on small screens */
}
.church-tag {
  font-size: 0.75rem;
  color: #64748b;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.table-container {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.table thead th {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 1rem;
  letter-spacing: 0.025em;
}

.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}
.stat-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AD BANNER */
.btn-publish {
  background-color: #007bff;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}
.btn-draft {
  border: 1px solid #dee2e6;
  font-weight: 500;
  color: #333;
}
.remove-btn-container {
  position: absolute;
  top: -10px;
  right: -10px;
}
.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 5;
}
.remove-btn:hover {
  background: #a71d2a;
  color: white;
}
.toggle-group .btn-check:checked + .btn {
  background-color: #e7f1ff;
  border-color: #0d6efd;
  color: #0d6efd;
}
.toggle-group .btn {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
}

.referral-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.preview-area {
  width: 100%;
  min-height: 120px;
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.preview-area img,
.preview-area video {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.preview-placeholder {
  color: #adb5bd;
  font-size: 0.75rem;
  text-align: center;
}

/* Desktop specific */
@media (min-width: 992px) {
  .ck-editor__editable {
    height: 400px;
    /* Fixed height for desktop */
  }
}

/* AUTH */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 100vh; */
}
.auth-form-container,
.auth-visual {
  min-height: 100vh;
  padding: 20px;
}

.auth-visual {
  background-color: var(--primary-color);
  flex: 1;
}

/* Lucide size helper */
.icon-sm {
  width: 16px;
  height: 16px;
}
.program-meta {
  font-size: 0.75rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.program-meta i,
.program-meta svg {
  width: 14px;
  height: 14px;
}
.attendee-count {
  font-weight: 900;
  font-size: 1.1rem;
  color: #000;
}

.attendee-label {
  display: block;
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-form-container {
  background-color: var(--sidebar-bg);
  flex-basis: 50%;
}

@media (max-width: 768px) {
  .auth-form-container {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .auth-wrapper {
    flex-direction: column;
  }
  .auth-visual {
    display: none;
  }
}
.auth-form-container .login-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
}
.auth-form-container .brand-logo {
  font-size: 1.5rem;
  display: block;
  text-align: center;
}
.auth-form-container .btn-kingschat {
  display: flex;
  justify-self: center;
  align-self: center;
}
.auth-form-container .brand-logo .subtitle {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 400;
}
.auth-form-container label,
.auth-form-container .password-hint,
.auth-form-container form input::placeholder {
  font-size: 14px;
}
.impact-table .category-name {
  text-transform: capitalize;
}

.image-preview-placeholder {
  width: 100%;
  height: 180px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #adb5bd;
  cursor: pointer;
  overflow: hidden;
}
.image-preview-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-content {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.avatar-img {
  width: 64px;
  height: 64px;
  background: rgba(0, 123, 255, 0.8);
  backdrop-filter: blur(8px); /* Blurs the background behind the avatar */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-card {
  /* background: white; */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1100px;
  max-height: 100%; /* Fit card within main content */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-body-wrapper {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: 100%;
  gap: 20px;
}

/* Sidebar within card */
.inner-sidebar {
  border-right: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  background-color: #fdfdfd;
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- UPDATED AVATAR WRAPPER --- */
.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;

  /* The "Ring" styling */
  border: 3px solid white;
  box-shadow:
    0 0 0 1px var(--border-color),
    var(--shadow-soft);

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.avatar-wrapper:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 1px var(--primary-color),
    var(--shadow-premium);
}

/* --- STYLING THE IMAGE TO SIT WELL --- */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image isn't distorted */
  border-radius: 50%; /* Makes the image itself a circle */
  display: block;

  /* Subtle inner shadow effect on the image */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* The status indicator */
.avatar-wrapper::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background-color: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.label-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: block;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  padding: 0;
}

.user-profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }
  .card-body-wrapper {
    flex-direction: column;
    overflow: visible;
  }
  .inner-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .main-content {
    overflow: visible;
    height: auto;
    padding: 1rem;
  }
  .profile-card {
    max-height: none;
  }
}

/* WordPress Media Frame Simulation */
.media-modal-container {
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header Section */
.media-header {
  padding: 0 16px;
  height: 50px;
  border-bottom: 1px solid var(--wp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-header h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: var(--wp-text);
}

/* Tab Navigation */
.media-tabs {
  background: #fff;
  border-bottom: 1px solid var(--wp-border);
  padding: 0 16px;
  display: flex;
}

.media-tab {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--wp-blue);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.media-tab.active {
  color: var(--wp-text);
  font-weight: 600;
  border-bottom-color: var(--wp-blue);
}

/* Main Content Area */
.media-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Grid Section */
.media-main {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #fff;
}

.media-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

/* .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
} */

.attachment {
  /* aspect-ratio: 1; */
  background: var(--wp-bg);
  border: 2px solid transparent;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  width:150px;
  height:150px;
}

.attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.attachment.selected {
  border-color: var(--primary-color);
}

.attachment.selected::after {
  content: "\2713";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Sidebar Section */
.media-sidebar {
  width: 300px;
  background: var(--wp-sidebar);
  border-left: 1px solid var(--wp-border);
  padding: 16px;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #646970;
  display: block;
  margin-bottom: 4px;
}

.attachment-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.preview-img {
  width: 80px;
  height: 80px;
  background: #ddd;
  object-fit: cover;
}

.preview-meta {
  font-size: 12px;
  color: #646970;
  line-height: 1.4;
}

.preview-filename {
  font-weight: 700;
  color: var(--wp-text);
  word-break: break-all;
}

.sidebar-field {
  margin-bottom: 15px;
}

.sidebar-field label {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
  color: #1d2327;
}

.sidebar-field input,
.sidebar-field textarea,
.sidebar-field select {
  width: 100%;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
}

/* Footer Section */
.media-footer {
  padding: 16px;
  border-top: 1px solid var(--wp-border);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disclaimer {
  font-size: 11px;
  color: #646970;
  max-width: 60%;
}

.btn-wp {
  background: var(--wp-blue);
  color: white;
  border: 1px solid #006799;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
}

.btn-wp:hover {
  background: #135e96;
  border-color: #0d4f81;
}
