﻿/* ========================================
   Unified Dashboard Style - Optimized
   ======================================== */

:root {
    /* Colors */
    --primary: #1b4063;
    --primary-dark: #0f2a42;
    --primary-light: #2a5a82;
    --secondary: #81a441;
    --secondary-dark: #6fa839;
    --secondary-light: #a8d55f;
    --light-bg: #f8f9fa;
    --lighter-bg: #ffffff;
    --border: #e9ecef;
    --text-dark: #2b2d3b;
    --text-light: #6c757d;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0891b2;
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(27, 64, 99, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(27, 64, 99, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(27, 64, 99, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(27, 64, 99, 0.2);
    --shadow-hover: rgba(27, 64, 99, 0.2);
    /* Transitions */
    --transition: 300ms ease;
}


/* ===== Global ===== */

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

html,
body {
    font-family: 'Cairo', 'Droid Arabic Kufi', 'Hacen Liner XL', -apple-system, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    direction: rtl;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ===== Header ===== */

.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-lg);
    height: 60px;
    border-bottom: 3px solid var(--secondary);
}

.main-header .logo {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    float: right;
    width: 250px;
}

.main-header .logo:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.main-header .logo img {
    max-height: 45px;
    transition: var(--transition);
}

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

.main-header .navbar {
    background: #0F2840 !important;
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.navbar-custom-menu {
    float: right !important;
}

.navbar-custom-menu .navbar-nav>li>a {
    color: rgba(255, 255, 255, 0.85);
    padding: 20px 15px;
    font-size: 14px;
    transition: var(--transition);
    height: 60px;
    line-height: 20px;
    border-bottom: 3px solid transparent;
}

.navbar-custom-menu .navbar-nav>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-light);
    border-bottom-color: var(--secondary);
}

.navbar-custom-menu .navbar-nav>li>a .fa {
    font-size: 18px;
    margin-left: 8px;
}

.user-menu .user-image {
    border: 2px solid var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(146, 195, 76, 0.3);
}

.skin-blue .main-header .navbar .navbar-custom-menu>.nav {
    margin-right: 10px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}


/* ===== Sidebar ===== */

/* ========== السايدبار الاحترافي - إضافة للكود الموجود ========== */

:root {
  --sidebar-width: 280px;
  --sidebar-collapsed: 70px;
  --sidebar-bg: linear-gradient(180deg, #0c2340 0%, #132f52 50%, #0a1e36 100%);
  --sidebar-bg-solid: #0f2a42;
  --sidebar-dark: #0a1e36;
  --primary: #4db8a4;
  --primary-hover: #3a9e8b;
  --accent: #e8b84b;
  --text-light: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.5);
  --border-color: rgba(255,255,255,0.08);
}

/* ========== السايدبار الأساسي ========== */
.main-sidebar {
  position: fixed;
  top: 60px !important;
  right: 0;
  width: var(--sidebar-collapsed);
  height: calc(100vh - 60px) !important;
  background: var(--sidebar-bg) !important;
  background-color: var(--sidebar-bg-solid) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 1050;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  overflow: hidden !important;
  padding-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 250px !important;
  font-family: 'Cairo', 'Droid Arabic Kufi', sans-serif !important;
}

/* عند الفتح */
.main-sidebar.sidebar-open {
  width: var(--sidebar-width) !important;
  width: 250px !important;
}

/* الـ sidebar section */
.main-sidebar .sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ========== بطاقة المستخدم ========== */
.main-sidebar .user-panel {
  padding: 18px 12px !important;
  background: linear-gradient(135deg, rgba(77,184,164,0.12), rgba(232,184,75,0.08)) !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: all 0.4s ease;
  text-align: center;
  min-height: 90px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px !important;
  border-radius: 12px !important;
}

.main-sidebar .user-panel .pull-left.image {
  float: none !important;
  margin: 0 auto 8px !important;
  text-align: center;
}

.main-sidebar .user-panel .image img,
.main-sidebar .user-panel img.img-circle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50%;
  border: 2.5px solid var(--accent) !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(232,184,75,0.25);
}

.main-sidebar.sidebar-open .user-panel .image img,
.main-sidebar.sidebar-open .user-panel img.img-circle {
  width: 58px !important;
  height: 58px !important;
}

