.h-300 {
  height: 300px;
}

.h-400 {
  height: 400px;
}

.auth-wrapper .authentication-form .logo-centered {
  width: auto !important;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
}

#globalLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
}

.loader-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  /* dark shadow */
  backdrop-filter: blur(3px);
}

.loader-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.spinner {
  width: 55px;
  height: 55px;
  border: 5px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.cke_notification,
.cke_notifications_area {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


.auth-wrapper {
  background: #929893;
  height: 100vh;
}

.auth-wrapper .authentication-form .form-group .form-control {
  border-radius: 25px;
  height: 40px;
}

.auth-wrapper .authentication-form .form-group .form-control~i {
  top: 13px !important;
  color: #009688;
}

.auth-wrapper .authentication-form {
  font-size: .9rem;
  width: 350px;
  display: block;
  padding: 25px 30px;
  margin: 60px 0;
  background: #fff;
  border-radius: 5px;
}

.btn-custom {
  border-radius: 25px;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: #009688;
  height: 40px;
  color: #fff;
}

.password-block {
  position: absolute;
  top: 200px;
  right: -220px;
  background: #fdfdfd;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #678660;
}

.password-block:before {
  content: '';
  height: 0;
  width: 0;
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent;
  border-right: 20px solid #678660;
  position: absolute;
  left: -20px;
  top: 50px;
}

.badge-right {
  float: right;
  position: initial !important;
}

#Widget-line-chart1,
#Widget-line-chart2,
#Widget-line-chart3,
#Widget-line-chart4 {
  width: 100%;
  height: 75px
}

#realtime-profit,
#sale-diff {
  height: 150px;
}

#sec-ecommerce-chart-line {
  height: 30px;
}

#sec-ecommerce-chart-bar {
  height: 100px;
}

#app-sale1,
#app-sale2,
#app-sale3,
#app-sale4 {
  height: 50px;
}

.chart-shadow {
  height: 400px;
}

.st-cir-chart {
  height: 450px !important;
}

#status-round-1,
#status-round-2,
#status-round-3,
#status-round-4 {
  width: 80px !important;
  height: 80px !important;
}

#card-412 {
  min-height: 412px;
}

#card-422 {
  min-height: 422px;
}

#visitfromworld {
  width: 100%;
  height: 350px;
}

.card-300 {
  height: 300px;
}

.card-484 {
  min-height: 484px;
}

.card-180 {
  min-height: 180px;
}

.card-200 {
  min-height: 200px;
}

.th-50 {
  width: 50%;
}

.font-150 {
  font-size: 150px;
}

#pbc-1,
#pbc-2,
#pbc-3,
#pbc-4,
#pbc-5,
#pbc-6 {
  height: 50px;
}

/*.sale-card{
	min-height: 301px;
}*/

#deal-analytic-chart {
  height: 300 !important;
}

#tot-rev-chart {
  width: 100px;
  height: 100px;
}

#allocation-map,
#allocation-chart {
  height: 250px;
}

#sal-income,
#rent-income,
#income-analysis {
  height: 100px;
}

.progress-6 {
  height: 6px;
}

.hide {
  display: none;
}



.pricing .card {
  border: none;
  border-radius: 1rem;
  transition: all 0.2s;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.pricing hr {
  margin: 1.5rem 0;
}

.pricing .card-title {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  letter-spacing: .1rem;
  font-weight: bold;
}

.pricing .card-price {
  font-size: 3rem;
  margin: 0;
}

.pricing .card-price .period {
  font-size: 0.8rem;
}

.pricing ul li {
  margin-bottom: 1rem;
}

.pricing .text-muted {
  opacity: 0.7;
}

.pricing .btn {
  border-radius: 5rem;
  letter-spacing: .1rem;
  font-weight: bold;
  opacity: 0.7;
  transition: all 0.2s;
}

/* Hover Effects on Card */

@media (min-width: 992px) {
  .pricing .card:hover {
    margin-top: -.25rem;
    margin-bottom: .25rem;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.3);
  }

  .pricing .card:hover .btn {
    opacity: 1;
  }
}


.modern-page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  box-shadow: var(--card-shadow-lg);
}

