/**
 * Cosmokod Admin - Modern Minimal (Refined Version)
 *
 * Balanced modernization that doesn't break existing UI
 * - Subtle shadows instead of heavy ones
 * - Indigo theme color (#6366f1)
 * - Improved spacing without breaking layouts
 * - Toned-down animations and effects
 *
 * @version 2.0.0
 */

/* ============================================================================
    GOOGLE FONTS - Inter (Modern, Clean, Professional)
   ============================================================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ============================================================================
    CSS VARIABLES - Default Theme Colors
   ============================================================================ */
:root {
  /* Default theme colors - can be overridden by PHP */
  --theme-color: #6366f1;
  --navbar-color: #00000000;
  --navbar-text-color: #ffffff;

  /* Font system */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* ============================================================================
    TYPOGRAPHY - Inter Font System
   ============================================================================ */

body,
html {
  font-family: var(--font-sans) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}

/* Improve number legibility */
.card-statistic-1 .card-body,
.table,
.badge,
.btn {
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   1. BORDER SYSTEM - Clean Minimal Outlines
   ============================================================================ */

/* Neutral grey colors for borders */
:root {
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
}

.card {
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
}

/* Stat cards - see full styling below in STATISTICS CARDS section */

.modal-content {
  box-shadow: none !important;
  border: 1px solid var(--border-medium) !important;
}

.navbar,
.main-navbar {
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-light) !important;
}

/* Navbar text and links - use CSS variable with dark default */
.navbar .nav-link,
.main-navbar .nav-link,
.navbar a,
.main-navbar a,
.navbar-nav .nav-link {
  color: var(--navbar-text-color, #475569) !important;
  transition: color 0.15s ease;
}

.navbar .nav-link:hover,
.main-navbar .nav-link:hover,
.navbar a:hover,
.main-navbar a:hover {
  color: var(--theme-color, #6366f1) !important;
}

/* Language switcher - use navbar text color */
.navbar .language-link,
.main-navbar .language-link,
.navbar [class*="language"],
.main-navbar [class*="language"] {
  color: var(--navbar-text-color, #475569) !important;
}

/* Navbar dropdown toggle */
.navbar .dropdown-toggle,
.main-navbar .dropdown-toggle {
  color: var(--navbar-text-color, #475569) !important;
}

.main-sidebar {
  box-shadow: none !important;
  border-right: 1px solid var(--border-light) !important;
  /* Hide scrollbar while keeping scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.main-sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Hide niceScroll scrollbar in sidebar */
.main-sidebar .nicescroll-rails,
.main-sidebar .nicescroll-cursors,
.main-sidebar > div[style*="position: absolute"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.btn {
  box-shadow: none !important;
  border: 1px solid transparent !important;
}

.btn-primary {
  border-color: var(--theme-color, #6366f1) !important;
}

.btn-secondary,
.btn-outline-secondary {
  border-color: var(--border-light) !important;
}

.btn:hover {
  box-shadow: none !important;
}

.btn:focus,
.btn:active {
  box-shadow: none !important;
  outline: 2px solid rgba(99, 102, 241, 0.2) !important;
  outline-offset: 2px !important;
}

.alert {
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
  border-left-width: 3px !important;
}

/* Bootstrap Table - Rounded corners and modern styling */
.fixed-table-container {
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.bootstrap-table .search input {
  background: #ffffff !important;
  border: 1px solid var(--border-light) !important;
  color: #0f172a !important;
  border-radius: 8px;
  padding: 8px 12px;
}

.bootstrap-table .search input:focus {
  /* border-color: var(--theme-color, #6366f1) !important; */
  outline: 2px solid rgba(99, 102, 241, 0.2) !important;
  outline-offset: 0px !important;
}

/*
============================================================================
  2. COLOR SYSTEM - Indigo Theme (#6366f1)
============================================================================
*/

/* Backgrounds */
.bg-primary {
  background-color: #6366f1 !important;
}

/* Text */
.text-primary {
  color: #6366f1 !important;
}

/* Links - NO !important to avoid breaking everything */
a {
  color: #6366f1;
}

a:hover {
  color: #4f46e5;
}

/* Buttons */
.btn-primary {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}

.btn-primary:active {
  background-color: #4338ca !important;
  border-color: #4338ca !important;
}

.btn-outline-primary {
  color: #6366f1 !important;
  border-color: #6366f1 !important;
}

.btn-outline-primary:hover {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

/* Badges */
.badge-primary {
  background-color: #6366f1 !important;
}

/* Form controls focus - see full styling in FORMS section below */

/* Custom checkbox/radio */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

/* Pagination */
.page-item.active .page-link {
  background-color: #6366f1 !important;
  border-color: #6366f1 !important;
}

/* Nav pills/tabs */
.nav-pills .nav-link.active {
  background-color: #6366f1 !important;
}

/* Sidebar Navigation - Clean Modern Design */
.sidebar-menu li a {
  transition: all 0.15s ease;
  border-radius: 0 6px 6px 0;
  margin: 2px 8px 2px 0;
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(99, 102, 241, 0.3);
}

.sidebar-menu li.active > a,
.sidebar-menu li a.active {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--theme-color, #6366f1);
  color: #ffffff;
  font-weight: 500;
}

.sidebar-menu li.active > a:hover,
.sidebar-menu li a.active:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Progress bars */
.progress-bar {
  background-color: #6366f1 !important;
}

/* Stat card icons - see full styling in STATISTICS CARDS section below */

/* Border colors */
.border-primary {
  border-color: #6366f1 !important;
}

/* ============================================================================
   3. COMPONENT REFINEMENTS - Balanced Improvements
   ============================================================================ */

/* --- BUTTONS - Subtle hover effect --- */
.btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

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

/* Update other button colors */
.btn-success {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #059669 !important;
  border-color: #059669 !important;
}

.btn-danger {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.btn-warning {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
}

.btn-info {
  background-color: #06b6d4 !important;
  border-color: #06b6d4 !important;
}

.btn-info:hover,
.btn-info:focus {
  background-color: #0891b2 !important;
  border-color: #0891b2 !important;
}

/* --- FORMS - Clean and simple --- */
.form-control,
.custom-select {
  border: 1px solid var(--border-light) !important;
  border-radius: 6px;
  transition: all 0.15s ease;
  box-shadow: none !important;
}

.form-control:hover,
.custom-select:hover {
  border-color: var(--border-medium) !important;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--theme-color, #6366f1) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #94a3b8;
}

/* --- CARDS - Subtle improvements --- */
.card {
  border-radius: 16px;
  /* margin-bottom: 12px; */
}

.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 8px 8px 0 0;
}

.card-body {
  background-color: #ffffff;
}

/* ============================================================================
   STATISTICS CARDS - Clean Minimal Design
   ============================================================================ */

.section-body a:hover {
  text-decoration: none !important;
}

/* ROW: cross axis alignment: center, main axis alignment: start */
.card-statistic-1 {
  transition: all 0.2s ease;
  border-radius: 12px !important;
  border: 1px solid var(--border-light) !important;
  padding: 16px !important;
  background: #ffffff !important;
  position: relative;
  overflow: visible;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.card-statistic-1:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium) !important;
}

/* Icon styling - clean solid colored squares */
.card-statistic-1 .card-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  margin-right: 16px !important;
  flex-shrink: 0 !important;
}

/* COLUMN: main axis alignment: center, cross axis alignment: start */
.card-statistic-1 .card-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  flex: 1 !important;
  gap: 4px !important;
}

/* Header contains title */
.card-statistic-1 .card-header {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.card-statistic-1 .card-header h4 {
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Value - large and bold */
.card-statistic-1 .card-body {
  padding: 0 !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #0f172a !important;
}

/* ============================================================================
   CHART TABS - Modern segmented control style
   ============================================================================ */

.chart-tabs .nav-link {
  color: #64748b !important;
  background-color: transparent !important;
  border: none !important;
}

.chart-tabs .nav-link:hover {
  color: #475569 !important;
  background-color: #f1f5f9 !important;
}

.chart-tabs .nav-link.active {
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* --- TABLES - Rounded corners and modern styling --- */
.table {
  box-shadow: none !important;
  border-collapse: separate;
  border-spacing: 0;
  border: none !important;
  margin-bottom: 0 !important;
}

/* Wrapper for proper rounded corners */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light) !important;
}

.table thead th {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
}

.table tbody td {
  border-top: 1px solid var(--border-light) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  color: #0f172a;
  padding: 12px 16px;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(248, 250, 252, 0.5);
}

/* --- BADGES - Ensure they're visible --- */
.badge {
  font-weight: 500;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
}

/* Keep solid badges for better visibility */
.badge-primary {
  background-color: #6366f1 !important;
  color: #ffffff !important;
}

.badge-success {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.badge-danger {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

.badge-warning {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}

.badge-info {
  background-color: #06b6d4 !important;
  color: #ffffff !important;
}

/* --- ALERTS - Clean with left border --- */
.alert {
  border: 1px solid;
  border-left-width: 4px;
  border-radius: 6px;
  padding: 16px 20px;
}

.alert-primary {
  border-color: #c7d2fe;
  border-left-color: #6366f1;
  background-color: #eef2ff;
  color: #4338ca;
}

.alert-success {
  border-color: #bbf7d0;
  border-left-color: #10b981;
  background-color: #dcfce7;
  color: #15803d;
}

.alert-danger {
  border-color: #fecaca;
  border-left-color: #ef4444;
  background-color: #fee2e2;
  color: #b91c1c;
}

.alert-warning {
  border-color: #fde68a;
  border-left-color: #f59e0b;
  background-color: #fef3c7;
  color: #b45309;
}

.alert-info {
  border-color: #a5f3fc;
  border-left-color: #06b6d4;
  background-color: #cffafe;
  color: #0e7490;
}

/* --- PAGINATION - Clean and modern --- */
.page-link {
  background-color: #ffffff;
  border: 1px solid var(--border-light) !important;
  color: #475569;
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 4px;
  box-shadow: none !important;
}

.page-link:hover {
  background-color: #f8fafc;
  border-color: var(--border-medium) !important;
  color: #0f172a;
}

.page-item.active .page-link {
  background-color: var(--theme-color, #6366f1) !important;
  border-color: var(--theme-color, #6366f1) !important;
  color: #ffffff !important;
}

.page-item.disabled .page-link {
  background-color: #f8fafc;
  border-color: var(--border-light) !important;
  color: #cbd5e1;
}

/* --- DROPDOWNS - Clean and simple --- */
.dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid var(--border-light, #e5e7eb) !important;
  border-radius: 8px;
  padding: 8px;
  box-shadow: none !important;
  min-width: 200px;
}

.dropdown-item {
  color: #475569;
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dropdown-item i,
.dropdown-item em {
  width: 20px;
  margin-right: 10px;
  font-size: 14px;
  color: #64748b;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

div.dropdown-menu.show > a.dropdown-item.active {
  background-color: var(--border-medium);
  color: white;
}

/* .dropdown-item:hover i {
  color: var(--theme-color, #6366f1);
} */

.dropdown-item:active,
.dropdown-item.active {
  background-color: var(--theme-color, #6366f1);
  color: #ffffff;
}

.dropdown-item:active i,
.dropdown-item:active em,
.dropdown-item.active i,
.dropdown-item.active em {
  color: #ffffff;
}

/* Navbar Dropdowns - Specific styling for navbar */
.navbar .dropdown-menu,
.navbar .dropdown-menu-right {
  /* margin-top: 8px; */
  background-color: #ffffff;
  border: 1px solid var(--border-light, #e5e7eb);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

/* Dropdown divider */
.dropdown-divider {
  margin: 6px 0;
  border-top: 1px solid var(--border-light, #e5e7eb);
}

/* Dropdown header */
.dropdown-header {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- MODALS - Clean styling --- */
.modal-content {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.modal-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header .modal-title {
  color: #0f172a;
  font-weight: 600;
}

.modal-body {
  background-color: #ffffff;
  color: #475569;
}

.modal-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* --- NAV TABS/PILLS --- */
.nav-tabs {
  border-bottom: 1px solid var(--border-light);
}

.nav-tabs .nav-link {
  border: none;
  color: #64748b;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-tabs .nav-link:hover {
  color: #475569;
  border-bottom-color: var(--border-light);
}

.nav-tabs .nav-link.active {
  color: var(--theme-color, #6366f1);
  border-bottom-color: var(--theme-color, #6366f1);
  background-color: transparent;
}

/* Pills */
/* .nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #6777ef;
}

.nav-pills .nav-item .nav-link {
  /* color: var(--theme-color); */
/* color: #374151 !important;
  padding: 0px 12px !important;
}

.nav-pills .nav-item .nav-link:hover {
  background-color: #6777ef6b !important;
  color: #6777ef !important;
}

.nav-pills .nav-item .nav-link.active {
  box-shadow: 0 2px 6px var(--theme-color)6b;
  color: #fff !important;
  background-color: var(--theme-color);
} */

/* --- BREADCRUMB --- */
.breadcrumb {
  background-color: transparent;
}

.breadcrumb-item {
  color: #64748b;
}

.breadcrumb-item.active {
  color: #0f172a;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #6366f1;
}

/* ============================================================================
   4. SPACING IMPROVEMENTS - Balanced, not aggressive
   ============================================================================ */

/* Better card spacing */
.card-header {
  padding: 20px 24px;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  background-color: transparent;
  border-top: 1px solid var(--border-light) !important;
}

/* Section spacing */
.section-header {
  margin-bottom: 24px;
}

/* Form group spacing */
.form-group label {
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #374151;
}

/* Button spacing - only when not in button group */
.btn + .btn:not(.btn-group .btn) {
  margin-left: 8px;
}

/* Modal spacing */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light) !important;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light) !important;
}

/* Dropdown spacing */
.dropdown-menu {
  padding: 8px;
}

.dropdown-item {
  padding: 10px 16px;
  margin-bottom: 2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   5. TEXT & TYPOGRAPHY - Ensure readability
   ============================================================================ */

/* Ensure all text is readable */
body {
  color: #374151;
}

.card-header h4 {
  color: #0f172a;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 0;
}

/* Table text must be visible */
.table {
  color: #374151;
}

.table thead th {
  color: #475569;
}

.table tbody td {
  color: #0f172a;
}

/* Form labels must be visible */
.form-label,
label {
  color: #374151;
}

/* Sidebar dropdown menus */
.sidebar-menu .dropdown-menu {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar-menu .dropdown-menu li a {
  margin: 2px 8px 2px 16px;
  padding-left: 24px !important;
  font-size: 13px;
  border-radius: 0 6px 6px 0;
  border-left: 3px solid transparent;
}

.sidebar-menu .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: rgba(99, 102, 241, 0.3);
}

.sidebar-menu .dropdown-menu li.active > a,
.sidebar-menu .dropdown-menu li a.active {
  background-color: rgba(255, 255, 255, 0.05);
  border-left-color: var(--theme-color, #6366f1);
  color: #ffffff;
}

/* ============================================================================
   6. RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .card-body {
    padding: 20px;
  }

  .card-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}

/* ============================================================================
   7. LAYOUT STRUCTURE - Modern Minimal Layout System
   ============================================================================ */

/* Navbar - Clean fixed header */
.navbar {
  height: 70px;
  left: 250px;
  right: 0;
  position: fixed;
  top: 0;
  z-index: 880;
  transition: all 0.3s ease;
  background-color: var(--navbar-color, #ffffff);
  box-shadow: none !important;
  border-bottom: 1px solid var(--border-light, #e5e7eb) !important;
}

.navbar .navbar-brand {
  color: var(--navbar-text-color, #0f172a);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* Navbar text and links - adapt to background */
.navbar .nav-link,
.main-navbar .nav-link,
.navbar a:not(.navbar-brand),
.main-navbar a:not(.navbar-brand),
.navbar-nav .nav-link {
  color: var(--navbar-text-color, #475569) !important;
  transition: color 0.15s ease;
}

/* .navbar .nav-link:hover,
.main-navbar .nav-link:hover,
.navbar a:not(.navbar-brand):hover,
.main-navbar a:not(.navbar-brand):hover {
  color: var(--theme-color, #6366f1) !important;
} */

div.dropdown-menu.dropdown-menu-right.show > a:hover {
  background-color: var(--border-light, #6366f1) !important;
}

/* Navbar dropdown toggle */
.navbar .dropdown-toggle,
.main-navbar .dropdown-toggle {
  color: var(--navbar-text-color, #475569) !important;
}

/* Main Sidebar - Clean modern sidebar */
.main-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background-color: #1f2937;
  z-index: 880;
  overflow-x: hidden;
  overflow-y: auto;
  transition: all 0.3s ease;
}

/* Main Content - Spacious content area */
.main-content {
  padding-left: 280px;
  padding-right: 30px;
  padding-top: 90px;
  padding-bottom: 30px;
  width: 100%;
  min-height: 100vh;
  background-color: #f8fafc;
  transition: all 0.3s ease;
}

/* Main Footer - Clean minimal footer */
.main-footer {
  padding: 20px 30px 20px 280px;
  margin-top: 40px;
  color: #64748b;
  font-size: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.main-footer .footer-left {
  flex: 1;
}

.main-footer .footer-right {
  text-align: right;
}

.simple-footer {
  text-align: center;
  margin: 40px 0;
  color: #64748b;
}

.footer_dev_link {
  color: var(--theme-color, #6366f1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer_dev_link:hover {
  color: #4f46e5;
  text-decoration: none;
}

/* ============================================================================
   8. SIDEBAR COMPONENTS - Modern Clean Navigation
   ============================================================================ */

/* Sidebar Brand - Logo area */
.main-sidebar .sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-sidebar .sidebar-brand.sidebar-brand-sm {
  display: none;
}

.main-sidebar .sidebar-brand a {
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffffff;
}

#full_logo {
  max-width: 180px;
  height: auto;
}

/* Sidebar User Info */
.main-sidebar .sidebar-user {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-sidebar .sidebar-user .sidebar-user-picture {
  float: left;
  margin-right: 12px;
}

.main-sidebar .sidebar-user .sidebar-user-picture img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Sidebar Menu - Clean navigation */
.main-sidebar .sidebar-menu {
  padding: 12px 0;
  margin: 0;
  list-style: none;
}

.main-sidebar .sidebar-menu li {
  display: block;
}

.main-sidebar .sidebar-menu li.menu-header {
  padding: 16px 16px 8px 16px;
  /*color: #9ca3af;*/
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-sidebar .sidebar-menu li.menu-header:not(:first-child) {
  margin-top: 16px;
}

/* Menu Items - Modern clean style matching sidebar-menu from earlier */
.main-sidebar .sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.main-sidebar .sidebar-menu li a i,
.main-sidebar .sidebar-menu li a em {
  width: 24px;
  margin-right: 12px;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
  /*color: #9ca3af;*/
  transition: color 0.15s ease;
}

.main-sidebar .sidebar-menu li a span {
  flex: 1;
}

.main-sidebar .sidebar-menu li a .badge {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Hover state */
.main-sidebar .sidebar-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.main-sidebar .sidebar-menu li a:hover i,
.main-sidebar .sidebar-menu li a:hover em {
  color: #ffffff;
}

/* Active state - uses the clean border style from earlier */
.main-sidebar .sidebar-menu li.active > a {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  /* border-left: 3px solid var(--theme-color, #6366f1); */
}

.main-sidebar .sidebar-menu li.active > a i,
.main-sidebar .sidebar-menu li.active > a em {
  /* color: var(--theme-color, #6366f1); */
  color: #ffffff;
}

/* Dropdown arrow */
.main-sidebar .sidebar-menu li a.has-dropdown:after {
  content: "\f105";
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.3s ease;
}

.main-sidebar .sidebar-menu li.active > a.has-dropdown:after {
  transform: rotate(90deg);
}

/* Dropdown Menu */
.main-sidebar .sidebar-menu li ul.dropdown-menu {
  padding: 0;
  margin: 0;
  display: none;
  list-style: none;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 0;
  border: none;
}

.main-sidebar .sidebar-menu li.active > ul.dropdown-menu {
  display: block;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a {
  padding: 10px 16px 10px 52px;
  font-size: 13px;
  font-weight: 400;
  color: #d1d5db;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.main-sidebar .sidebar-menu li ul.dropdown-menu li.active > a {
  color: #ffffff;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--theme-color, #6366f1);
}

/* Nested dropdowns */
.main-sidebar .sidebar-menu li ul.dropdown-menu li ul.dropdown-menu li a {
  padding-left: 68px;
}

/* ============================================================================
   9. SECTION COMPONENTS - Modern Page Headers
   ============================================================================ */

.section {
  position: relative;
  margin-bottom: 24px;
}

.section > *:first-child {
  margin-top: 0;
}

/* Section Header - Clean minimal header */
.section .section-header {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light, #e5e7eb);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section .section-header h1 {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  color: #0f172a;
  flex: 1;
}

.section .section-header .section-header-back {
  order: -1;
}

.section .section-header .section-header-button {
  margin-left: auto;
}

.section .section-header .section-header-breadcrumb {
  margin-left: auto;
}

.section .section-header .section-header-breadcrumb .breadcrumb-item {
  font-size: 13px;
  color: #64748b;
}

.section .section-header .btn {
  font-size: 13px;
}

/* Section Title - Clean title with accent */
.section .section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 16px 0;
  padding-left: 16px;
  border-left: 4px solid var(--theme-color, #6366f1);
}

.section .section-title + .section-lead {
  margin-top: 8px;
}

.section .section-lead {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  padding-left: 20px;
}

/* ============================================================================
   10. BODY STATES - Sidebar Responsive Behaviors
   ============================================================================ */

/* Sidebar Gone - Hidden sidebar */
body.sidebar-gone .main-sidebar {
  left: -250px;
}

body.sidebar-gone .navbar,
body.sidebar-gone .main-content,
body.sidebar-gone .main-footer {
  padding-left: 30px;
  left: 0;
}

/* Sidebar Mini - Collapsed sidebar */
body.sidebar-mini .hide-sidebar-mini {
  display: none !important;
}

body.sidebar-mini .main-sidebar {
  width: 72px;
}

body.sidebar-mini .main-sidebar .sidebar-brand {
  display: none;
}

body.sidebar-mini .main-sidebar .sidebar-brand-sm {
  display: flex;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li > a {
  justify-content: center;
  padding: 12px;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li > a i,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a em {
  margin: 0;
  font-size: 20px;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li > a span,
body.sidebar-mini .main-sidebar .sidebar-menu > li > a .badge {
  display: none;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li > a.has-dropdown:after {
  display: none;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li.menu-header {
  height: 1px;
  padding: 0;
  margin: 12px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 0;
}

/* Mini sidebar dropdown on hover */
body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu {
  position: absolute;
  left: 72px;
  top: 0;
  min-width: 220px;
  background-color: #1f2937;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li:hover > ul.dropdown-menu {
  display: block;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li ul.dropdown-menu li a {
  padding-left: 16px;
}

body.sidebar-mini .navbar {
  left: 72px;
}

body.sidebar-mini .main-content,
body.sidebar-mini .main-footer {
  padding-left: 102px;
}

/* ============================================================================
   11. RESPONSIVE LAYOUT - Mobile & Tablet Adjustments
   ============================================================================ */

@media (max-width: 1024px) {
  .sidebar-gone-hide {
    display: none !important;
  }

  .sidebar-gone-show {
    display: block !important;
  }

  .main-sidebar {
    left: -250px;
    z-index: 891;
  }

  .navbar {
    left: 0 !important;
    right: 0;
  }

  .main-content {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .main-footer {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Mobile sidebar overlay */
  body.sidebar-show .main-sidebar {
    left: 0;
  }

  body.sidebar-show:before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 890;
    animation: fadeIn 0.3s ease;
  }

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

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

  .section .section-header {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 100px;
  }

  .section .section-title {
    font-size: 18px;
  }

  .section .section-header h1 {
    font-size: 18px;
  }

  .main-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .main-footer .footer-left,
  .main-footer .footer-right {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .section .section-title {
    font-size: 16px;
  }

  .section .section-header {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .section .section-header h1 {
    font-size: 16px;
  }
}

.mce-tinymce {
  border-radius: 8px !important;
  box-shadow: none !important;
  border: 1px solid var(--border-light) !important;
}

.mce-container-body {
  border-radius: 8px;
}

.row-between-center {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ============================================================================
   END OF REFINED MODERN MINIMAL CSS
   ============================================================================ */
