/* ============================================
   PREMIUM SAAS ADMIN DASHBOARD - STYLESHEET
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary-900: #1e1b4b;
  --primary-800: #312e81;
  --primary-600: #4f46e5;
  --primary-500: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --bg-dark: #0f0e1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --sidebar-width: 270px;
  --header-height: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.15);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  /* background: #9f2f0e; */
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Mesh Gradient Background ---- */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at 10% 20%, rgb(249 238 235) 0%, transparent 50%), radial-gradient(ellipse at 80% 10%, rgb(251 239 235) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgb(255 255 255 / 8%) 0%, transparent 50%), radial-gradient(ellipse at 90% 90%, rgba(34, 197, 94, 0.06) 0%, transparent 50%), linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #fcfcfc 100%);
}

.mesh-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
  animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-20px) scale(1.02); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ---- Glassmorphism Utility ---- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #013e69;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--border-glass);
  z-index: 1050;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.sidebar-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-left: 14px;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.sidebar-logo .logo-badge {
  font-size: 9px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  color: #0f0e1a;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sidebar Menu */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

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

.menu-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 16px 16px 8px;
  display: block;
}

.menu-item {
  display: block;
  width: 100%;
  margin-bottom: 2px;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.menu-link i {
  font-size: 18px;
  width: 22px;
  margin-right: 14px;
  transition: var(--transition);
  flex-shrink: 0;
  text-align: center;
}

.menu-link .menu-text {
  flex: 1;
}

.menu-link .menu-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.menu-link .menu-arrow.rotated {
  transform: rotate(90deg);
}

.menu-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.menu-link:hover i {
  color: white;
}

.menu-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgb(0 95 163), rgb(6 91 153));
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.menu-link.active i {
  color: #ffffff;
}

.menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #2196F3, #03A9F4);
  border-radius: 0 4px 4px 0;
}

.menu-badge {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
  line-height: 1.4;
}

/* Submenu */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 20px;
}

.submenu.open {
  max-height: 300px;
}

.submenu .menu-link {
  padding: 9px 16px 9px 36px;
  font-size: 13px;
  color: #ffffff;
  position: relative;
}

.submenu .menu-link::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}

.submenu .menu-link:hover::before,
.submenu .menu-link.active::before {
  background: #cee4f4;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.submenu .menu-link:hover,
.submenu .menu-link.active {
  color: #b3d8ff;
  background: transparent;
  border: none;
  box-shadow: none;
  background: #015e9f80;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.sidebar-footer .user-mini {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-footer .user-mini:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer .user-mini img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(124, 58, 237, 0.3);
}

.sidebar-footer .user-mini .user-info {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
}

.sidebar-footer .user-mini .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-footer .user-mini .user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 6px 30px; */
  background: rgb(1 62 105);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* margin-top: 27px; */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px 20px;
  padding: 6px 17px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.page-title h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 9px;
  padding-top: 17px;
}

.page-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Header Action Buttons */
.header-action {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.header-action .badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent-rose);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
}

/* Search Bar */
.header-search {
  position: relative;
  margin-right: 8px;
}

.header-search input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 42px;
  color: var(--text-primary);
  font-size: 13px;
  width: 240px;
  transition: var(--transition);
  outline: none;
  font-family: 'Inter', sans-serif;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
  width: 300px;
}

.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}

.profile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.profile-toggle img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-toggle .profile-info {
  text-align: left;
}

