/* ==========================================================================
   PSTNT Admin Portal - Red & Lemon Yellow Theme
   பதினெண் சித்தர் திருநெறியதமிழ் வழிபாட்டுச் சங்கம்
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Tiro+Tamil:ital@0;1&display=swap');

:root {
  --primary-red: #A30000;
  --primary-red-hover: #8B0000;
  --deep-red: #580000;
  --dark-maroon: #2C0404;
  --crimson: #C41212;
  --bright-red: #E01A1A;

  --lemon-yellow: #FFF44F;
  --lemon-bright: #FFE600;
  --lemon-glow: rgba(255, 244, 79, 0.45);
  --lemon-light: #FFFDE6;
  --lemon-gold: #F5BE00;
  --lemon-dark: #B8860B;

  --bg-cream: #FFFAF5;
  --bg-warm: #FFF6EE;
  --bg-card: #FFFFFF;
  --bg-sidebar: #220303;
  --border-red-light: rgba(163, 0, 0, 0.15);
  --border-yellow-glow: rgba(255, 230, 0, 0.4);

  --text-dark: #1E1210;
  --text-body: #4A3B32;
  --text-muted: #786458;
  --text-light: #FFFFFF;

  --shadow-sm: 0 4px 12px rgba(88, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(88, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(88, 0, 0, 0.18);
  --shadow-lemon: 0 0 25px rgba(255, 244, 79, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-tamil: 'Mukta Malar', 'Tiro Tamil', sans-serif;
  --font-en: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  font-family: var(--font-tamil);
  background-color: var(--bg-warm);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   LOGIN PAGE STYLES
   ========================================================================== */
.login-body {
  background: radial-gradient(circle at 10% 20%, #4a0101 0%, #200000 60%, #110000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 79, 0.15), transparent 70%);
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.login-bg-glow-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163, 0, 0, 0.35), transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 244, 79, 0.3);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 10;
  border-top: 5px solid var(--primary-red);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3.5px solid var(--lemon-gold);
  box-shadow: 0 0 24px rgba(245, 190, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  overflow: hidden;
  padding: 4px;
}

.login-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-red);
  line-height: 1.3;
}

.login-subtitle {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 600;
  margin-top: 0.6rem;
  letter-spacing: 0.2px;
}

.login-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lemon-light);
  border: 1px solid rgba(245, 190, 0, 0.5);
  color: var(--dark-maroon);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap i.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--primary-red);
  font-size: 1rem;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  border: 1.5px solid #E2D7CF;
  border-radius: var(--radius-md);
  background: #FFFDFB;
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(163, 0, 0, 0.12);
  background: #FFFFFF;
}

.password-toggle-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  transition: var(--transition);
}

.password-toggle-btn:hover {
  color: var(--primary-red);
}

.btn-primary-pstnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, var(--bright-red), var(--primary-red));
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(163, 0, 0, 0.3);
  transition: var(--transition);
}

.btn-primary-pstnt:hover {
  background: linear-gradient(135deg, var(--crimson), var(--deep-red));
  box-shadow: 0 8px 25px rgba(163, 0, 0, 0.45);
  transform: translateY(-2px);
}

.btn-lemon-pstnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--lemon-bright), var(--lemon-gold));
  color: #260000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 190, 0, 0.35);
  transition: var(--transition);
}

.btn-lemon-pstnt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 190, 0, 0.5);
}

/* ==========================================================================
   ALERTS & NOTIFICATIONS
   ========================================================================== */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.alert-danger {
  background-color: #FDF0F0;
  border: 1px solid #F8C8C8;
  color: #A30000;
}

.alert-success {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.alert-warning {
  background-color: #FFFDEB;
  border: 1px solid #FEF08A;
  color: #854D0E;
}

/* ==========================================================================
   ADMIN LAYOUT (TOPBAR, NAVBAR, CONTAINER)
   ========================================================================== */
.admin-navbar {
  background: linear-gradient(135deg, var(--dark-maroon) 0%, var(--deep-red) 50%, var(--primary-red) 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--lemon-gold);
}

.admin-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #FFFFFF;
}

