/* Design System variables */
:root {
  --bg-primary: #0b0d0e;
  --bg-secondary: #121518;
  --bg-surface: #191d21;
  --bg-surface-hover: #22282e;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-gold: #cbb88c;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  
  --gold: #cbb88c;
  --gold-dark: #b8a272;
  --gold-glow: rgba(203, 184, 140, 0.15);
  
  --blue: #407BFF;
  --purple: #9d4edd;
  --red: #ff3333;
  --green: #2ec4b6;
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sidebar-width: 260px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fff;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Login Page Layout */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #1b2024 0%, #080a0b 100%);
  padding: 20px;
}

.login-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--gold);
  border-radius: var(--border-radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo img {
  height: 70px;
  margin-bottom: 12px;
}

.login-logo h2 {
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.login-logo span {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Forms styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea,
.field-block input,
.field-block textarea {
  width: 100%;
  padding: 11px 15px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  transition: var(--transition);
  font-size: 14px;
}

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

.error-msg {
  color: var(--red);
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 15px;
  display: none;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: var(--gold);
  border: none;
  border-radius: 6px;
  color: #121518;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: #fff;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Dashboard Wrapper Layout */
.admin-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header img {
  height: 42px;
}

.sidebar-header h3 {
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1.2;
}

.sidebar-header span {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover, 
.nav-item.active {
  background-color: var(--bg-surface);
  color: #fff;
}

.nav-item.active {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.nav-item i {
  width: 20px;
  font-size: 16px;
  text-align: center;
  color: var(--gold);
}

.nav-logout {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border: none;
  background: transparent;
  color: var(--red);
  font-weight: 500;
  text-align: left;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.nav-logout:hover {
  background-color: rgba(255, 51, 51, 0.1);
}

/* Workspace Layout */
.workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.workspace-header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-shrink: 0;
}

.workspace-header h1 {
  font-size: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.avatar {
  width: 32px;
  height: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
}

/* Panels */
.panel-container {
  padding: 30px;
  flex-grow: 1;
  overflow-y: auto;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

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

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

/* Vibrance Stat Cards (Matching Admin Screenshot) */
.main-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .main-stats-grid {
    grid-template-columns: 1fr;
  }
}

.vibrance-card {
  position: relative;
  border-radius: 12px;
  padding: 24px 28px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 120px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vibrance-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Phoenix Legal Brand Card 1: Gold Gradient (Total Enquiry) */
.vibrance-card.card-pink {
  background: linear-gradient(135deg, #d4af37 0%, #cbb88c 50%, #a38f61 100%);
  border: 1px solid rgba(203, 184, 140, 0.4);
}

/* Phoenix Legal Brand Card 2: Deep Royal Blue Gradient (Total Career) */
.vibrance-card.card-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  border: 1px solid rgba(64, 123, 255, 0.3);
}

/* Phoenix Legal Brand Card 3: Emerald Teal Gradient (Total Visitors) */
.vibrance-card.card-teal {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #115e59 100%);
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.vibrance-card .card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vibrance-card .card-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.2px;
}

.vibrance-card .card-count {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.vibrance-card .card-icon {
  position: relative;
  z-index: 2;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px;
}

/* Circular Watermarks */
.vibrance-card .card-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.vibrance-card .shape-1 {
  width: 140px;
  height: 140px;
  right: -30px;
  top: -35px;
  background: rgba(255, 255, 255, 0.16);
}

.vibrance-card .shape-2 {
  width: 180px;
  height: 180px;
  right: -20px;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.12);
}

/* Secondary Stats Row */
.secondary-stats-row {
  margin-bottom: 30px;
}

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

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.bg-gold { background-color: rgba(203, 184, 140, 0.15); color: var(--gold); }
.bg-blue { background-color: rgba(64, 123, 255, 0.15); color: var(--blue); }
.bg-purple { background-color: rgba(157, 78, 221, 0.15); color: var(--purple); }

.stat-info h3 {
  font-size: 24px;
  margin-bottom: 2px;
}

.stat-info span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cards & Layout modules */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.dashboard-info-card {
  background: linear-gradient(135deg, #161a1e 0%, #101316 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  border-radius: var(--border-radius);
  padding: 30px;
}

.dashboard-info-card h2 {
  margin-bottom: 12px;
}

.info-guide {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.info-guide h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--gold);
}

.info-guide ul {
  padding-left: 20px;
}

.info-guide li {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Grids & fields */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.fields-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-block {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.field-block:last-child {
  border-bottom: none;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.field-meta label {
  font-weight: 600;
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Select Controls */
.editor-header-control {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.select-control {
  padding: 8px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  min-width: 250px;
}

.select-control:focus {
  outline: none;
  border-color: var(--gold);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-save {
  background-color: var(--gold);
  color: #121518;
}
.btn-save:hover {
  background-color: #fff;
  box-shadow: 0 0 15px rgba(203, 184, 140, 0.3);
}

.btn-add {
  background-color: var(--gold);
  color: #121518;
}
.btn-add:hover {
  background-color: #fff;
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: #fff;
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
}

.btn-cancel {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Input structures */
.input-with-button {
  display: flex;
  gap: 8px;
}

.input-with-button input {
  flex-grow: 1;
}

/* Image preview box */
.image-field-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
}

.image-field-wrapper .field-input-box {
  flex-grow: 1;
}

.img-preview-box {
  width: 100px;
  height: 60px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Rich Text Editor Extensions */
.ql-toolbar.ql-snow {
  background-color: #191d21 !important;
  border: 1px solid var(--border-color) !important;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: var(--text-secondary) !important;
}

.ql-toolbar.ql-snow .ql-fill {
  fill: var(--text-secondary) !important;
}

.ql-toolbar.ql-snow .ql-picker {
  color: var(--text-secondary) !important;
}

.ql-container.ql-snow {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color) !important;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  color: #fff !important;
  font-family: var(--font-family) !important;
  font-size: 14.5px !important;
}

/* Blogs tab list layout */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.blog-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-card-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-card-content p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.blog-card-actions .btn {
  flex-grow: 1;
  justify-content: center;
  font-size: 12.5px;
  padding: 6px 12px;
}

.btn-edit {
  background-color: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid var(--border-color);
}
.btn-edit:hover {
  background-color: var(--bg-surface);
}

.btn-delete {
  background-color: rgba(255, 51, 51, 0.1);
  color: var(--red);
}
.btn-delete:hover {
  background-color: var(--red);
  color: #fff;
}

/* Gallery and upload styling */
.gallery-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .gallery-layout {
    grid-template-columns: 1fr;
  }
}

.drag-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

.drag-drop-zone:hover {
  border-color: var(--gold);
  background-color: rgba(203, 184, 140, 0.03);
}

.drag-drop-zone i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}

.drag-drop-zone span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.gallery-filter-bar {
  margin-bottom: 20px;
}

.gallery-filter-bar input {
  width: 100%;
  padding: 10px 15px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
}

.gallery-filter-bar input:focus {
  outline: none;
  border-color: var(--gold);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

.gallery-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
  padding: 8px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-name {
  font-size: 11px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.btn-copy-path {
  background-color: var(--gold);
  color: #121518;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Modals */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--gold);
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.modal-content.modal-md {
  max-width: 550px;
}

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

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

#blog-form {
  padding: 24px;
}

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

.col-6 { width: 50%; }
.col-4 { width: 33.33%; }

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .col-6, .col-4 {
    width: 100%;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 20px;
}

.image-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.selector-img-item {
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
}

.selector-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selector-img-item:hover, 
.selector-img-item.selected {
  border-color: var(--gold);
}

/* Security layout limit width */
.max-w-500 {
  max-width: 500px;
}
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 24px; }
.mt-2 { margin-top: 10px; }
.mb-3 { margin-bottom: 15px; }
.mr-2 { margin-right: 8px; }
.text-center { text-align: center; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }

/* Mobile Navigation & Responsive styles */
.mobile-nav-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.mobile-nav-toggle-btn:hover {
  color: var(--gold);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  display: none;
  backdrop-filter: blur(4px);
}

.sidebar-backdrop.show {
  display: block;
}

@media (max-width: 768px) {
  .mobile-nav-toggle-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
  }

  .sidebar.open {
    left: 0;
  }

  .workspace-header {
    padding: 0 15px;
  }

  .panel-container {
    padding: 15px;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .fields-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .image-field-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .img-preview-box {
    width: 100%;
    height: 120px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-header .btn {
    width: 100%;
    justify-content: center;
  }

  .blog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .blog-header .btn {
    width: 100%;
    justify-content: center;
  }

  .editor-header-control {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .editor-header-control select {
    width: 100%;
  }

  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Enquiries Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  margin-top: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table th {
  background-color: var(--bg-surface);
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.bg-green {
  background-color: rgba(46, 196, 182, 0.15);
  color: var(--green);
}

.bg-teal {
  background-color: rgba(0, 173, 181, 0.18);
  color: #4dd0e1;
}

.admin-table td .btn {
  padding: 5px 10px;
  font-size: 12px;
}