/* إخفاء النصوص عند الإغلاق */
.main-sidebar .user-panel > div:not(.image) {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.main-sidebar.sidebar-open .user-panel > div:not(.image) {
  opacity: 1;
  max-height: 100px;
  margin-top: 5px;
}

.main-sidebar .user-panel p {
  margin: 0 !important;
  padding: 0;
  font-size: 13px !important;
  color: #fff !important;
  font-family: 'Cairo', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

.main-sidebar .user-panel a {
  color: var(--accent) !important;
  text-decoration: none;
  font-size: 11px !important;
  font-family: 'Cairo', sans-serif !important;
}

.main-sidebar .user-panel .text-success {
  color: #4ade80 !important;
}

/* ========== نموذج البحث ========== */
.main-sidebar .sidebar-form {
  padding: 8px !important;
  border-bottom: 1px solid var(--border-color) !important;
  transition: all 0.3s ease;
}

.main-sidebar .sidebar-form .input-group {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}

.main-sidebar .sidebar-form input {
  opacity: 0;
  width: 0 !important;
  padding: 0 !important;
  transition: all 0.3s ease;
  background: transparent !important;
  border: none !important;
  color: #fff;
  font-size: 12px;
}

.main-sidebar.sidebar-open .sidebar-form input {
  opacity: 1;
  width: 100% !important;
  padding: 8px 10px !important;
}

.main-sidebar .sidebar-form .btn {
  background: var(--accent) !important;
  border: none !important;
  color: var(--sidebar-dark) !important;
  padding: 8px 12px !important;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-height: auto !important;
  width: 100% !important;
  height: 50px;
  font-weight: 600;
}

.main-sidebar.sidebar-open .sidebar-form .btn {
  border-radius: 0;
  width: 100% !important;
  height: 100% !important;
}

.main-sidebar .sidebar-form .btn:hover {
  background: var(--primary-hover) !important;
}

/* ========== القائمة الرئيسية ========== */
.main-sidebar .sidebar-menu {
  list-style: none;
  padding: 8px 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1;
  height: 100%;
  max-height: calc(100vh - 260px);
}

.main-sidebar .sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(232,184,75,0.4);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.main-sidebar .sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(232,184,75,0.6);
}

.main-sidebar .sidebar-menu > li {
  position: relative;
  margin: 2px 0 !important;
}

.main-sidebar .sidebar-menu > li > a {
  display: flex !important;
  align-items: center;
  padding: 10px 12px !important;
  color: #fff !important;
  text-decoration: none;
  transition: all 0.3s ease;
  border-right: 3px solid transparent !important;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  opacity: 1 !important;
}

.main-sidebar .sidebar-menu > li > a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(77,184,164,0.15));
  transition: width 0.3s ease;
  z-index: 0;
}

.main-sidebar .sidebar-menu > li > a:hover::before {
  width: 100%;
}

.main-sidebar .sidebar-menu > li > a:hover {
  background: rgba(77,184,164,0.12) !important;
  border-right-color: var(--accent) !important;
  padding-right: 15px !important;
}

.main-sidebar .sidebar-menu > li > a:hover font,
.main-sidebar .sidebar-menu > li > a:hover span {
  color: #fff !important;
  opacity: 1 !important;
}

.main-sidebar .sidebar-menu > li.active > a {
  background: linear-gradient(90deg, rgba(232,184,75,0.2), rgba(77,184,164,0.1)) !important;
  border-right-color: var(--accent) !important;
  font-weight: 600;
}

.main-sidebar .sidebar-menu > li.active > a font,
.main-sidebar .sidebar-menu > li.active > a span {
  color: #fff !important;
  font-weight: 600 !important;
}

/* الأيقونات */
.main-sidebar .sidebar-menu > li > a > i,
.main-sidebar .sidebar-menu > li > a > .fa {
  width: 35px !important;
  font-size: 18px !important;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-left: 0 !important;
}

/* النصوص */
.main-sidebar .sidebar-menu > li > a > span,
.main-sidebar .sidebar-menu > li > a > font {
  opacity: 1 !important;
  width: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin-right: 0 !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
}

.main-sidebar.sidebar-open .sidebar-menu > li > a > span,
.main-sidebar.sidebar-open .sidebar-menu > li > a > font {
  opacity: 1;
  width: auto;
  margin-right: 5px !important;
}

