html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --bg-neutral: #f3f6f9;
  --bg-primary: #4e73df;
  --bg-primary-dark: #2e59d9;
  --bg-success: #1cc88a;
  --bg-info: #36b9cc;
  --bg-warning: #f6c23e;
  --bg-danger: #e74a3b;
  --sidebar-bg: #4e73df;
  --sidebar-bg-gradient: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  --sidebar-dark: #224abe;
  --border-subtle: #e3e6f0;
  --text-muted: #858796;
  --text-white: #ffffff;
}

/* Use Inter font globally */
html, body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--bg-neutral);
  color: #5a5c69;
  overflow-x: hidden;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  padding: 1.5rem;
  background-color: #ffffff;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================
   SIDEBAR - Dark Theme with Gradient
   ========================================== */
.sidebar {
  background: var(--sidebar-bg-gradient) !important;
  border-right: none !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.sidebar-brand {
  color: var(--text-white) !important;
  padding: 1.5rem 1rem;
  font-size: 1.1rem;
}

.sidebar-brand:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-brand i {
  color: var(--text-white);
}

.sidebar-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 0.5rem 1rem;
}

.sidebar-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.15s ease-in-out;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-white) !important;
  border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-white) !important;
  font-weight: 700;
  border-left-color: var(--text-white);
}

.sidebar-link i {
  width: 1.25rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 0.5rem;
}

.sidebar-link.active i,
.sidebar-link:hover i {
  color: var(--text-white);
}

/* Offcanvas header for mobile */
.offcanvas-header {
  background: var(--sidebar-bg-gradient);
  color: var(--text-white);
}

.offcanvas-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-title {
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================
   NAVBAR - Light with Shadow
   ========================================== */
.navbar.sticky-top {
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  padding: 0.5rem 1rem;
}

.navbar .navbar-brand {
  letter-spacing: 0.05rem;
  font-weight: 600;
  color: var(--sidebar-bg);
}

.navbar .navbar-brand i {
  color: var(--sidebar-bg);
}

.navbar .btn-outline-secondary {
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.navbar .btn-outline-secondary:hover {
  background-color: var(--bg-neutral);
  border-color: var(--border-subtle);
  color: #5a5c69;
}

/* ==========================================
   CARDS - Modern Style with Shadows
   ========================================== */
.card {
  border-radius: 0.35rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  margin-bottom: 1.5rem;
  overflow: hidden; /* Prevents border-radius gaps */
}

.card .card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--sidebar-bg);
  border-top-left-radius: 0.35rem;
  border-top-right-radius: 0.35rem;
}

.card .card-header h6,
.card .card-header .h6 {
  margin: 0;
  font-weight: 700;
  color: var(--sidebar-bg);
}

/* Remove any conflicting gold header styles */
.card-header-gold {
  background-color: #f8f9fc !important;
  color: var(--sidebar-bg) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.card-header-gold h1,
.card-header-gold h2,
.card-header-gold h3,
.card-header-gold h4,
.card-header-gold h5,
.card-header-gold h6,
.card-header-gold span,
.card-header-gold i,
.card-header-gold a,
.card-header-gold small {
  color: var(--sidebar-bg) !important;
}

.card .card-body {
  padding: 1.25rem;
  border-radius: 0; /* Remove any conflicting radius */
}

.card.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem 0 rgba(58, 59, 69, 0.2) !important;
}

.card-footer {
  background-color: #f8f9fc;
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: calc(0.35rem - 1px);
  border-bottom-right-radius: calc(0.35rem - 1px);
}

/* Border colors for accent cards */
.card.border-left-primary {
  border-left: 0.25rem solid var(--bg-primary) !important;
}

.card.border-left-success {
  border-left: 0.25rem solid var(--bg-success) !important;
}

.card.border-left-info {
  border-left: 0.25rem solid var(--bg-info) !important;
}

.card.border-left-warning {
  border-left: 0.25rem solid var(--bg-warning) !important;
}

