/* ==========================================================================
   VIJYA LAXMI KALYAN FOUNDATION — Self-Contained Admin Dashboard Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

:root {
  --sidebar-width: 260px;
  --color-primary: #8B0000;
  --color-primary-dark: #660000;
  --color-primary-light: #FDF2F2;
  --color-secondary: #D97706;
  --color-success: #059669;
  --color-success-bg: #DEF7EC;
  --color-warning: #D97706;
  --color-warning-bg: #FEF3C7;
  --color-danger: #DC2626;
  --color-danger-bg: #FDE8E8;
  --color-info: #2563EB;
  --color-info-bg: #EFF6FF;
  
  --bg-body: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-sidebar: #0F172A;
  --bg-sidebar-hover: #1E293B;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.admin-body {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   1. SIDEBAR
   -------------------------------------------------------------------------- */
.admin-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  color: #FFFFFF;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.sidebar-brand-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1.2;
}

.sidebar-brand-text span {
  font-size: 0.7rem;
  color: #F59E0B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.sidebar-menu-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}

.sidebar-menu-wrap::-webkit-scrollbar {
  width: 4px;
}
.sidebar-menu-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.08em;
  padding: 0.75rem 0.75rem 0.35rem;
}

.sidebar-menu {
  list-style: none;
  margin-bottom: 0.75rem;
}

.sidebar-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #94A3B8;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sidebar-link i {
  font-size: 1.2rem;
  color: #64748B;
  transition: var(--transition);
  flex-shrink: 0;
}

.sidebar-link .badge-count {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}

.sidebar-link:hover {
  color: #FFFFFF;
  background-color: var(--bg-sidebar-hover);
}

.sidebar-link:hover i {
  color: #FFFFFF;
}

.sidebar-link.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}

.sidebar-link.active i {
  color: #FDE68A;
}

.sidebar-link.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid #F59E0B;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-info h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.user-info p {
  font-size: 0.68rem;
  color: var(--text-light);
}

.sidebar-logout-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-logout-btn:hover {
  background: var(--color-danger);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTAINER & TOPBAR
   -------------------------------------------------------------------------- */
.admin-main {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-body);
}

.admin-topbar {
  background: #FFFFFF;
  height: 68px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  background: #E2E8F0;
}

.topbar-search {
  position: relative;
  width: 340px;
}

.topbar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.topbar-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: #F8FAFC;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-main);
  transition: var(--transition);
}

.topbar-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-live-site {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid #BFDBFE;
}
.btn-live-site:hover {
  background: #DBEAFE;
}

.btn-add-quick {
  background: var(--color-primary);
  color: #FFFFFF;
  border: 1px solid var(--color-primary-dark);
}
.btn-add-quick:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   3. CONTENT AREA & TABS
   -------------------------------------------------------------------------- */
.admin-content {
  padding: 2rem;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.page-header-title p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   4. BUTTON STYLES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary-dark);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
}