.profile-toggle .profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-toggle .profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-toggle .profile-arrow {
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.profile-toggle.show .profile-arrow {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: rgba(30, 27, 75, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  overflow: hidden;
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu .pm-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu .pm-header img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-menu .pm-header .pm-name {
  font-size: 14px;
  font-weight: 600;
}

.profile-menu .pm-header .pm-email {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-menu .pm-item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  gap: 12px;
}

.profile-menu .pm-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.profile-menu .pm-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.profile-menu .pm-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 4px 0;
}

.profile-menu .pm-item.logout {
  color: var(--accent-rose);
}

.profile-menu .pm-item.logout:hover {
  background: rgba(244, 63, 94, 0.1);
}

/* ============================================
   DASHBOARD CONTENT
   ============================================ */
.dashboard-content {
  padding: 28px 30px 40px;
}

/* ---- Stat Cards ---- */
.stat-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

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

.stat-card.gradient-1 {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.stat-card.gradient-2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(34, 197, 94, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.stat-card.gradient-3 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-card.gradient-4 {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.stat-card.gradient-1 .stat-icon {
  background: rgba(79, 70, 229, 0.3);
  color: #a78bfa;
}

.stat-card.gradient-2 .stat-icon {
  background: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.stat-card.gradient-3 .stat-icon {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.stat-card.gradient-4 .stat-icon {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.stat-card .stat-change.up {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
}

.stat-card .stat-change.down {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

/* ---- Glass Card ---- */
.glass-card {
  background: rgb(255 255 255 / 96%);
  /* backdrop-filter: blur(20px); */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.card-header-custom h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2f2f2f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header-custom h5 i {
  color: #502827;
  font-size: 20px;
}

.card-body-custom {
  padding: 0px 16px 16px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-floating-custom {
  position: relative;
  margin-bottom: 12px;
}

.form-floating-custom .form-input {
  width: 100%;
  /* padding: 7px 11px 8px; */
  padding: 18px 11px 8px;
  background: rgb(236 236 236 / 45%);
  border: 1px solid rgb(35 35 35 / 8%);
  border-radius: var(--radius-md);
  color: #000000;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-floating-custom .form-input:focus {
  background: rgba(255, 255, 255, 0.06);
 
  
}

.form-floating-custom .form-input:focus + .form-label-custom,
.form-floating-custom .form-input:not(:placeholder-shown) + .form-label-custom {
  top: 6px;
  font-size: 10px;
  color: black;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-floating-custom .form-label-custom {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-floating-custom textarea.form-input {
  min-height: 110px;
  resize: vertical;
}

.form-floating-custom select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-floating-custom select.form-input option {
  background: var(--primary-900);
  color: var(--text-primary);
}

.btn-gradient {
  background: linear-gradient(135deg, #013e69, #013e69);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

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

.btn-gradient:hover::before {
  left: 100%;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  
}

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

/* ============================================
   TABLE STYLES
   ============================================ */

table {
    /* caption-side: bottom; */
    border-collapse: collapse;
    font-size: 13px;
    line-height: 19px;
    letter-spacing: 0px;
}




.table-search {
  position: relative;
  max-width: 280px;
}

.table-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.table-search input:focus {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.table-search input::placeholder {
  color: var(--text-muted);
}

.table-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.table-responsive-custom {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  white-space: nowrap;
  text-align: left;
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.data-table tbody td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  vertical-align: middle;
}

.data-table .user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.data-table .user-cell .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.data-table .user-cell .avatar.av-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.data-table .user-cell .avatar.av-2 { background: linear-gradient(135deg, #06b6d4, #22c55e); }
.data-table .user-cell .avatar.av-3 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.data-table .user-cell .avatar.av-4 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.data-table .user-cell .avatar.av-5 { background: linear-gradient(135deg, #14b8a6, #3b82f6); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-green);
}

.status-badge.active::before {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.status-badge.inactive {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
}

.status-badge.inactive::before {
  background: var(--accent-rose);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
}

.status-badge.pending::before {
  background: var(--accent-amber);
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  margin-right: 4px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.action-btn.edit:hover {
  border-color: rgba(79, 70, 229, 0.4);
  color: var(--primary-600);
  background: rgba(79, 70, 229, 0.1);
}

.action-btn.delete:hover {
  border-color: rgba(244, 63, 94, 0.4);
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.action-btn.view:hover {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Pagination */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-pagination .pagination-info {
  font-size: 12px;
  color: var(--text-muted);
}

.table-pagination .pagination-btns {
  display: flex;
  gap: 6px;
}

.table-pagination .page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 500;
}

.table-pagination .page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.table-pagination .page-btn.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

.anim-fade-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.anim-fade-left {
  animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.anim-fade-right {
  animation: fadeInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.1s; }
.anim-delay-3 { animation-delay: 0.15s; }
.anim-delay-4 { animation-delay: 0.2s; }
.anim-delay-5 { animation-delay: 0.25s; }
.anim-delay-6 { animation-delay: 0.3s; }

/* ============================================
   OVERLAY
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
  .header-search input {
    width: 180px;
  }
  .header-search input:focus {
    width: 220px;
  }
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
  }

  .dashboard-content {
    padding: 20px;
  }

  .header-search {
    display: none;
  }

  .profile-toggle .profile-info {
    display: none;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .top-header {
    padding: 0 16px;
  }

  .dashboard-content {
    padding: 16px;
  }

  .stat-card .stat-value {
    font-size: 24px;
  }

  .card-header-custom {
    padding: 16px 18px;
  }

  .card-body-custom {
    padding: 18px;
  }

  .page-title h1 {
    font-size: 18px;
  }

  .page-title p {
    display: none;
  }

  .header-action {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .table-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
}








/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eb906f 0%, #795548 25%, #773219 50%, #795548 75%, #47261b 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-mesh {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 600px at 20% 20%, rgb(20 86 133) 0%, #013e69 70%), radial-gradient(ellipse 500px 500px at 80% 30%, rgb(254 127 250) 0%, #ff6969b8 70%), radial-gradient(ellipse 400px 400px at 50% 80%, rgb(112 46 87) 0%, #7556564d 70%), radial-gradient(ellipse 300px 300px at 90% 90%, #ff6de0 0%, #bc6c6c69 70%);
    animation: meshFloat 20s ease-in-out infinite alternate;
}

@keyframes meshFloat {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

.login-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(124, 58, 237, 0.4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.login-card {
    background: rgb(255 255 255 / 99%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-600), var(--accent-cyan), var(--primary-500), transparent);
    animation: borderGlow 4s linear infinite;
    display: none;
}

@keyframes borderGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-card-inner {
    padding: 19px 16px 10px;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 0px;
}

.login-logo-icon {
    position: relative;
    font-size: 36px;
    color: var(--primary-600);
    filter: drop-shadow(0 0 12px rgba(79, 70, 229, 0.5));
}

.login-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
}

.login-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.login-brand span {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-floating-custom {
    position: relative;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper > i:first-child {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    z-index: 2;
    transition: var(--transition);
}

.login-input {
    width: 100%;
    padding: 9px 18px 10px 38px;
    background: rgb(250 250 250 / 5%);
    border: 1.5px solid rgb(34 34 34 / 31%);
    border-radius: 14px;
    color: #000000;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.login-input:focus {
    border-color: #antiquewhite;
    background: rgb(242 242 242 / 8%);
}

.login-input:focus ~ label,
.login-input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 14px;
    font-size: 11px;
    background: var(--primary-900);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--accent-cyan);
}

.input-icon-wrapper label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: var(--transition);
}

.login-input:focus + label {
    color: var(--accent-cyan);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--accent-cyan);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border-color: var(--primary-600);
}

.custom-checkbox input:checked + .checkmark::after {
    content: 'âœ“';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.forgot-link {
    color: var(--accent-cyan);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #013e69, #013e69, #013e69);
    background-size: 200% 200%;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.login-btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
}

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

.btn-loader { display: none; }
.login-btn.loading .btn-text { display: none; }
.login-btn.loading .btn-loader { display: inline-block; }

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    width: 56px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--primary-600);
    color: #fff;
    transform: translateY(-2px);
}

.login-footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 24px;
}

.login-footer-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}





.active>.page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: #013e69;
    border-color: #013e69;
}


.page-link:hover {
    z-index: 2;
    color: #013e69;
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);
}



.page-link {
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    color: #013e69;
    text-decoration: none;
    background-color: var(--bs-pagination-bg);
    border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}





.ck.ck-editor__editable_inline>:last-child {
    margin-bottom: var(--ck-spacing-large);
    color: #000000;
    font-size: 13px;
    line-height: 16px;
}


.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused) {
   color: #000000 !important;
    font-size: 13px;
    line-height: 2px;
}





.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
    border: var(--ck-focus-ring);
    box-shadow: var(--ck-inner-shadow), 0 0;
    outline: none;
    color: #000000 !important;
    font-size: 13px;
    line-height: 2px;
}