/* ==========================================
   DASHBOARD STAT CARDS
   ========================================== */
.dashboard-stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 0.25rem solid var(--bg-primary);
}

.dashboard-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2) !important;
}

.dashboard-stat-card.stat-primary {
  border-left-color: var(--bg-primary);
}

.dashboard-stat-card.stat-success {
  border-left-color: var(--bg-success);
}

.dashboard-stat-card.stat-warning {
  border-left-color: var(--bg-warning);
}

.dashboard-stat-card.stat-info {
  border-left-color: var(--bg-info);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.bg-primary-soft {
  background: rgba(78, 115, 223, 0.1);
  color: var(--bg-primary);
}

.stat-icon.bg-success-soft {
  background: rgba(28, 200, 138, 0.1);
  color: var(--bg-success);
}

.stat-icon.bg-warning-soft {
  background: rgba(246, 194, 62, 0.1);
  color: var(--bg-warning);
}

.stat-icon.bg-info-soft {
  background: rgba(54, 185, 204, 0.1);
  color: var(--bg-info);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
  background-color: var(--bg-primary);
  border-color: var(--bg-primary);
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--bg-primary-dark);
  border-color: var(--bg-primary-dark);
}

.btn-success {
  background-color: var(--bg-success);
  border-color: var(--bg-success);
}

.btn-info {
  background-color: var(--bg-info);
  border-color: var(--bg-info);
}

.btn-warning {
  background-color: var(--bg-warning);
  border-color: var(--bg-warning);
  color: #fff;
}

/* ==========================================
   TABLES
   ========================================== */
.table {
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  color: #5a5c69;
}

.table thead th {
  background-color: #f8f9fc;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--sidebar-bg);
  padding: 0.75rem;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fc;
}

.table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
}

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
body > .d-flex {
  display: flex;
  min-height: calc(100vh - 56px);
}

.d-flex {
  display: flex;
}

.flex-grow-1 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  background-color: var(--bg-neutral);
}

/* ==========================================
   NAVBAR PROFILE & NOTIFICATIONS
   ========================================== */
.avatar {
  font-weight: 600;
  background: var(--sidebar-bg-gradient) !important;
}

.nav-link .bi-bell {
  color: var(--text-muted);
  transition: color 0.15s ease-in-out;
}

.nav-link:hover .bi-bell {
  color: var(--sidebar-bg);
}