.btn-secondary {
  background-color: #0F172A;
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #1E293B;
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border-color);
}
.btn-outline:hover {
  background-color: #F8FAFC;
  border-color: #CBD5E1;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. STATS TILES
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-tile {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

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

.stat-info .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.stat-info .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
}

.stat-info .stat-trend {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

.stat-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.icon-red { background: var(--color-primary-light); color: var(--color-primary); }
.icon-gold { background: var(--color-warning-bg); color: var(--color-warning); }
.icon-green { background: var(--color-success-bg); color: var(--color-success); }
.icon-blue { background: var(--color-info-bg); color: var(--color-info); }

/* --------------------------------------------------------------------------
   6. CARDS & TABLES
   -------------------------------------------------------------------------- */
.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header-flex h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-input, .filter-select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-main);
  background: #F8FAFC;
  outline: none;
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--color-primary);
  background: #FFFFFF;
}

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

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.custom-table th {
  background: #F8FAFC;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover {
  background: #F8FAFC;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-success { background: var(--color-success-bg); color: #03543F; }
.badge-warning { background: var(--color-warning-bg); color: #92400E; }
.badge-danger { background: var(--color-danger-bg); color: #9B1C1C; }
.badge-info { background: var(--color-info-bg); color: #1E40AF; }
.badge-secondary { background: #F1F5F9; color: var(--text-muted); }

/* Table & Card Action Buttons */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.btn-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn-icon:active {
  transform: translateY(0);
}

.btn-icon.btn-view:hover {
  color: #2563EB;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.btn-icon.btn-edit:hover {
  color: #D97706;
  background: #FEF3C7;
  border-color: #FDE68A;
}

.btn-icon.btn-approve:hover {
  color: #059669;
  background: #DEF7EC;
  border-color: #A7F3D0;
}

.btn-icon.btn-delete:hover {
  color: #DC2626;
  background: #FDE8E8;
  border-color: #FECACA;
}

/* Card Action Button Bar */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.card-action-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-action-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Slides Specific Styling */
.hero-slide-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.hero-slide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-slide-media {
  height: 180px;
  position: relative;
  background: #0F172A;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slide-badge {
  align-self: flex-start;
}

.hero-slide-order {
  color: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.hero-slide-body {
  padding: 1.25rem;
  flex: 1;
}

.hero-slide-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.hero-slide-sub {
  font-size: 0.825rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-slide-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.hero-buttons-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-preview-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: #F1F5F9;
  color: var(--text-main);
  font-weight: 700;
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   7. ITEM CARDS GRID (TEAM, EVENTS, GALLERY)
   -------------------------------------------------------------------------- */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.item-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.item-card-media {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #0F172A;
}

.item-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.item-card:hover .item-card-media img {
  transform: scale(1.04);
}

.item-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

.item-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.item-card-sub {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.item-card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.item-card-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   8. FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
}

/* Photo Upload & Change Control in Modals */
.photo-change-group {
  background: #F8FAFC;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.photo-upload-container {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.photo-preview-box {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: var(--radius-md);
  border: 2px solid #8B0000;
  overflow: hidden;
  background: #0F172A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.2s ease;
}

.photo-upload-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-file-btn-wrapper {
  display: flex;
  align-items: center;
}

.photo-upload-btn {
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.photo-upload-btn:hover {
  border-color: #8B0000;
  color: #8B0000;
  background: #FDF2F2;
}

.photo-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.photo-or-divider::before, .photo-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.photo-or-divider span {
  padding: 0 0.5rem;
}

.photo-presets-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.preset-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-preset {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-preset:hover {
  background: #8B0000;
  color: #FFFFFF;
  border-color: #8B0000;
}

/* --------------------------------------------------------------------------
   PROFESSIONAL POST WRITER STUDIO
   -------------------------------------------------------------------------- */
.modal-xl {
  max-width: 880px !important;
  width: 96% !important;
}

.modal-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-control-lg {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.post-writer-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Featured Cover Image Card */
.post-featured-image-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.featured-image-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.featured-image-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.featured-image-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.featured-image-preview-wrap {
  width: 100%;
  height: 125px;
  background: #0F172A;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.featured-image-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.preview-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.featured-image-inputs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.featured-upload-btn-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upload-cover-btn {
  background: #FFFFFF;
  border: 1.5px dashed #94A3B8;
  color: var(--text-main);
  padding: 0.45rem 1rem;
  font-size: 0.825rem;
  font-weight: 700;
  flex: 1;
  justify-content: center;
}

.upload-cover-btn:hover {
  border-color: #8B0000;
  color: #8B0000;
  background: #FDF2F2;
}

/* Post Editor Toolbar & Container */
.post-editor-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.editor-top-bar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.editor-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.editor-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  font-family: inherit;
}

.editor-tab-btn:hover {
  color: var(--text-main);
  background: #E2E8F0;
}

.editor-tab-btn.active {
  background: #FFFFFF;
  color: var(--color-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tool-btn:hover {
  background: #FFFFFF;
  border-color: var(--border-color);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-content-textarea {
  border: none;
  border-radius: 0;
  padding: 1rem 1.25rem;
  font-size: 0.925rem;
  line-height: 1.7;
  min-height: 200px;
  outline: none;
  box-shadow: none !important;
}

.editor-canvas-preview {
  padding: 1.25rem;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: #FFFFFF;
  font-size: 0.925rem;
  color: #1E293B;
  line-height: 1.8;
}

.editor-canvas-preview h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #E2E8F0;
}

.editor-canvas-preview h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #8B0000;
  margin: 0.85rem 0 0.35rem;
}

.editor-canvas-preview blockquote {
  border-left: 4px solid #8B0000;
  background: #FDF2F2;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #660000;
}

.editor-canvas-preview .metric-highlight {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-weight: 600;
  color: #92400E;
}

.editor-stats-bar {
  background: #F8FAFC;
  border-top: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 768px) {
  .featured-image-layout {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   9. MODALS
   -------------------------------------------------------------------------- */
.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.admin-modal-backdrop.open {
  display: flex;
}

.admin-modal {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.admin-modal > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #FFFFFF;
  z-index: 10;
}

.modal-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover { color: var(--text-main); }

.modal-body,
.post-writer-body {
  padding: 1.5rem;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 #F1F5F9;
}

/* Highly visible, smooth custom scrollbars on all modal bodies */
.modal-body::-webkit-scrollbar,
.post-writer-body::-webkit-scrollbar,
.editor-canvas-preview::-webkit-scrollbar,
#modalAddPost .modal-body::-webkit-scrollbar,
#modalEditPost .modal-body::-webkit-scrollbar,
#modalAddEvent .modal-body::-webkit-scrollbar,
#modalEditEvent .modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-body::-webkit-scrollbar-track,
.post-writer-body::-webkit-scrollbar-track,
.editor-canvas-preview::-webkit-scrollbar-track,
#modalAddPost .modal-body::-webkit-scrollbar-track,
#modalEditPost .modal-body::-webkit-scrollbar-track,
#modalAddEvent .modal-body::-webkit-scrollbar-track,
#modalEditEvent .modal-body::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb,
.post-writer-body::-webkit-scrollbar-thumb,
.editor-canvas-preview::-webkit-scrollbar-thumb,
#modalAddPost .modal-body::-webkit-scrollbar-thumb,
#modalEditPost .modal-body::-webkit-scrollbar-thumb,
#modalAddEvent .modal-body::-webkit-scrollbar-thumb,
#modalEditEvent .modal-body::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 6px;
  border: 2px solid #F1F5F9;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.post-writer-body::-webkit-scrollbar-thumb:hover,
.editor-canvas-preview::-webkit-scrollbar-thumb:hover,
#modalAddPost .modal-body::-webkit-scrollbar-thumb:hover,
#modalEditPost .modal-body::-webkit-scrollbar-thumb:hover,
#modalAddEvent .modal-body::-webkit-scrollbar-thumb:hover,
#modalEditEvent .modal-body::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  z-index: 10;
}

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

.toast {
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--color-primary);
}

.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-warning { border-left-color: var(--color-warning); }
.toast.toast-danger { border-left-color: var(--color-danger); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
    width: 100%;
  }
  .sidebar-toggle-btn {
    display: inline-flex;
  }
  .topbar-search {
    width: 200px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .topbar-search {
    display: none;
  }
  .admin-content {
    padding: 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .topbar-right .btn-add-quick span {
    display: none;
  }
}

/* ==========================================================================
   12. CENTRALIZED MEDIA LIBRARY & IMAGE BROWSER STYLES
   ========================================================================== */
.btn-media-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-media-picker:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  color: #FFFFFF !important;
}

.btn-media-picker i {
  color: #F59E0B;
  font-size: 0.95rem;
}

/* Media Library Modal Window */
.media-modal-dialog {
  max-width: 1200px;
  width: 95vw;
  height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  background: #FFFFFF;
}

.media-modal-header {
  padding: 1rem 1.5rem;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.media-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.media-modal-header-left h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-modal-header-left h3 i {
  color: #F59E0B;
}

.media-modal-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.media-nav-tab-btn {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-nav-tab-btn:hover {
  color: #FFFFFF;
}

.media-nav-tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4);
}

.media-modal-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.media-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* Media Sub-Toolbar (Search & Filter) */
.media-sub-toolbar {
  padding: 0.75rem 1.5rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.media-search-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 250px;
}

.media-search-box {
  position: relative;
  flex: 1;
}

.media-search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

.media-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2.2rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s;
}

.media-search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.media-category-select {
  padding: 0.45rem 0.85rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  outline: none;
  cursor: pointer;
}

.media-stats-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  background: #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Media Modal Main Content Area */
.media-modal-content-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  background: #F1F5F9;
}

.media-view-pane {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: none;
}

.media-view-pane.active {
  display: block;
}

/* WordPress-style Media Grid Layout */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 0.25rem;
}

@media (min-width: 992px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
  }
}

.media-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #DCDCDE, 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.16s ease-in-out;
  user-select: none;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  outline: none;
}

.media-card:hover {
  box-shadow: inset 0 0 0 1px #2271B1, 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.media-card:focus-visible {
  box-shadow: inset 0 0 0 2px #2271B1, 0 0 0 2px rgba(34, 113, 177, 0.4);
}

.media-card.selected {
  box-shadow: inset 0 0 0 3px #2271B1, 0 0 0 1px #2271B1, 0 4px 12px rgba(34, 113, 177, 0.28);
}

.media-card-thumbnail-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Category / Format Badge in Top-Left */
.media-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.76);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
  pointer-events: none;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* WordPress Selection Checkmark Badge in Top-Right */
.media-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: transparent;
  transition: all 0.15s ease;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.media-card:hover .media-card-check {
  background: #FFFFFF;
  border-color: #2271B1;
  color: #94A3B8;
}

.media-card.selected .media-card-check {
  background: #2271B1;
  border-color: #2271B1;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(34, 113, 177, 0.45);
}

/* WordPress-style Caption / Filename overlay at bottom */
.media-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 0.5rem 0.35rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.media-card-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  line-height: 1.2;
}

/* Presets Tab Grid */
.media-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.preset-stock-card {
  position: relative;
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #DCDCDE, 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
}

.preset-stock-card:hover {
  box-shadow: inset 0 0 0 1px #2271B1, 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.preset-stock-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #E2E8F0;
  overflow: hidden;
}

.preset-stock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.preset-stock-card:hover .preset-stock-thumb img {
  transform: scale(1.05);
}

.preset-stock-cat {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.preset-stock-info {
  padding: 0.5rem 0.6rem;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
}

.preset-stock-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.preset-stock-action {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2271B1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Media Preview & Details Sidebar */
.media-preview-sidebar {
  width: 320px;
  background: #FFFFFF;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.media-preview-sidebar-header {
  padding: 0.85rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.media-preview-sidebar-body {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.media-preview-large-img-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.media-meta-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.media-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.media-meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.media-meta-val {
  font-weight: 600;
  color: #0F172A;
  word-break: break-all;
}

.media-copy-url-group {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.media-copy-url-input {
  flex: 1;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  outline: none;
}

.media-preview-sidebar-footer {
  padding: 1rem 1.25rem;
  background: #F8FAFC;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Upload Tab / Drag & Drop Dropzone */
.media-dropzone-container {
  max-width: 700px;
  margin: 1.5rem auto;
}

.media-dropzone {
  border: 2.5px dashed #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.media-dropzone:hover, .media-dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: scale(1.01);
}

.media-dropzone-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #FEE2E2;
  color: var(--color-primary);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.25s;
}

.media-dropzone:hover .media-dropzone-icon {
  transform: scale(1.1);
  background: var(--color-primary);
  color: #FFFFFF;
}

.media-dropzone-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.media-dropzone-subtitle {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 1.5rem;
}

.media-upload-queue {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.media-upload-queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.media-upload-queue-item img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.media-upload-queue-name {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* URL Importer Pane */
.media-url-import-box {
  max-width: 600px;
  margin: 2rem auto;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Stock Presets Grid */
.media-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0.5rem;
}

.media-preset-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.media-preset-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.media-preset-card-media {
  height: 130px;
  position: relative;
}

.media-preset-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-preset-card-body {
  padding: 0.75rem;
}

.media-preset-card-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.media-preset-card-body p {
  font-size: 0.72rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   13. ADVANCED GALLERY MANAGEMENT SECTION STYLES
   -------------------------------------------------------------------------- */
.gallery-management-header-box {
  background: #FFFFFF;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-album-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.gallery-album-btn {
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gallery-album-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.gallery-album-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3);
}

.gallery-batch-uploader-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 2px dashed #CBD5E1;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.gallery-batch-uploader-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Responsive Media Library Adjustments */
@media (max-width: 900px) {
  .media-modal-dialog {
    width: 98vw;
    height: 94vh;
  }
  .media-modal-content-area {
    flex-direction: column;
  }
  .media-preview-sidebar {
    width: 100%;
    max-height: 250px;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .media-preview-large-img-box {
    height: 120px;
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .media-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .media-sub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .media-search-group {
    flex-direction: column;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* General Mobile & Tablet Responsiveness for Admin Panel */
@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .admin-modal {
    max-width: 95vw !important;
    margin: 1rem auto;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-topbar {
    padding: 0.75rem 1rem;
  }
  .topbar-search input {
    width: 140px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-slide-card {
    grid-template-columns: 1fr;
  }
}

/* High-Fidelity Admin Print */
@media print {
  @page {
    size: auto;
    margin: 10mm;
  }
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body, .admin-main {
    background: #FFFFFF !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .admin-sidebar,
  .admin-topbar,
  .page-header-actions,
  .filter-bar,
  .btn-print,
  .no-print,
  .toast-container,
  .card-action-bar,
  .admin-modal-backdrop:not(.open) {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   16. LOGO STUDIO & FOUNDATION SETTINGS STYLES
   -------------------------------------------------------------------------- */
.logo-studio-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .logo-studio-card {
    grid-template-columns: 1fr;
  }
}

.logo-preview-box {
  background: #FFFFFF;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.logo-preview-img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-preview-img:hover {
  transform: scale(1.05);
}

.logo-actions-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logo-input-group {
  display: flex;
  gap: 0.5rem;
}

.badge-phonepe {
  background: #5F259F !important;
  color: #FFFFFF !important;
}

.gateway-toggle-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gateway-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gateway-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.icon-phonepe {
  background: #F4EFFB;
  color: #5F259F;
}

.icon-razorpay {
  background: #EBF4FF;
  color: #0284C7;
}

.icon-bank {
  background: #DEF7EC;
  color: #059669;
}

/* --------------------------------------------------------------------------
   17. JOB MANAGEMENT & APPLICANT SYSTEM STYLES
   -------------------------------------------------------------------------- */
.admin-sub-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #E2E8F0;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  width: fit-content;
}

.sub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.sub-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.5);
}

.sub-tab-btn.active {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sub-tab-btn .badge-pill {
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: #334155;
  font-weight: 800;
}

.sub-tab-btn.active .badge-pill {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Status Badges */
.badge-approved { background: #DEF7EC !important; color: #03543F !important; border: 1px solid #BCF0DA; }
.badge-rejected { background: #FDE8E8 !important; color: #9B1C1C !important; border: 1px solid #F8B4B4; }
.badge-pending { background: #FEF3C7 !important; color: #92400E !important; border: 1px solid #FDE68A; }
.badge-active { background: #DEF7EC !important; color: #03543F !important; }
.badge-closed { background: #E2E8F0 !important; color: #475569 !important; }

/* Applicant Profile & Detail View */
.applicant-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.applicant-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
}

.applicant-profile-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.applicant-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background: #E2E8F0;
  flex-shrink: 0;
}

.applicant-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.applicant-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.applicant-info-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
}

.applicant-info-box h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.applicant-info-box p {
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  margin: 0;
}

/* ==========================================================================
   A4 PRINTABLE APPLICATION FORM STYLES
   ========================================================================== */
.printable-application-sheet {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 2.5rem;
  border: 1.5px solid #0F172A;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, sans-serif;
  color: #0F172A;
  box-sizing: border-box;
}

.print-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #8B0000;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.print-app-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.print-app-title-box {
  text-align: center;
  flex: 1;
}

.print-app-title-box h2 {
  font-family: 'Outfit', 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #8B0000;
  margin: 0 0 0.2rem;
  letter-spacing: 0.02em;
}

.print-app-title-box p {
  font-size: 0.78rem;
  color: #475569;
  margin: 0;
  line-height: 1.3;
}

.print-app-badge-box {
  background: #FDF2F2;
  border: 1px solid #8B0000;
  color: #8B0000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  display: inline-block;
  margin-top: 0.4rem;
  letter-spacing: 0.05em;
}

.print-photo-box {
  width: 95px;
  height: 115px;
  border: 2px dashed #0F172A;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #F8FAFC;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.7rem;
  color: #64748B;
}

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

.print-section-heading {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #8B0000;
  background: #F1F5F9;
  padding: 0.4rem 0.75rem;
  border-left: 4px solid #8B0000;
  margin: 1.25rem 0 0.75rem;
  letter-spacing: 0.03em;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-bottom: 0.75rem;
}

.print-table th, .print-table td {
  border: 1px solid #CBD5E1;
  padding: 0.45rem 0.75rem;
  text-align: left;
}

.print-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: #334155;
  width: 25%;
}

.print-declaration-box {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #CBD5E1;
}

.print-signatures-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
}

.print-sig-col {
  text-align: center;
  width: 200px;
}

.print-sig-line {
  border-top: 1.5px solid #0F172A;
  margin-bottom: 0.35rem;
}

.print-sig-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0F172A;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  
  body.printing-application * {
    visibility: hidden;
  }
  
  body.printing-application #printAppContainer,
  body.printing-application #printAppContainer * {
    visibility: visible;
  }

  body.printing-application #printAppContainer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
  }
}
/* --------------------------------------------------------------------------
   17. ROLE-BASED ACCESS CONTROL (RBAC) & USER MANAGEMENT STYLES
   -------------------------------------------------------------------------- */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.badge-role-super_admin,
.badge-role-superadmin {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #FCA5A5 !important;
}

.badge-role-admin {
  background: #F3E8FF !important;
  color: #6B21A8 !important;
  border: 1px solid #D8B4FE !important;
}

.badge-role-manager {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border: 1px solid #93C5FD !important;
}

.badge-role-field_staff,
.badge-role-fieldstaff {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border: 1px solid #6EE7B7 !important;
}

.badge-role-custom {
  background: #FFFBEB !important;
  color: #B45309 !important;
  border: 1px solid #FCD34D !important;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.permission-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.permission-card:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.permission-card.selected {
  background: #FEF2F2;
  border-color: #F87171;
}

.permission-card input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #8B0000;
  cursor: pointer;
}

.permission-info {
  display: flex;
  flex-direction: column;
}

.permission-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.permission-desc {
  font-size: 0.72rem;
  color: #64748B;
  line-height: 1.3;
  margin-top: 2px;
}

.permission-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 320px;
}

.permission-pill {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.permission-pill i {
  font-size: 0.75rem;
  color: #8B0000;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-cell {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B0000 0%, #5C0000 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #F59E0B;
}

.user-cell-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.user-cell-info p {
  font-size: 0.75rem;
  color: #64748B;
  margin: 0;
}

.role-preset-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.role-preset-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.role-preset-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.role-preset-btn.active {
  background: #8B0000;
  color: #FFFFFF;
  border-color: #8B0000;
  box-shadow: 0 2px 4px rgba(139, 0, 0, 0.2);
}

.demo-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.demo-role-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.demo-role-btn:hover {
  background: #F1F5F9;
  border-color: #8B0000;
  color: #8B0000;
}

.demo-role-btn span.role-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
}

.role-access-denied-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
}

.role-access-denied-box i {
  font-size: 3.5rem;
  color: #D97706;
  margin-bottom: 1rem;
  display: inline-block;
}

.role-access-denied-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #92400E;
  margin: 0 0 0.5rem;
}

.role-access-denied-box p {
  color: #78350F;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}