.admin-nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--lemon-yellow);
  object-fit: contain;
  background: #FFF;
  padding: 2px;
}

.admin-nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-nav-badge {
  background: var(--lemon-yellow);
  color: var(--dark-maroon);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.35rem;
}

.admin-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--lemon-yellow);
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 244, 79, 0.3);
}

.admin-user-pill i {
  color: var(--lemon-yellow);
}

.btn-nav-logout {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-nav-logout:hover {
  background: #E01A1A;
  border-color: #E01A1A;
  color: #FFF;
}

/* ==========================================================================
   ADMIN MAIN CONTENT & DASHBOARD
   ========================================================================== */
.admin-main-wrap {
  max-width: 1400px;
  width: 100%;
  margin: 1.75rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.dashboard-header-banner {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF5ED 100%);
  border: 1.5px solid var(--border-red-light);
  border-left: 6px solid var(--primary-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-title-group h1 {
  font-size: 1.6rem;
  color: var(--primary-red);
  font-weight: 800;
}

.dashboard-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(163, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-red);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-info .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-red);
  font-family: var(--font-en);
  line-height: 1.1;
}

.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--bg-red-subtle);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ==========================================================================
   TWO COLUMN WORKSPACE: UPLOAD & GALLERY
   ========================================================================== */
.admin-workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(163, 0, 0, 0.1);
  overflow: hidden;
}

.admin-card-header {
  background: linear-gradient(135deg, var(--deep-red), var(--primary-red));
  color: #FFFFFF;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-card-title i {
  color: var(--lemon-yellow);
}

.admin-card-body {
  padding: 1.5rem;
}

/* ==========================================================================
   DRAG AND DROP UPLOAD ZONE
   ========================================================================== */
.dropzone-container {
  border: 2px dashed rgba(163, 0, 0, 0.3);
  border-radius: var(--radius-md);
  background: #FFFDFB;
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.25rem;
  position: relative;
}

.dropzone-container:hover, .dropzone-container.drag-over {
  border-color: var(--primary-red);
  background: var(--bg-red-subtle);
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

.dropzone-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

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

.image-preview-box {
  display: none;
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-red-light);
  background: #000;
}

.image-preview-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.btn-remove-preview {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-remove-preview:hover {
  background: #E01A1A;
}

/* Category Pills Selector */
.category-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.category-radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #EADFD7;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  background: #FFFDFB;
}

.category-radio-label:hover {
  border-color: var(--primary-red);
  background: var(--bg-red-subtle);
}

.category-radio-label input[type="radio"] {
  accent-color: var(--primary-red);
  width: 16px;
  height: 16px;
}

.category-radio-label input[type="radio"]:checked + .cat-text {
  color: var(--primary-red);
  font-weight: 700;
}

.category-radio-label:has(input[type="radio"]:checked) {
  border-color: var(--primary-red);
  background: #FFF0F0;
  box-shadow: 0 0 0 2px rgba(163, 0, 0, 0.15);
}

/* ==========================================================================
   IMAGE GALLERY MANAGEMENT SECTION
   ========================================================================== */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gallery-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip-btn {
  background: #FFFDFB;
  border: 1px solid #E2D7CF;
  color: var(--text-body);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-chip-btn:hover, .filter-chip-btn.active {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-admin-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid #EAE0D8;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.gallery-admin-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(163, 0, 0, 0.3);
}

.gallery-card-thumb-wrap {
  position: relative;
  height: 180px;
  background: #111;
  overflow: hidden;
}

.gallery-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-admin-card:hover .gallery-card-thumb {
  transform: scale(1.05);
}

.category-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(34, 3, 3, 0.85);
  backdrop-filter: blur(4px);
  color: var(--lemon-yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 244, 79, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.status-badge-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.status-badge-indicator.active {
  background: #15803D;
  color: #FFF;
}

.status-badge-indicator.inactive {
  background: #64748B;
  color: #FFF;
}

.gallery-card-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.gallery-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #F1E9E2;
  gap: 0.4rem;
}

.btn-card-action {
  background: none;
  border: 1px solid #E2D7CF;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-card-action:hover {
  background: #F4EBE3;
}

.btn-card-action.delete-btn:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  color: #DC2626;
}