.modern-page-header h5 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modern-page-header .icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.breadcrumb-modern {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.breadcrumb-modern .breadcrumb {
  margin: 0;
  background: transparent;
}

.breadcrumb-modern .breadcrumb-item,
.breadcrumb-modern .breadcrumb-item a {
  color: white;
}

.modern-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-card:hover {
  box-shadow: var(--card-shadow-lg);
}

.modern-card-header {
  background: linear-gradient(to right, #fafafa, #ffffff);
  padding: 1.5rem 2rem;
  border-bottom: 2px solid var(--border-color);
}

.modern-card-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modern-tabs {
  background: white;
  border-bottom: 2px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.modern-tabs::-webkit-scrollbar {
  height: 4px;
}

.modern-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.modern-tabs .nav-link {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  border: none;
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 0;
}

.modern-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.05);
}

.modern-tabs .nav-link.active {
  color: var(--primary-color);
  background: transparent;
}

.modern-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  padding: 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-header h6 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.section-header .icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.modern-form-group {
  margin-bottom: 1.5rem;
}

.modern-form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: block;
}

.modern-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: white;
}

.modern-form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modern-form-control::placeholder {
  color: #9ca3af;
}

.setting-card {
  background: #fafafa;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.setting-card:hover {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.modern-switch-wrapper:hover {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.02);
}

.modern-switch-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  flex: 1;
}

.modern-btn {
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.modern-btn-primary:active {
  transform: translateY(0);
}

.info-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

textarea.modern-form-control {
  resize: vertical;
  min-height: 120px;
}

select.modern-form-control {
  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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.grid-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .modern-page-header {
    padding: 1.5rem;
  }

  .modern-tabs {
    padding: 0 1rem;
  }

  .tab-content {
    padding: 1rem;
  }

  .grid-settings {
    grid-template-columns: 1fr;
  }
}

.alert-info-custom {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert-info-custom p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.875rem;
}

@import url(https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap);


/*!
 * Modern Bootstrap Enhancement v1.0
 * Enhanced with modern design patterns
 */

:root {
  /* Modern Color Palette */
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #fbbf24;
  --green: #10b981;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-dark: #1f2937;

  --bg: #f1f4f9;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: rgba(0, 0, 0, 0.07);
  --blue: #3b7dff;
  --violet: #7c4dff;
  --rose: #f7295a;
  --cyan: #00bfa5;
  --amber: #f59e0b;
  --green: #10b981;
  --orange: #f97316;
  --pink: #ec4899;
  --indigo: #6366f1;
  --txt: #0d1526;
  --txt-2: #64748b;
  --txt-3: #94a3b8;
  --num-font: 'Outfit', sans-serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.11);

  /* Primary Colors */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #818cf8;
  --secondary: #6b7280;
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f9fafb;
  --dark: #111827;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f3f4f6;
  --bg-tertiary: #e5e7eb;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;

  /* Border Colors */
  --border-color: #e5e7eb;
  --border-color-light: #f3f4f6;
  --border-color-dark: #d1d5db;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;

  /* Fonts */
  --font-family-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-monospace: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #6366f1;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --border-color: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== BASE STYLES ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
  display: block;
}

body {
  margin: 0;
  font-family: var(--font-family-sans-serif);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0 !important;
}

/* ===== TYPOGRAPHY ===== */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

h1,
.h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2,
.h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3,
.h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

h4,
.h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5,
.h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6,
.h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

hr {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 0;
  border-top: 1px solid var(--border-color);
}

small,
.small {
  font-size: 0.875rem;
  font-weight: 400;
}

mark,
.mark {
  padding: 0.2em 0.4em;
  background-color: #fef3c7;
  border-radius: 0.25rem;
}

/* ===== LINKS ===== */

a {
  color: var(--primary);
  text-decoration: none;
  background-color: transparent;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

a:not([href]) {
  color: inherit;
  text-decoration: none;
}

a:not([href]):hover {
  color: inherit;
  text-decoration: none;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 2px solid transparent;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:focus,
.btn.focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn:active,
.btn.active {
  transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--border-color-dark);
}

.btn-success {
  color: #fff;
  background-color: var(--success);
  border-color: var(--success);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background-color: #059669;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.btn-danger {
  color: #fff;
  background-color: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background-color: #dc2626;
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.4);
}