/* Labels (الأرقام) */
.main-sidebar .sidebar-menu .label {
  padding: 2px 6px !important;
  font-size: 9px !important;
  border-radius: 10px;
  margin-left: auto;
  opacity: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.main-sidebar.sidebar-open .sidebar-menu .label {
  opacity: 1;
}

/* السهم للقوائم الفرعية */
.main-sidebar .sidebar-menu .treeview > a > .pull-left {
  position: absolute;
  left: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 12px !important;
}

.main-sidebar.sidebar-open .sidebar-menu .treeview > a > .pull-left {
  opacity: 1;
}

.main-sidebar .sidebar-menu .treeview.active > a > .pull-left {
  transform: rotate(-90deg) !important;
}

/* ========== القوائم الفرعية ========== */
.main-sidebar .treeview-menu {
  background: rgba(0,0,0,0.2) !important;
  border-right: 3px solid var(--accent) !important;
  padding: 0 !important;
  overflow: hidden;
  list-style: none;
  display: none; /* JavaScript يتحكم */
}

.main-sidebar .treeview.active > .treeview-menu {
  display: block;
  padding: 5px 0 !important;
}

/* إخفاء القوائم الفرعية عند الإغلاق */
.main-sidebar:not(.sidebar-open) .treeview-menu {
  max-height: 0 !important;
}

.main-sidebar .treeview-menu > li > a {
  padding: 8px 12px 8px 45px !important;
  color: rgba(255,255,255,0.7) !important;
  display: flex !important;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif !important;
  font-size: 12px !important;
}

.main-sidebar .treeview-menu > li > a:hover {
  background: rgba(232,184,75,0.12) !important;
  color: var(--accent) !important;
  padding-right: 15px !important;
}

.main-sidebar .treeview-menu > li > a font {
  font-family: 'Cairo', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.main-sidebar .treeview-menu > li > a:hover font {
  color: var(--accent) !important;
}

.main-sidebar .treeview-menu > li.active > a,
.main-sidebar .treeview-menu > li.active > a font {
  color: var(--accent) !important;
  font-weight: 600 !important;
}

.main-sidebar .treeview-menu > li > a > .fa,
.main-sidebar .treeview-menu > li > a > i {
  margin-left: 8px !important;
  font-size: 11px !important;
}

/* ========== Tooltip للأيقونات ========== */
.main-sidebar:not(.sidebar-open) .sidebar-menu > li > a {
  position: relative;
}

.main-sidebar:not(.sidebar-open) .sidebar-menu > li > a::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  font-family: 'Droid Arabic Kufi', Arial, sans-serif;
}

.main-sidebar:not(.sidebar-open) .sidebar-menu > li > a:hover::after {
  opacity: 1;
  right: 80px;
}

/* ========== المحتوى الرئيسي ========== */
.content-wrapper {
  margin-right: var(--sidebar-collapsed) !important;
  transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 20px;
  margin-top: 60px;
}

.main-sidebar.sidebar-open ~ .content-wrapper {
  margin-right: var(--sidebar-width) !important;
}

.main-footer {
  margin-right: var(--sidebar-collapsed) !important;
  transition: margin-right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.main-sidebar.sidebar-open ~ .main-footer {
  margin-right: var(--sidebar-width) !important;
}

/* ========== زر Toggle ========== */
.sidebar-toggle {
  position: relative !important;
  background: rgba(232,184,75,0.15) !important;
  padding: 12px 15px !important;
  margin: 8px !important;
  border-radius: 8px !important;
  color: var(--accent) !important;
  text-decoration: none;
  transition: all 0.3s ease !important;
  float: right;
}

.sidebar-toggle:hover {
  background: rgba(232,184,75,0.25) !important;
  transform: scale(1.05);
}

.sidebar-toggle i {
  font-size: 18px;
  transition: all 0.3s ease;
}

.main-sidebar.sidebar-open ~ header .sidebar-toggle i {
  transform: rotate(180deg);
}

/* ========== Overlay للموبايل ========== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== Responsive للموبايل ========== */
@media (max-width: 768px) {
  .main-sidebar {
    transform: translateX(100%);
    width: 280px !important;
  }
  
  .main-sidebar.sidebar-open {
    transform: translateX(0);
  }
  
  .content-wrapper,
  .main-footer {
    margin-right: 0 !important;
  }
}

/* ========== Animations ========== */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-sidebar.sidebar-open .sidebar-menu > li {
  animation: slideIn 0.3s ease forwards;
}

.main-sidebar.sidebar-open .sidebar-menu > li:nth-child(1) { animation-delay: 0.03s; }
.main-sidebar.sidebar-open .sidebar-menu > li:nth-child(2) { animation-delay: 0.06s; }
.main-sidebar.sidebar-open .sidebar-menu > li:nth-child(3) { animation-delay: 0.09s; }
.main-sidebar.sidebar-open .sidebar-menu > li:nth-child(4) { animation-delay: 0.12s; }
.main-sidebar.sidebar-open .sidebar-menu > li:nth-child(5) { animation-delay: 0.15s; }

/* ========== Header العنوان ========== */
.main-sidebar .sidebar-menu .header {
  padding: 8px 12px !important;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
}

.main-sidebar.sidebar-open .sidebar-menu .header {
  opacity: 1;
}

/* ========== تحسينات إضافية ========== */
.main-sidebar .control-sidebar-bg {
  display: none;
}

/* تأكد من ظهور الأيقونات دائماً */
.main-sidebar .sidebar-menu > li > a > i:first-child,
.main-sidebar .sidebar-menu > li > a > .fa:first-child {
  display: inline-block !important;
  opacity: 1 !important;
}

/* إصلاح br tags */
.main-sidebar br {
  display: none;
}

.treeview-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(232, 184, 75, 0.03);
    display: none;
    border-right: 3px solid var(--accent, #e8b84b);
}

.treeview.active>.treeview-menu {
    display: block;
}

.treeview-menu>li>a {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 40px;
    color: var(--text-light);
    transition: var(--transition);
    font-size: 13px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
}

.treeview-menu>li>a:hover {
    background: rgba(232, 184, 75, 0.1);
    color: var(--accent, #e8b84b);
    padding-right: 45px;
}

.treeview-menu>li>a>.fa {
    margin-left: 10px;
    font-size: 12px;
}


/* ===== Content ===== */

.content-wrapper {
    margin-right: 250px;
    padding: var(--space-2xl);
    min-height: calc(100vh - 60px);
    background: var(--light-bg);
    transition: var(--transition);
    flex: 1;
}

.content-header {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    color: #fff;
}

.content-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.content-header h1 small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    display: block;
    margin-top: 4px;
    font-weight: 400;
}


/* ===== Boxes/Cards ===== */

.box,
.box-info {
    background: var(--lighter-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.box:hover,
.box-info:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.box-header {
    padding: 16px 20px;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.box-header .box-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.box-body {
    padding: 30px;
    background: #fff;
}

.box-info .box-header,
.box-success .box-header,
.box-warning .box-header,
.box-danger .box-header {
    color: white;
}

.box-info .box-header {
    background: linear-gradient(135deg, var(--info), #0e7490);
    border-bottom-color: #0a4f5e;
}

.box-success .box-header {
    background: linear-gradient(135deg, var(--success), #15803d);
    border-bottom-color: #0f6730;
}

.box-warning .box-header {
    background: linear-gradient(135deg, var(--warning), #d97706);
    border-bottom-color: #b45309;
}

.box-danger .box-header {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    border-bottom-color: #7f1d1d;
}

.box-info .box-header .box-title,
.box-success .box-header .box-title,
.box-warning .box-header .box-title,
.box-danger .box-header .box-title {
    color: white;
}


/* ===== Dashboard Components ===== */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
}

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

.dashboard-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.dashboard-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--lighter-bg);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), transparent);
    border-radius: 0 20px 0 100%;
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.stat-icon.pages {
    background: linear-gradient(135deg, #81A241, #194163);
}

.stat-icon.images {
    background: linear-gradient(135deg, #81A241, #194163);
}

.stat-icon.active {
    background: linear-gradient(135deg, #81A241, #194163);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #81A241, #194163);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.main-card {
    background: var(--lighter-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    animation: slideUp 0.6s ease;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: var(--primary);
}


/* ===== Forms ===== */

.form-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.form-group label,
.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 6px;
}

.form-control,
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    font-size: 15px;
    font-family: 'Droid Arabic Kufi', Arial, sans-serif;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    outline: none;
}

textarea.form-control,
.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(146, 195, 76, 0.15), var(--shadow-md);
    transform: translateY(-2px);
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-light);
    font-size: 14px;
}

select.form-control,
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2375A149' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 45px;
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #f1f3f5;
    cursor: not-allowed;
}


/* File Upload */

.file-input-wrapper,
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input,
.file-upload input[type="file"] {
    display: none;
}

.file-input-label,
.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    min-height: 60px;
    border: 3px dashed var(--primary);
    border-radius: 12px;
    background: rgba(27, 64, 99, 0.05);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: #000;
}

.upload-box i {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.upload-box .text {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.upload-box small {
    display: block;
    color: #6c757d;
    margin-top: 4px;
}

.file-input-label:hover,
.upload-box:hover,
input[type="file"]:hover {
    border-color: var(--secondary);
    background: rgba(146, 195, 76, 0.1);
    transform: scale(1.02);
}

input[type="file"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(146, 195, 76, 0.15);
}


/* Floating Labels */

.form-floating {
    position: relative;
}

.form-floating label {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #999;
    transition: var(--transition);
    pointer-events: none;
    font-size: 15px;
}

.form-floating input:focus~label,
.form-floating input:not(:placeholder-shown)~label {
    top: -10px;
    right: 15px;
    font-size: 12px;
    color: var(--secondary);
    background: #fff;
    padding: 0 8px;
}


/* ===== Buttons ===== */

.btn,
input[type="submit"],
input[type="button"],
button {
    min-height: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Droid Arabic Kufi', Arial, sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn::before,
input[type="submit"]::before,
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before,
input[type="submit"]:hover::before,
button:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn:active,
input[type="submit"]:active,
button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary,
input[type="submit"],
button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #15803d);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0e7490);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.btn-save {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(146, 195, 76, 0.4);
}

.btn-save:hover {
    box-shadow: 0 12px 30px rgba(146, 195, 76, 0.5);
}

.btn-save i {
    font-size: 18px;
    transition: var(--transition);
}

.btn-save:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.btn-cancel {
    background: #f1f3f5;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
}

.btn-cancel:hover {
    background: #e9ecef;
}

.btn-flat {
    box-shadow: none;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    min-height: auto;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-edit {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-edit:hover {
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 0.6rem 1rem;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.add-btn {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(146, 195, 76, 0.4);
}

.add-btn:hover {
    box-shadow: 0 8px 25px rgba(146, 195, 76, 0.5);
}

.action-btns {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}


/* ===== Tables ===== */

.table-container {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

thead th {
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

thead th:first-child {
    border-top-right-radius: 12px;
}

thead th:last-child {
    border-top-left-radius: 12px;
}

tbody tr {
    background: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(146, 195, 76, 0.05), transparent);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

tbody td,
.table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f3f5;
    color: var(--text-dark);
    font-size: 14px;
    border: none;
    background: #fff;
    vertical-align: middle;
}

tbody td:first-child,
td:first-child {
    border-radius: 12px 0 0 12px;
}

tbody td:last-child,
td:last-child {
    border-radius: 0 12px 12px 0;
}

.table td[align="center"],
.table th[align="center"] {
    text-align: center !important;
}

.table td[align="right"],
.table th[align="right"] {
    text-align: right !important;
}

.table td[bgcolor="#EEEEEE"],
.table th[bgcolor="#EEEEEE"] {
    background: linear-gradient(135deg, rgba(27, 64, 99, 0.05), rgba(146, 195, 76, 0.05)) !important;
    font-weight: 600;
    color: var(--primary);
}

.table td[bgcolor="#FFFFFF"] {
    background: var(--lighter-bg) !important;
}


/* ===== Badges & Labels ===== */

.badge,
.label {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-primary,
.label-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.badge-success,
.label-success {
    background: var(--success);
}

.badge-warning,
.label-warning {
    background: var(--warning);
}

.badge-danger,
.label-danger {
    background: var(--danger);
}

.badge-info,
.label-info {
    background: var(--info);
}


/* ===== Alerts ===== */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    background: white;
    box-shadow: var(--shadow-sm);
}

.alert .fa {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    border-left-color: var(--success);
    color: var(--success);
    background: rgba(22, 163, 74, 0.05);
}

.alert-info {
    border-left-color: var(--info);
    color: var(--info);
    background: rgba(8, 145, 178, 0.05);
}

.alert-warning {
    border-left-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.alert-danger {
    border-left-color: var(--danger);
    color: var(--danger);
    background: rgba(220, 38, 38, 0.05);
}


/* ===== Modals ===== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.24);
    z-index: 1050;
    overflow-y: hidden;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog {
    margin: 30px auto;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
    margin-top: 20px;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-dark);
    width: 100%;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header .close,
.close-modal {
    background: rgb(255, 3, 3);
    color: #fff;
    padding: 5px;
    border-radius: 10px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.modal-header .close:hover,
.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    position: relative;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--light-bg);
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: -12px;
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}


/* ===== Info/Small Boxes ===== */

.info-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
    transition: var(--transition);
    border-right: 4px solid var(--secondary);
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-box-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 32px;
    margin-left: 12px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.info-box-content {
    flex: 1;
}

.info-box-text {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 600;
}

.info-box-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.small-box {
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-height: 130px;
}

.small-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.small-box .inner {
    position: relative;
    z-index: 1;
}

.small-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.small-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

.small-box .icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.small-box:hover .icon {
    font-size: 70px;
    transform: rotate(10deg);
}

.small-box .small-box-footer {
    display: block;
    padding: 8px 0 0 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.small-box .small-box-footer:hover {
    color: white;
}

.bg-aqua {
    background: linear-gradient(135deg, var(--info), #0e7490) !important;
}

.bg-green {
    background: linear-gradient(135deg, var(--success), #15803d) !important;
}

.bg-yellow,
.bg-warning {
    background: linear-gradient(135deg, var(--warning), #d97706) !important;
}

.bg-red,
.bg-danger {
    background: linear-gradient(135deg, var(--danger), #b91c1c) !important;
}

.bg-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}

.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

.bg-teal,
.bg-Teal {
    background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
}

.bg-maroon,
.bg-Maroon {
    background: linear-gradient(135deg, #be123c, #881337) !important;
}


/* ===== Footer ===== */

.main-footer {
    background: linear-gradient(135deg, var(--lighter-bg), var(--light-bg));
    padding: 16px 20px;
    border-top: 2px solid var(--border);
    color: var(--text-light);
    margin-right: 250px;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.main-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}


/* ===== Snackbar ===== */

#snackbar,
#snackbar1,
#snackbar2,
#snackbar3,
#snackbar4 {
    visibility: hidden;
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    min-width: 320px;
    max-width: 90%;
    padding: 18px 22px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: all 0.4s ease;
}

#snackbar {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

#snackbar2 {
    background: linear-gradient(135deg, #007bff, #0056b3);
    animation: slideInRight 0.5s ease-out;
}

#snackbar3 {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

#snackbar4,
#snackbar1 {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

#snackbar.show,
#snackbar1.show,
#snackbar2.show,
#snackbar3.show,
#snackbar4.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#snackbar i,
#snackbar1 i,
#snackbar2 i,
#snackbar3 i,
#snackbar4 i {
    display: block;
    margin-bottom: 8px;
    font-size: 38px;
}

#snackbar font,
#snackbar1 font,
#snackbar2 font,
#snackbar3 font,
#snackbar4 font {
    font-family: "Droid Arabic Kufi", Tahoma, Arial;
    line-height: 1.6;
}


/* ===== Page Header ===== */

.page-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.6s ease;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.page-header h1 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1 i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 35px;

}


/* ===== Search ===== */

.search-section {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 64, 99, 0.1);
}

.search-box i {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}


/* ===== Progress ===== */

.progress {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}


/* ===== Empty State ===== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
}


/* ===== Utility Classes ===== */

.text-center {
    text-align: center;
}

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

.text-left {
    text-align: left;
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-muted {
    color: var(--text-light);
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.clearfix::after {
    content: "";
    clear: both;
    display: block;
}

.hidden-xs {
    display: block;
}

.mobileHide {
    display: inline;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.8s ease;
}

.animated {
    animation: slideInDown 0.3s ease;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}


/* ===== Scrollbar ===== */

html {
    overflow-y: scroll;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(27, 64, 99, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}


/* ===== DataTables Excel Button ===== */

.dt-buttons .buttons-excel {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    margin: 5px;
}

.dt-buttons .buttons-excel:hover {
    background: linear-gradient(135deg, #1e7e34, #28a745);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.dt-buttons .buttons-excel:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dt-buttons .buttons-excel i {
    transition: var(--transition);
}

.dt-buttons .buttons-excel:hover i {
    transform: rotate(20deg);
}


/* ===== Animations ===== */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ===== WYSIWYG Editor ===== */

#textarea1,
#textarea2 {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    background: #fff;
    transition: var(--transition);
}

#textarea1:focus,
#textarea2:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(146, 195, 76, 0.15), var(--shadow-md);
}

.wysiwyg-toolbar {
    background: rgba(27, 64, 99, 0.05);
    border-radius: 12px 12px 0 0;
    padding: 10px;
    border-bottom: 2px solid var(--primary);
}


/* ===== Responsive ===== */

@media (max-width: 991px) {
    .navbar-custom-menu>.navbar-nav {
        float: left;
        margin-top: -108px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    .content-wrapper {
        margin-right: 0;
        padding: var(--space-lg);
    }
    .main-footer {
        margin-right: 0;
    }
    .main-header .logo {
        width: 60px;
    }
    .dashboard-title {
        font-size: 1.8rem;
    }
    .main-card,
    .box-body {
        padding: 25px 20px;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    .data-table,
    .table-container {
        font-size: 0.85rem;
    }
    .data-table thead th,
    .data-table tbody td,
    tbody td,
    thead th {
        padding: 12px 8px;
    }
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .form-control,
    input,
    select,
    textarea {
        font-size: 14px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
    }
    input[type="submit"],
    button,
    .btn {
        min-height: 46px !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .page-header h1 {
        font-size: 1.5rem;
    }
    .action-btns {
        flex-direction: column;
    }
    .hidden-xs,
    .mobileHide {
        display: none;
    }
}

@media (max-width: 480px) {
    .hidden-xs,
    .mobileHide {
        display: none;
    }
}


/* ===== Print ===== */

@media print {
    .main-header,
    .main-sidebar,
    .main-footer,
    .btn,
    .sidebar-toggle {
        display: none !important;
    }
    .content-wrapper {
        margin: 0;
    }
}


/* ===== Accessibility ===== */

*:focus {
    outline: 2px solid var(--secondary) !important;
    outline-offset: 2px !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none !important;
}

.content-wrapper {
    padding: 20px;
}

.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 1200px;
}

.form-header {
    background: linear-gradient(135deg, #194163 0%, #81A241 100%);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 30px -30px;
}

.form-header h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.date-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.file-upload {
    border: 3px dashed #667eea;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    background: #eef0ff;
    border-color: #194163;
}

.file-upload i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 10px;
}

.file-upload .text {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.file-upload small {
    color: #666;
    font-size: 14px;
}

.file-upload input[type="file"] {
    display: none;
}

.btn-save {
    background: linear-gradient(135deg, #667eea 0%, #194163 100%);
    border: none;
    color: white;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.editor-container {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    min-height: 200px;
    background: white;
}

.section-title {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 20px 0 15px 0;
    font-weight: bold;
    color: #333;
}

@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    .form-header {
        margin: -15px -15px 20px -15px;
        padding: 15px;
    }
    .form-header h1 {
        font-size: 18px;
    }
    .date-group {
        grid-template-columns: 1fr;
    }
    .btn-save {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .file-upload {
        padding: 20px 10px;
    }
    .file-upload i {
        font-size: 36px;
    }
    .file-upload .text {
        font-size: 16px;
    }
}


/* ============ الهيدر الأساسي ============ */

.main-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 60px;
}


/* ============ اللوجو ============ */

.logo {
    float: right;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    height: 60px;
    text-decoration: none;
}

.logo img {
    max-height: 40px;
    width: auto;
}


/* ============ النافبار ============ */

.navbar {
    min-height: 60px;
    margin: 0;
    border: none;
    background: transparent;
}


/* زر السايدبار */

.sidebar-toggle {
    float: right;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    margin: 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ============ قائمة النافبار ============ */

.navbar-custom-menu {
    float: left;
    margin: 0;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
}

.navbar-nav>li {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}


/* ============ الأيقونات والروابط ============ */

.navbar-nav>li>a {
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* صورة المستخدم */

.user-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}


/* ============ الـ Labels (الأرقام) ============ */

.label {
    position: absolute;
    top: 12px;
    left: 8px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    border-radius: 10px;
    background: #f56954;
    color: #fff;
}

.label-success {
    background: #00a65a;
}

.label-warning {
    background: #f39c12;
}

.label-danger {
    background: #dd4b39;
}


/* ============ القوائم المنسدلة ============ */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 0;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}


/* عرض القائمة عند الضغط */

.dropdown.show .dropdown-menu {
    display: block;
}


/* Header القائمة */

.dropdown-menu .header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
    color: #333;
    border-radius: 8px 8px 0 0;
}


/* Footer القائمة */

.dropdown-menu .footer {
    padding: 12px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.dropdown-menu .footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


/* قائمة الرسائل الداخلية */

.dropdown-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu .menu>li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu .menu>li:last-child {
    border-bottom: none;
}

.dropdown-menu .menu>li>a {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.dropdown-menu .menu>li>a:hover {
    background: #f8f9fa;
}

.dropdown-menu .menu .pull-left {
    margin-left: 10px;
}

.dropdown-menu .menu .img-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.dropdown-menu .menu h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
}

.dropdown-menu .menu p {
    margin: 0;
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}


/* ============ قائمة المستخدم ============ */

.user-menu .dropdown-menu {
    width: 300px;
    left: auto;
    right: 0;
}

.user-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #81A241 0%, #194163 100%);
    color: #fff;
}

.user-header .img-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.user-header p {
    margin: 5px 0 0 0;
    font-size: 14px;
}

.user-header small {
    display: block;
    font-size: 12px;
    margin-top: 3px;
    opacity: 0.9;
}

.user-footer {
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    border-radius: 0 0 8px 8px;
}

.user-footer .btn {
    padding: 8px 15px;
    font-size: 13px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    flex: 1;
    margin: 0 5px;
}

.user-footer .btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}


/* ============ Responsive Design ============ */

@media (max-width: 768px) {
    .navbar-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .navbar-nav>li {
        flex-shrink: 0;
    }
    .navbar-nav>li>a {
        padding: 10px;
    }
    .hidden-xs {
        display: none !important;
    }
    .dropdown-menu {
        min-width: 250px;
        max-width: 90vw;
        left: auto;
        right: 0;
    }
    .user-menu .dropdown-menu {
        width: 280px;
    }
    .logo img {
        max-height: 35px;
    }
    .user-image {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .main-header {
        min-height: 50px;
    }
    .navbar-nav {
        height: 50px;
    }
    .navbar-nav>li {
        height: 50px;
    }
    .logo {
        padding: 10px;
        height: 50px;
    }
    .logo img {
        max-height: 30px;
    }
    .navbar-nav>li>a {
        padding: 8px;
    }
    .sidebar-toggle {
        padding: 12px;
        margin: 7px;
    }
    .dropdown-menu {
        min-width: 220px;
    }
    .label {
        font-size: 9px;
        padding: 2px 5px;
    }
}


/* ============ Snackbar Notifications ============ */

#snackbar,
#snackbar2,
#snackbar3,
#snackbar4 {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.text-green {
    color: #00a65a;
}

.text-yellow {
    color: #f39c12;
}

.text-red {
    color: #dd4b39;
}

;
.navbar-nav .dropdown-menu {
    position: static;
    margin-top: 270px !important;
}

.dropdown-menu.show {
    display: block;
    /* margin-top: 270px !important; */
    transform: translate(60%, 61%);
}

.modal.show .modal-dialog {
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto !important;
}

.modal-header .btn-close {
    /* padding: calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5); */
    margin: 0px !important;
    color: #f00 !important;
}


/* الـ sidebar مفتوح على الكمبيوتر */

.dataTables_filter label {
    display: flex;
    align-items: center;
}

.no-print .form-control .input-sm {
    width: 17% !important;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    font-family: 'Droid Arabic Kufi', Arial;
    transition: all 0.3s ease;
}


/*pagininon css page branches */


/* Modern Pagination Styles */

/* .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    flex-wrap: wrap;
} */

.col-xs-6 {
    flex: 1;
    min-width: 200px;
}


/* Info Section */

.dataTables_info {
    font-size: 14px;
    color: #194163;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 8px 0;
}


/* Pagination Container */

.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}


/* Pagination Buttons */

.paginate_button {
    margin: 0;
}

.paginate_button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #81A441 0%, #194163 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(129, 164, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.paginate_button a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.paginate_button a:hover::before {
    left: 100%;
}

.paginate_button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(129, 164, 65, 0.4);
    background: linear-gradient(135deg, #92b54d 0%, #1f4d73 100%);
}

.paginate_button a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(129, 164, 65, 0.3);
}


/* Disabled State */

.paginate_button.disabled a {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
  
}

.paginate_button.disabled a:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.paginate_button.disabled a::before {
    display: none;
}


/* Active State */

.paginate_button.active a {
    background: linear-gradient(135deg, #194163 0%, #81A441 100%);
    box-shadow: 0 4px 6px rgba(25, 65, 99, 0.3);
}


/* Previous Button Specific Style */

.paginate_button.previous a {
    background: #194163;
    box-shadow: 0 4px 6px rgba(25, 65, 99, 0.25);
    color: #fff !important
}

.paginate_button.previous a:hover {
    background: #1f4d73;
    box-shadow: 0 8px 15px rgba(25, 65, 99, 0.4);
}


/* Next Button Specific Style */

.paginate_button.next a {
    background: #81A441;
    box-shadow: 0 4px 6px rgba(129, 164, 65, 0.25);
    color: #fff !important
}

.paginate_button.next a:hover {
    background: #92b54d;
    box-shadow: 0 8px 15px rgba(129, 164, 65, 0.4);
}


/* Responsive Design */

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        text-align: center;
    }
    .col-xs-6 {
        width: 100%;
    }
    .dataTables_paginate {
        justify-content: center;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Alternative Bordered Style */

.bordered-style .paginate_button a {
    background: #ffffff;
    color: #194163;
    border: 2px solid #194163;
    box-shadow: none;
}

.bordered-style .paginate_button a:hover {
    background: #194163;
    color: #ffffff;
    border-color: #194163;
}

.bordered-style .paginate_button.next a {
    color: #81A441;
    border-color: #81A441;
}

.bordered-style .paginate_button.next a:hover {
    background: #81A441;
    color: #ffffff;
}


/*ubdata css stylr */

* {
    font-family: 'Cairo', sans-serif;
}

 :root {
    --primary-color: #194163;
    --secondary-color: #81A441;
    --primary-light: #2a5a7f;
    --secondary-light: #9bc051;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.content-wrapper {
    padding: 2rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.page-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-right: 4px solid var(--secondary-color);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.main-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-custom h5 {
    margin: 0;
    font-weight: 600;
}

.btn-add {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-add:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 65, 99, 0.3);
    color: white;
}

.search-box {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(129, 164, 65, 0.25);
}

.btn-search {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

.table-container {
    padding: 1.5rem;
    overflow-x: auto;
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table thead {
    background: var(--primary-color);
    color: white;
}

.custom-table thead th {
    padding: 1rem;
    font-weight: 600;
    border: none;
    white-space: nowrap;
}

.custom-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.custom-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.custom-table tbody tr {
    background: white;
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-admin {
    background: linear-gradient(135deg, #0F2840 0%, #95BA4E 100%);
    color: white;
}

.badge-manager {
    background: linear-gradient(135deg, #0F2840 0%, #95BA4E 100%);
    color: white;
}

.badge-marketer {
    background: linear-gradient(135deg, #0F2840 0%, #95BA4E 100%);
    color: white;
}

.status-icon {
    font-size: 1.5rem;
}

.status-active {
    color: var(--secondary-color);
}

.status-inactive {
    color: #dc3545;
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    font-size: 0.9rem;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
    transform: translateY(-2px);
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    color: white;
}

.btn-courses {
    background: var(--secondary-color);
    color: white;
}

.btn-courses:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    color: white;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.modal-header h5 {
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.7rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(129, 164, 65, 0.25);
}

.modal-footer {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0 0 15px 15px;
    margin-top: -40px !important;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
}

.btn-cancel:hover {
    background: #5a6268;
    color: white;
}

.btn-save {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
}

.btn-save:hover {
    background: var(--secondary-light);
    color: white;
}

.course-checkbox {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.course-checkbox:hover {
    background: #e9ecef;
}

.course-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    .table-container {
        padding: 1rem;
    }
    .btn-action {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}


.search-input::placeholder{
    float: left;
}
td{
    padding: 50px 0 !important;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
}

.main-sidebar .sidebar-menu > li > a > span, .main-sidebar .sidebar-menu > li > a > font {
       opacity: 1 !important;
    width: 100% !important;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    margin-right: 10px !important;
    color:#fff !important;
}