.dropdown-menu {
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.dropdown-item:hover {
  background-color: var(--bg-neutral);
}

/* ==========================================
   AUTH CARDS
   ========================================== */
.login-card,
.forgot-card,
.reset-card {
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.login-logo h1,
.forgot-logo h1,
.reset-logo h1 {
  color: var(--sidebar-bg);
  font-weight: 700;
}

/* ==========================================
   DATATABLES OVERRIDES
   ========================================== */
/* Swapped layout: Search on LEFT, Show on RIGHT */
.dataTables_wrapper .row:first-of-type {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between !important;
  padding: 0.75rem 0;
}

.dataTables_wrapper .row:first-of-type > div {
  display: flex !important;
  align-items: center;
}

/* Search on the LEFT, Show on the RIGHT */
.dataTables_wrapper .row:first-of-type > div:first-child {
  order: 1;
  justify-content: flex-start !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.dataTables_wrapper .row:first-of-type > div:last-child {
  order: 2;
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* DataTables filter (Search) styling */
.dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.dataTables_wrapper .dataTables_filter label {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  gap: 0.5rem !important;
  flex-direction: row !important;
  text-align: left !important;
}

.dataTables_wrapper .dataTables_filter input[type="search"] {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
  text-align: left !important;
  width: 200px !important;
  display: inline-block !important;
}

/* Override Bootstrap DataTables specific styles */
div.dataTables_wrapper div.dataTables_filter {
  text-align: left !important;
}

div.dataTables_wrapper div.dataTables_filter label {
  text-align: left !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  margin-left: 0.5em !important;
  text-align: left !important;
}

/* DataTables length (Show entries) styling */
.dataTables_wrapper .dataTables_length {
  float: none !important;
  text-align: right !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.dataTables_wrapper .dataTables_length label {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  gap: 0.5rem !important;
}

.dataTables_wrapper .dataTables_length select {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

div.dataTables_wrapper div.dataTables_length {
  text-align: right !important;
}

div.dataTables_wrapper div.dataTables_length label {
  text-align: right !important;
}

/* Footer padding for info/pagination */
.dataTables_wrapper .row:last-of-type {
  padding: 0.75rem 0;
  display: flex !important;
  align-items: center;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding-top: 0.25rem;
}

/* Responsive fallback: stack and maintain layout on small screens */
@media (max-width: 576px) {
  .dataTables_wrapper .row:first-of-type {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dataTables_wrapper .row:first-of-type > div:first-child,
  .dataTables_wrapper .row:first-of-type > div:last-child {
    order: initial;
    margin: 0 0 0.5rem 0;
    justify-content: flex-start !important;
  }
  
  .dataTables_wrapper .dataTables_filter input[type="search"] {
    width: 100% !important;
  }
}

/* ==========================================
   CARD BORDER RADIUS FIX
   ========================================== */

/* Ensure cards have consistent borders all around */
.card {
  border-radius: 0.35rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
  margin-bottom: 1.5rem;
  overflow: hidden; /* Prevents border-radius gaps */
}

.card .card-body {
  padding: 1.25rem;
  border-radius: 0; /* Remove any conflicting radius */
}

/* Ensure card headers have proper top radius */
.card .card-header {
  border-top-left-radius: calc(0.35rem - 1px);
  border-top-right-radius: calc(0.35rem - 1px);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Ensure card footers have proper bottom radius */
.card .card-footer {
  background-color: #f8f9fc;
  border-top: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: calc(0.35rem - 1px);
  border-bottom-right-radius: calc(0.35rem - 1px);
}

/* Fix for cards without headers/footers */
.card:not(:has(.card-header)) .card-body:first-child {
  border-top-left-radius: calc(0.35rem - 1px);
  border-top-right-radius: calc(0.35rem - 1px);
}

.card:not(:has(.card-footer)) .card-body:last-child {
  border-bottom-left-radius: calc(0.35rem - 1px);
  border-bottom-right-radius: calc(0.35rem - 1px);
}

/* Add at the end of the existing CSS file */

/* ==========================================
   AUTHENTICATION PAGES STYLING
   ========================================== */

/* Background gradient for auth pages */
.bg-gradient-primary {
  background-color: var(--bg-primary);
  background-image: linear-gradient(180deg, var(--bg-primary) 10%, var(--sidebar-dark) 100%);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

/* Auth card styling */
.o-hidden {
  overflow: hidden;
}

/* Background images for auth pages */
.bg-login-image {
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.9) 0%, rgba(34, 74, 190, 0.9) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%234e73df" width="1200" height="800"/><g fill-opacity="0.1"><circle fill="%23fff" cx="200" cy="200" r="150"/><circle fill="%23fff" cx="1000" cy="600" r="200"/><circle fill="%23fff" cx="600" cy="400" r="180"/></g></svg>');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-password-image {
  background: linear-gradient(135deg, rgba(28, 200, 138, 0.9) 0%, rgba(20, 160, 110, 0.9) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231cc88a" width="1200" height="800"/><g fill-opacity="0.1"><rect fill="%23fff" x="100" y="100" width="200" height="200" rx="20"/><rect fill="%23fff" x="800" y="400" width="250" height="250" rx="20"/><rect fill="%23fff" x="400" y="300" width="180" height="180" rx="20"/></g></svg>');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* User form styling */
.form-control-user {
  font-size: 0.875rem;
  border-radius: 10rem;
  padding: 0.75rem 1rem;
}

.btn-user {
  font-size: 0.875rem;
  border-radius: 10rem;
  padding: 0.75rem 1rem;
}

/* Text colors */
.text-gray-900 {
  color: #3a3b45 !important;
}

.text-gray-800 {
  color: #5a5c69 !important;
}

.text-gray-500 {
  color: #858796 !important;
}

/* Auth page specific adjustments */
.card.shadow-lg {
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* Error pages */
.error {
  color: #5a5c69;
}

/* Custom checkbox styling */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--bg-primary);
  border-color: var(--bg-primary);
}

/* Responsive adjustments for auth pages */
@media (max-width: 991.98px) {
  .bg-gradient-primary {
    padding: 2rem 0;
  }
}

/* ==========================================
   STANDARD PAGE DESIGN - FROM PHOTOSHOOTS/DETAILS
   ========================================== */

/* Hover lift effect for interactive cards */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Object fit utilities */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Drag and drop zones */
.drop-zone {
    border: 3px dashed #6c757d;
    border-radius: 0.35rem;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    cursor: pointer;
}

.drop-zone.drag-over {
    border-color: #0d6efd;
    background-color: #e7f1ff;
    transform: scale(1.02);
}

/* Sortable/draggable cards */
.sortable-card {
    cursor: move;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sortable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    transform: scale(1.05);
}

/* Drag handle for sortable items */
.drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: move;
    z-index: 5;
}

/* Order badges */
.order-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.upload-success,
.fade-in {
    animation: fadeIn 0.5s;
}

/* Image preview buttons with overlay */
.image-preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.image-item:hover .image-preview-btn,
.hover-container:hover .image-preview-btn {
    opacity: 1;
}

/* Image overlay for hover effects */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.image-item:hover .image-overlay,
.hover-container:hover .image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Modal improvements */
.modal-dialog {
    max-width: 90%;
    margin: 30px auto;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 60px);
}

.modal-xl {
    max-width: 90%;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body.p-0 {
    padding: 0 !important;
}

/* Image details panel */
.image-details {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.image-details p {
    margin-bottom: 0.5rem;
}

.image-details strong {
    color: #495057;
}

/* Info boxes - the beautiful bordered sections */
.info-box {
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
    border-radius: 0.35rem;
    background-color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.info-box:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.info-box small {
    font-size: 0.875rem;
}

.info-box strong {
    font-weight: 600;
    color: #5a5c69;
}

/* Standard detail view label style */
.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.detail-value {
    color: #5a5c69;
    font-size: 0.9375rem;
}

/* Metadata display (timestamps, etc.) */
.metadata-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.metadata-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.metadata-item strong {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Page header card standardization */
.page-header-card .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-card .card-header h6 {
    font-size: 1.1rem;
}

/* Action button groups */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    white-space: nowrap;
}

/* Ensure consistent small button sizing */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

/* Badge styling in headers */
.card-header .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Progress bars in upload areas */
.progress {
    height: 1.5rem;
    border-radius: 0.35rem;
    background-color: #e9ecef;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Alert styling improvements */
.alert {
    border-radius: 0.35rem;
    border: 1px solid transparent;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Image grid standardization */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Responsive spacing utilities */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Text truncation */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
   SIDEBAR OFFCANVAS-LG FIX - Make Static on Desktop
   ========================================== */

/* Ensure offcanvas-lg is static and visible on large screens */
@media (min-width: 992px) {
  .offcanvas-lg {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: 1040 !important;
    display: flex !important;
    flex-direction: column;
    width: 260px !important;
    height: 100vh !important;
    border-right: none !important;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .offcanvas-lg .offcanvas-header,
  .offcanvas-lg .btn-close {
    display: none;
  }
  
  .offcanvas-lg .offcanvas-body {
    visibility: visible !important;
    overflow-y: auto;
  }

  /* Add left padding to content wrapper to account for fixed sidebar */
  #wrapper {
    padding-left: 0 !important;
  }

  #content-wrapper {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
  .sidebar {
    width: 260px !important;
  }

  #content-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
}