.btn-warning {
  color: var(--text-primary);
  background-color: var(--warning);
  border-color: var(--warning);
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background-color: #d97706;
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

.btn-info {
  color: #fff;
  background-color: var(--info);
  border-color: var(--info);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
  background-color: #2563eb;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.btn-light {
  color: var(--text-primary);
  background-color: var(--light);
  border-color: var(--border-color);
}

.btn-light:hover {
  background-color: var(--bg-tertiary);
}

.btn-dark {
  color: #fff;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-color: transparent;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #111827, #000000);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.125rem;
  border-radius: var(--radius-xl);
}

/* ===== FORMS ===== */

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.form-control:focus {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--bg-secondary);
  opacity: 0.7;
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-check {
  position: relative;
  display: block;
  padding-left: 1.75rem;
}

.form-check-input {
  position: absolute;
  margin-top: 0.3rem;
  margin-left: -1.75rem;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  margin-bottom: 0;
  cursor: pointer;
}

/* ===== CARDS ===== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--bg-primary);
  background-clip: border-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  margin-top: -0.375rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.card-text:last-child {
  margin-bottom: 0;
}

.card-link:hover {
  text-decoration: none;
}

.card-header {
  padding: 1.25rem 1.5rem;
  margin-bottom: 0;
  background: linear-gradient(to right, #fafafa, #ffffff);
  border-bottom: 2px solid var(--border-color);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-header h3,
.card-header h4,
.card-header h5 {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.card-img-top {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-img-bottom {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ===== TABLES ===== */

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background-color: transparent;
}

.table th,
.table td {
  padding: 1rem;
  vertical-align: top;
  border-top: 1px solid var(--border-color);
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table tbody tr {
  transition: background-color var(--transition-base);
}

.table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid var(--border-color);
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== BADGES ===== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.badge-primary {
  background-color: var(--primary);
}

.badge-secondary {
  background-color: var(--secondary);
}

.badge-success {
  background-color: var(--success);
}

.badge-danger {
  background-color: var(--danger);
}

.badge-warning {
  background-color: var(--warning);
  color: var(--text-primary);
}

.badge-info {
  background-color: var(--info);
}

.badge-light {
  background-color: var(--light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.badge-dark {
  background-color: var(--dark);
}

/* ===== ALERTS ===== */

.alert {
  position: relative;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  border-left: 4px solid;
}

.alert-primary {
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-left-color: var(--primary);
}

.alert-secondary {
  color: #374151;
  background-color: #f3f4f6;
  border-left-color: var(--secondary);
}

.alert-success {
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: var(--success);
}

.alert-danger {
  color: #991b1b;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: var(--danger);
}

.alert-warning {
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: var(--warning);
}

.alert-info {
  color: #1e3a8a;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-left-color: var(--info);
}

.alert-dismissible .close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1rem 1.25rem;
  color: inherit;
  cursor: pointer;
}

/* ===== MODALS ===== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  outline: 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  border-top-left-radius: var(--radius-2xl);
  border-top-right-radius: var(--radius-2xl);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 700;
  font-size: 1.25rem;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom-right-radius: var(--radius-2xl);
  border-bottom-left-radius: var(--radius-2xl);
}

.modal-footer>* {
  margin: 0.25rem;
}

/* ===== NAVIGATION ===== */

.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.05);
}

.nav-link.disabled {
  color: var(--text-tertiary);
  pointer-events: none;
  cursor: default;
}

.nav-tabs {
  border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  position: relative;
  margin-bottom: -2px;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border: none;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  background-color: transparent;
  border: none;
}

.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.nav-pills .nav-link {
  border-radius: var(--radius-lg);
}

.nav-pills .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

/* ===== BREADCRUMB ===== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.breadcrumb-item {
  display: flex;
  font-size: 0.875rem;
}

.breadcrumb-item+.breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item+.breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  color: var(--text-tertiary);
  content: "/";
}

.breadcrumb-item.active {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--radius-lg);
  gap: 0.5rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.625rem 1rem;
  margin-left: 0;
  line-height: 1.25;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  font-weight: 600;
}

.page-link:hover {
  z-index: 2;
  color: var(--primary);
  text-decoration: none;
  background-color: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
}

.page-item.disabled .page-link {
  color: var(--text-tertiary);
  pointer-events: none;
  cursor: auto;
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  opacity: 0.5;
}

/* ===== DROPDOWNS ===== */

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-primary) !important;
  text-align: left;
  list-style: none;
  background-color: var(--bg-primary);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.625rem 1.25rem;
  clear: both;
  font-weight: 500;
  color: var(--text-primary) !important;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;

  transition: all var(--transition-base);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--primary);
  text-decoration: none;
  background-color: var(--bg-secondary);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--violet) !important;
  text-decoration: none;
  background-color: var(--primary);
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: var(--text-tertiary) !important;
  pointer-events: none;
  background-color: transparent;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}