.btn-card-action.toggle-btn.active {
  color: #15803D;
}

/* ==========================================================================
   MODALS (Both .admin-modal and .modal-backdrop supported)
   ========================================================================== */
.admin-modal,
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 2, 2, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 1.5rem;
  overflow-y: auto;
}

.admin-modal.open,
.modal-backdrop.open {
  display: flex !important;
  opacity: 1;
}

.admin-modal-box,
.modal-dialog {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 244, 79, 0.2);
  overflow: hidden;
  border-top: 5px solid var(--primary-red);
  animation: modalPop 0.25s ease-out;
  position: relative;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--primary-red);
  background: rgba(163, 0, 0, 0.08);
}

.admin-modal-header {
  background: var(--bg-warm);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #EAE0D8;
}

.admin-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-red);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

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

.admin-modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-warm);
  border-top: 1px solid #EAE0D8;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-secondary-pstnt {
  background: #EAE0D8;
  color: var(--text-dark);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-pstnt:hover {
  background: #DDD0C5;
}

.empty-gallery-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
}

.empty-gallery-state i {
  font-size: 3.5rem;
  color: #D6C5B8;
  margin-bottom: 1rem;
}

/* ==========================================================================
   ADMIN FOOTER
   ========================================================================== */
.admin-footer {
  background: var(--dark-maroon);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  border-top: 2px solid var(--lemon-gold);
  margin-top: auto;
}

.admin-footer a {
  color: var(--lemon-yellow);
}

/* ==========================================================================
   BLOG MANAGEMENT & ADMIN TABLES
   ========================================================================== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #FFF6EE;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-red-light);
  white-space: nowrap;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #F0E6DE;
  vertical-align: middle;
  font-size: 0.92rem;
}

.admin-table tr:hover {
  background-color: #FFFAF5;
}

.badge-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-articles {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.badge-news {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-events {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.badge-books {
  background: #F0FDF4;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-gurus {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-temples {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.badge-initiatives {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.status-active {
  background: #E8F5E9;
  color: #1B5E20;
}

.status-active:hover {
  background: #C8E6C9;
}

.status-inactive {
  background: #FFFDE6;
  color: #856404;
}

.status-inactive:hover {
  background: #FFF3CD;
}

.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
  background: #FFF;
}

.btn-action-view {
  color: #2563EB;
  border-color: #BFDBFE;
}

.btn-action-view:hover {
  background: #2563EB;
  color: #FFF;
}

.btn-action-edit {
  color: #D97706;
  border-color: #FDE68A;
}

.btn-action-edit:hover {
  background: #D97706;
  color: #FFF;
}

.btn-action-delete {
  color: #DC2626;
  border-color: #FECDD3;
}

.btn-action-delete:hover {
  background: #DC2626;
  color: #FFF;
}

.upload-dropzone {
  border: 2px dashed rgba(163, 0, 0, 0.3);
  border-radius: var(--radius-md);
  background: #FFFDFB;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-dropzone:hover {
  border-color: var(--primary-red);
  background: #FFF0F0;
}

.btn-pstnt-primary {
  background: linear-gradient(135deg, var(--deep-red), var(--primary-red));
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-pstnt-primary:hover {
  background: linear-gradient(135deg, var(--dark-maroon), var(--deep-red));
  box-shadow: 0 4px 12px rgba(163, 0, 0, 0.25);
  transform: translateY(-1px);
}

.btn-pstnt-secondary {
  background: #EAE0D8;
  color: var(--text-dark);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pstnt-secondary:hover {
  background: #DDD0C5;
}