.dropdown-header {
  display: block;
  padding: 0.5rem 1.25rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--text-secondary) !important;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== PROGRESS BARS ===== */

.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transition: width 0.6s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* ===== TOOLTIPS ===== */

.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: var(--font-family-sans-serif);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.875rem;
  word-wrap: break-word;
  opacity: 0;
}

.tooltip.show {
  opacity: 1;
}

.tooltip-inner {
  max-width: 200px;
  padding: 0.5rem 0.75rem;
  color: #fff;
  text-align: center;
  background-color: #1f2937;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ===== CUSTOM SCROLLBAR ===== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ===== UTILITIES ===== */

.shadow-xs {
  box-shadow: var(--shadow-xs) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
  box-shadow: var(--shadow-xl) !important;
}

.shadow-2xl {
  box-shadow: var(--shadow-2xl) !important;
}

.shadow-none {
  box-shadow: none !important;
}

.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-2xl {
  border-radius: var(--radius-2xl) !important;
}

.rounded-full {
  border-radius: var(--radius-full) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--bg-secondary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #ef4444, #f87171) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
}

/* Hover Effects */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-grow {
  transition: transform var(--transition-base);
}

.hover-grow:hover {
  transform: scale(1.05);
}

/* Text Utilities */
.font-weight-light {
  font-weight: 300 !important;
}

.font-weight-normal {
  font-weight: 400 !important;
}

.font-weight-medium {
  font-weight: 500 !important;
}

.font-weight-semibold {
  font-weight: 600 !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.font-weight-extrabold {
  font-weight: 800 !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.text-body {
  color: var(--text-primary) !important;
}

/* Spacing Utilities */
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mr-0 {
  margin-right: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.ml-0 {
  margin-left: 0 !important;
}

.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.m-1 {
  margin: 0.25rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mr-1 {
  margin-right: 0.25rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.ml-1 {
  margin-left: 0.25rem !important;
}

.mx-1 {
  margin-left: 0.25rem !important;
  margin-right: 0.25rem !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.m-2 {
  margin: 0.5rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.ml-2 {
  margin-left: 0.5rem !important;
}

.mx-2 {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}

.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.m-3 {
  margin: 1rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mr-3 {
  margin-right: 1rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.ml-3 {
  margin-left: 1rem !important;
}

.mx-3 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.m-4 {
  margin: 1.5rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mr-4 {
  margin-right: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.ml-4 {
  margin-left: 1.5rem !important;
}

.mx-4 {
  margin-left: 1.5rem !important;
  margin-right: 1.5rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.m-5 {
  margin: 3rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mr-5 {
  margin-right: 3rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.ml-5 {
  margin-left: 3rem !important;
}

.mx-5 {
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.p-0 {
  padding: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.pr-0 {
  padding-right: 0 !important;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.pl-0 {
  padding-left: 0 !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.p-1 {
  padding: 0.25rem !important;
}

.pt-1 {
  padding-top: 0.25rem !important;
}

.pr-1 {
  padding-right: 0.25rem !important;
}

.pb-1 {
  padding-bottom: 0.25rem !important;
}

.pl-1 {
  padding-left: 0.25rem !important;
}

.px-1 {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.p-2 {
  padding: 0.5rem !important;
}

.pt-2 {
  padding-top: 0.5rem !important;
}

.pr-2 {
  padding-right: 0.5rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

.pl-2 {
  padding-left: 0.5rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pr-3 {
  padding-right: 1rem !important;
}

.pb-3 {
  padding-bottom: 1rem !important;
}

.pl-3 {
  padding-left: 1rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.pr-4 {
  padding-right: 1.5rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

.pl-4 {
  padding-left: 1.5rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pr-5 {
  padding-right: 3rem !important;
}

.pb-5 {
  padding-bottom: 3rem !important;
}

.pl-5 {
  padding-left: 3rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Display Utilities */
.d-none {
  display: none !important;
}

.d-inline {
  display: inline !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

/* Flexbox Utilities */
.flex-row {
  flex-direction: row !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-nowrap {
  flex-wrap: nowrap !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-around {
  justify-content: space-around !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-baseline {
  align-items: baseline !important;
}

.align-items-stretch {
  align-items: stretch !important;
}

/* Text Alignment */
.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-center {
  text-align: center !important;
}

.text-justify {
  text-align: justify !important;
}

/* Position Utilities */
.position-static {
  position: static !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

.position-sticky {
  position: sticky !important;
}

/* Width & Height */
.w-25 {
  width: 25% !important;
}

.w-50 {
  width: 50% !important;
}

.w-75 {
  width: 75% !important;
}

.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

.h-25 {
  height: 25% !important;
}

.h-50 {
  height: 50% !important;
}

.h-75 {
  height: 75% !important;
}

.h-100 {
  height: 100% !important;
}

.h-auto {
  height: auto !important;
}

/* Overflow */
.overflow-auto {
  overflow: auto !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.overflow-visible {
  overflow: visible !important;
}

.overflow-scroll {
  overflow: scroll !important;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer !important;
}

.cursor-default {
  cursor: default !important;
}

.cursor-not-allowed {
  cursor: not-allowed !important;
}

/* ===== ANIMATIONS ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.3s ease-out;
}

.animate-slide-in-down {
  animation: slideInDown 0.3s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 575.98px) {
  .d-sm-none {
    display: none !important;
  }

  .d-sm-block {
    display: block !important;
  }

  .d-sm-flex {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-block {
    display: block !important;
  }

  .d-md-flex {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-block {
    display: block !important;
  }

  .d-lg-flex {
    display: flex !important;
  }
}

@media (max-width: 1199.98px) {
  .d-xl-none {
    display: none !important;
  }

  .d-xl-block {
    display: block !important;
  }

  .d-xl-flex {
    display: flex !important;
  }
}

/* ===== PRINT STYLES ===== */

@media print {

  *,
  *::before,
  *::after {
    text-shadow: none !important;
    box-shadow: none !important;
  }

  a:not(.btn) {
    text-decoration: underline;
  }

  pre,
  blockquote {
    border: 1px solid #adb5bd;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  @page {
    size: a3;
  }

  body {
    min-width: 992px !important;
  }

  .container {
    min-width: 992px !important;
  }

  .navbar {
    display: none;
  }

  .badge {
    border: 1px solid #000;
  }

  .table {
    border-collapse: collapse !important;
  }

  .table td,
  .table th {
    background-color: #fff !important;
  }
}

/* dashboard */
body,
.main-content,
.container-fluid {
  background: var(--bg) !important;
}

.num {
  font-family: var(--num-font) !important;
  font-feature-settings: "tnum";
  letter-spacing: -0.03em;
}

/* ─── Page Header ─── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(59, 125, 255, 0.30);
}

.dash-header-title {
  font-family: var(--num-font) !important;
  font-size: 22px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.dash-header-sub {
  font-size: 13px;
  color: var(--txt-2);
  margin-top: 2px;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-2);
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: blink 2s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.10);
  }
}

.date-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-2);
  box-shadow: var(--shadow-sm);
}

.sec-div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 20px;
}

.sec-div-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--txt-3);
  white-space: nowrap;
}

.sec-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.coin-card {
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  margin-bottom: 22px;
  color: #fff;
}

.coin-card:hover {
  transform: translateY(-5px);
}

.cc-blue {
  background: linear-gradient(135deg, #3b7dff 0%, #7c4dff 100%);
  box-shadow: 0 10px 32px rgba(59, 125, 255, 0.30);
}

.cc-green {
  background: linear-gradient(135deg, #10b981 0%, #00bfa5 100%);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.30);
}

.cc-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.30);
}

.cc-rose {
  background: linear-gradient(135deg, #f7295a 0%, #ec4899 100%);
  box-shadow: 0 10px 32px rgba(247, 41, 90, 0.30);
}

.coin-card .cc-orb1 {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: -30px;
  right: -20px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.coin-card .cc-orb2 {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  bottom: -20px;
  right: 40px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.cc-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 14px;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.cc-value {
  font-family: var(--num-font) !important;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 5px;
}

.cc-label {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
}

.cc-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
  margin-top: 3px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kc-blue::after {
  background: linear-gradient(90deg, #3b7dff, #7c4dff);
}

.kc-rose::after {
  background: linear-gradient(90deg, #f7295a, #f97316);
}

.kc-amber::after {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.kc-green::after {
  background: linear-gradient(90deg, #10b981, #00bfa5);
}

.kc-violet::after {
  background: linear-gradient(90deg, #7c4dff, #ec4899);
}

.kc-cyan::after {
  background: linear-gradient(90deg, #00bfa5, #3b7dff);
}

.kc-indigo::after {
  background: linear-gradient(90deg, #6366f1, #3b7dff);
}

.kpi-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: -50px;
  right: -50px;
  opacity: 0.06;
  filter: blur(40px);
  pointer-events: none;
}

.kc-blue .kpi-orb {
  background: #3b7dff;
}

.kc-rose .kpi-orb {
  background: #f7295a;
}

.kc-amber .kpi-orb {
  background: #f59e0b;
}

.kc-green .kpi-orb {
  background: #10b981;
}

.kc-violet .kpi-orb {
  background: #7c4dff;
}

.kc-cyan .kpi-orb {
  background: #00bfa5;
}

.kc-indigo .kpi-orb {
  background: #6366f1;
}

.kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.kc-blue .kpi-icon {
  background: rgba(59, 125, 255, 0.10);
  color: #3b7dff;
}

.kc-rose .kpi-icon {
  background: rgba(247, 41, 90, 0.10);
  color: #f7295a;
}

.kc-amber .kpi-icon {
  background: rgba(245, 158, 11, 0.10);
  color: #f59e0b;
}

.kc-green .kpi-icon {
  background: rgba(16, 185, 129, 0.10);
  color: #10b981;
}

.kc-violet .kpi-icon {
  background: rgba(124, 77, 255, 0.10);
  color: #7c4dff;
}

.kc-cyan .kpi-icon {
  background: rgba(0, 191, 165, 0.10);
  color: #00bfa5;
}

.kc-indigo .kpi-icon {
  background: rgba(99, 102, 241, 0.10);
  color: #6366f1;
}

.kpi-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
}

.b-up {
  background: rgba(16, 185, 129, 0.10);
  color: #10b981;
}

.b-dn {
  background: rgba(247, 41, 90, 0.10);
  color: #f7295a;
}

.b-neu {
  background: rgba(100, 116, 139, 0.10);
  color: #64748b;
}

.kpi-value {
  font-family: var(--num-font) !important;
  font-size: 34px;
  font-weight: 900;
  color: var(--txt);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 5px;
}

.kpi-label {
  font-size: 12.5px;
  color: var(--txt-2);
  font-weight: 500;
}

.wid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.wid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.wid-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wi-blue {
  background: rgba(59, 125, 255, 0.10);
  color: #3b7dff;
}

.wi-cyan {
  background: rgba(0, 191, 165, 0.10);
  color: #00bfa5;
}

.wi-violet {
  background: rgba(124, 77, 255, 0.10);
  color: #7c4dff;
}

.wi-green {
  background: rgba(16, 185, 129, 0.10);
  color: #10b981;
}

.wi-amber {
  background: rgba(245, 158, 11, 0.10);
  color: #f59e0b;
}

.wi-rose {
  background: rgba(247, 41, 90, 0.10);
  color: #f7295a;
}

.wi-orange {
  background: rgba(249, 115, 22, 0.10);
  color: #f97316;
}

.wi-indigo {
  background: rgba(99, 102, 241, 0.10);
  color: #6366f1;
}

.wi-pink {
  background: rgba(236, 72, 153, 0.10);
  color: #ec4899;
}

.wi-teal {
  background: rgba(20, 184, 166, 0.10);
  color: #14b8a6;
}

.wid-label {
  font-size: 12px;
  color: var(--txt-2);
  font-weight: 500;
  margin-bottom: 3px;
}

.wid-value {
  font-family: var(--num-font) !important;
  font-size: 20px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.5px;
}

.task-section-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 8px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.task-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.task-section-title {
  font-family: var(--num-font) !important;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
}

.task-section-sub {
  font-size: 12px;
  color: var(--txt-2);
  margin-top: 2px;
}

.task-refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-2);
  cursor: pointer;
  transition: all 0.18s;
}

.task-refresh-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.task-refresh-btn i {
  font-size: 13px;
  transition: transform 0.4s;
}

.task-refresh-btn.spinning i {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 1200px) {
  .task-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .task-grid {
    grid-template-columns: 1fr;
  }
}

.task-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.11);
}

.task-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.task-card-today-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(59, 125, 255, 0.10);
  color: var(--blue);
}

.task-card-count {
  font-family: var(--num-font) !important;
  font-size: 28px;
  font-weight: 900;
  color: var(--txt);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}

.task-card-label {
  font-size: 12px;
  color: var(--txt-2);
  font-weight: 600;
}

.task-card-bar-wrap {
  margin-top: 12px;
  height: 4px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  overflow: hidden;
}

.task-card-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(.4, 0, .2, 1);
  width: 0%;
}

.task-skeleton {
  background: linear-gradient(90deg, #f0f3fa 25%, #e5eaf4 50%, #f0f3fa 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
  height: 110px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.chart-title {
  font-family: var(--num-font) !important;
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
}

.chart-sub {
  font-size: 12px;
  color: var(--txt-2);
  margin-top: 2px;
}

.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-2);
  cursor: pointer;
  transition: all 0.18s;
}

.chip.active,
.chip:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(59, 125, 255, 0.25);
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.sum-row:last-child {
  border-bottom: none;
}

.sum-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sum-key {
  font-size: 13px;
  color: var(--txt-2);
  font-weight: 500;
}

.sum-val {
  font-family: var(--num-font) !important;
  font-size: 15px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.3px;
}

.fu {
  animation: fu 0.4s ease both;
}

.d1 {
  animation-delay: .04s
}

.d2 {
  animation-delay: .08s
}

.d3 {
  animation-delay: .12s
}

.d4 {
  animation-delay: .16s
}

.d5 {
  animation-delay: .20s
}

.d6 {
  animation-delay: .24s
}

.d7 {
  animation-delay: .28s
}

.d8 {
  animation-delay: .32s
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #dde2ed;
  border-radius: 3px;
}

select.form-control,
.form-control select {
  color: var(--text-primary) !important;
  /* Fix invisible text */
  color: #111827 !important;
  /* Fallback color */
  background-color: #ffffff !important;
  padding: 0.75rem 3rem 0.75rem 1rem !important;
  /* Fixed padding */
  min-height: 46px !important;
  /* Minimum height */
  line-height: 1.5 !important;
  font-size: 0.9375rem !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

/* Make sure select options are visible */
select.form-control option,
.form-control select option {
  color: #111827 !important;
  background-color: #ffffff !important;
  padding: 10px !important;
}

/* Fix select arrow positioning */
select.form-control {
  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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
}

/* Fix for disabled selects */
select.form-control:disabled,
.form-control select:disabled {
  background-color: #f3f4f6 !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Fix for focused selects */
select.form-control:focus,
.form-control select:focus {
  color: #111827 !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* Additional fix for any input-group selects */
.input-group select.form-control {
  color: #111827 !important;
  min-height: 46px !important;
}

/* Fix for multiple select */
select.form-control[multiple] {
  min-height: 120px !important;
  padding-right: 1rem !important;
  background-image: none !important;
}

/* Make sure select text is visible in all states */
select.form-control,
select.form-control:active,
select.form-control:visited {
  color: #111827 !important;
}

/* ===== FIX FOR MODAL CENTERING ISSUE ===== */
/* Add this AFTER your main CSS file to fix modal positioning */

/* Fix modal dialog centering */
.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto !important; /* Center horizontally with auto margins */
  pointer-events: none;
  max-width: 500px; /* Default max-width */
}

/* Ensure modal is properly centered vertically and horizontally */
.modal.show .modal-dialog {
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  min-height: calc(100% - 3.5rem) !important;
}

/* Fix for fade animation */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out !important;
  transform: translate(0, -50px) !important;
}

/* Different modal sizes - all centered */
.modal-dialog.modal-sm {
  max-width: 300px !important;
  margin: 1.75rem auto !important;
}

.modal-dialog.modal-lg {
  max-width: 800px !important;
  margin: 1.75rem auto !important;
}

.modal-dialog.modal-xl {
  max-width: 1140px !important;
  margin: 1.75rem auto !important;
}

/* Ensure modal takes full viewport */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1050 !important;
  display: none;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
}

/* When modal is shown */
.modal.show {
  display: block !important;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1040 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #000 !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
}

/* Vertically center modal */
@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px !important;
    margin: 1.75rem auto !important;
  }
  
  .modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
  }
  
  .modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 3.5rem);
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    content: "";
  }
}

/* Fix for scrollable modals */
.modal-dialog-scrollable {
  display: flex !important;
  max-height: calc(100% - 3.5rem) !important;
  margin: 1.75rem auto !important;
}

.modal-dialog-scrollable .modal-content {
  max-height: calc(100vh - 3.5rem) !important;
  overflow: hidden !important;
}

.modal-dialog-scrollable .modal-body {
  overflow-y: auto !important;
}

/* Ensure modal content doesn't overflow */
.modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  pointer-events: auto !important;
  background-color: var(--bg-primary) !important;
  background-clip: padding-box !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-2xl) !important;
  box-shadow: var(--shadow-2xl) !important;
  outline: 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0.5rem !important;
    max-width: calc(100% - 1rem) !important;
  }
  
  .modal-dialog-centered {
    min-height: calc(100% - 1rem) !important;
  }
}

/* Additional centering for Bootstrap modals */
.modal-open {
  overflow: hidden !important;
}

.modal-open .modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Perfect centering trick */
.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  min-height: calc(100% - 1rem) !important;
  margin: 0.5rem auto !important;
}

@media (min-width: 576px) {
  .modal-dialog-centered {
    min-height: calc(100% - 3.5rem) !important;
    margin: 1.75rem auto !important;
  }
}

/* Fix for any transform issues */
.modal.show .modal-dialog {
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  transform: none !important;
}

/* user page  */
.users-page-wrapper {
    padding: 24px;
    background: var(--bg);
}

.users-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.users-title {
    font-family: var(--num-font);
    font-size: 22px;
    font-weight: 800;
    color: var(--txt);
    margin: 0;
}

.users-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.show-entries {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--txt-2);
}

.show-entries select {
    padding: 6px 32px 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--txt);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.export-buttons {
    display: flex;
    gap: 6px;
}

.export-btn {
    padding: 7px 14px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-copy {
    background: #3b7dff;
    color: white;
}

.btn-csv {
    background: #10b981;
    color: white;
}

.btn-excel {
    background: #f59e0b;
    color: white;
}

.btn-pdf {
    background: #7c4dff;
    color: white;
}

.btn-print {
    background: #64748b;
    color: white;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 200px;
    color: var(--txt);
    background: var(--surface);
}

.search-box input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 125, 255, 0.1);
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-3);
    pointer-events: none;
}

/* ===== MODERN TABLE ===== */

.modern-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.modern-table thead {
    background: linear-gradient(to bottom, #fafbfc, #f7f9fc);
    border-bottom: 2px solid var(--border);
}

.modern-table thead th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--txt-2);
    text-align: left;
    white-space: nowrap;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.modern-table tbody tr:hover {
    background: #f9fafb;
}

.modern-table tbody td {
    padding: 14px 16px;
    font-size: 13.5px;
    color: var(--txt);
    vertical-align: middle;
}

/* User Profile Cell */
.user-profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #3b7dff, #7c4dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

.user-name {
    font-weight: 700;
    color: var(--txt);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: #1d1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.status-dark {
    background: rgba(42, 52, 49, 0.12);
    color: #1e201f;
}

.status-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.status-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.status-pending::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

/* Compact Info Display */
.compact-info {
    font-size: 13px;
    color: var(--txt);
    font-weight: 600;
}

.info-label {
    font-size: 10px;
    color: var(--txt-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

/* Balance Display */
.balance-display {
    font-family: var(--num-font);
    font-size: 16px;
    font-weight: 800;
    color: var(--txt);
    letter-spacing: -0.3px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.btn-update {
    background: rgba(59, 125, 255, 0.12);
    color: #3b7dff;
}

.btn-update:hover {
    background: #3b7dff;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 125, 255, 0.3);
}

.btn-track {
    background: rgba(17, 24, 39, 0.12);
    color: #111827;
}

.btn-track:hover {
    background: #111827;
    color: white;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

.btn-history {
    background: rgba(124, 77, 255, 0.12);
    color: #7c4dff;
}

.btn-history:hover {
    background: #7c4dff;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ID Badge */
.id-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-family: var(--num-font);
    font-size: 12px;
    font-weight: 800;
    color: var(--txt-2);
}

/* Phone Hidden for Space */
.phone-hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .phone-hidden {
        display: none;
    }
}

@media (max-width: 1200px) {
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .users-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .export-buttons {
        flex-wrap: wrap;
    }
    
    .search-box input {
        min-width: 100%;
    }
}

/* Tooltip for hidden info */
.info-tooltip {
    position: relative;
    cursor: help;
}

.info-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1f2937;
    color: white;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

/* Loading State */
.table-loading {
    text-align: center;
    padding: 40px;
    color: var(--txt-3);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--txt-3);
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 15px;
    color: var(--txt-2);
}
.navbar-toggler {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 767.98px) {
  .d-lg-none {
    display: block !important;
  }
  
}