/* =============================================
   ADVANTIX - Global Styling System
   ============================================= */

/* CSS Variables */
:root {
  /* Primary Colors */
  --advantix-primary: #667eea;
  --advantix-secondary: #764ba2;
  --advantix-accent-start: #f093fb;
  --advantix-accent-end: #f5576c;
  
  /* Gradients */
  --advantix-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --advantix-gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --advantix-gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --advantix-gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --advantix-gradient-dark: linear-gradient(135deg, #434343 0%, #000000 100%);
  
  /* Shadows */
  --advantix-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --advantix-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --advantix-shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  /* Border Radius */
  --advantix-radius-sm: 0.375rem;
  --advantix-radius-md: 0.5rem;
  --advantix-radius-lg: 0.75rem;
  
  /* Text Colors */
  --advantix-text-primary: #2d3748;
  --advantix-text-secondary: #718096;
  --advantix-text-muted: #a0aec0;
}

/* Base Styles */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8fafc;
  color: var(--advantix-text-primary);
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--advantix-primary);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* =============================================
   NAVBAR STYLING
   ============================================= */

.advantix-navbar {
  background: var(--advantix-gradient-primary) !important;
  box-shadow: var(--advantix-shadow-md);
  border: none !important;
}

.advantix-navbar .navbar-brand {
  color: white !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.advantix-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.advantix-navbar .nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

.advantix-navbar .navbar-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.advantix-navbar .btn-link.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.advantix-navbar .btn-link.nav-link:hover {
  color: white !important;
}

.advantix-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

.advantix-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =============================================
   FOOTER STYLING
   ============================================= */

.advantix-footer {
  background: var(--advantix-gradient-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
  border-top: 3px solid var(--advantix-primary);
}

.advantix-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.advantix-footer a:hover {
  color: white;
}

/* =============================================
   CARD STYLING
   ============================================= */

.advantix-card {
  background: #fff;
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-sm);
  border: none;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.advantix-card:hover {
  box-shadow: var(--advantix-shadow-md);
}

.advantix-card .card-header {
  background: var(--advantix-gradient-primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem 1.25rem;
}

.advantix-card .card-header h5,
.advantix-card .card-header .h5 {
  color: white;
  margin: 0;
}

.advantix-card .card-body {
  padding: 1.5rem;
}

.advantix-card-accent .card-header {
  background: var(--advantix-gradient-accent);
}

.advantix-card-success .card-header {
  background: var(--advantix-gradient-success);
}

.advantix-card-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-sm);
}

.advantix-card-light .card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  color: var(--advantix-text-primary);
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.advantix-card-light .card-header h5,
.advantix-card-light .card-header .h5 {
  color: var(--advantix-text-primary);
  margin: 0;
}

.advantix-card-light .card-body {
  background: #ffffff;
  color: var(--advantix-text-primary);
  padding: 1.5rem;
}

.advantix-card-light .card-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: var(--advantix-text-secondary);
  padding: 1rem 1.25rem;
}

/* =============================================
   KPI CARDS
   ============================================= */

.advantix-kpi-section {
  background: #fff;
  border-radius: var(--advantix-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--advantix-shadow-sm);
}

.advantix-kpi-card {
  background: var(--advantix-gradient-primary);
  border-radius: var(--advantix-radius-md);
  padding: 1.5rem;
  color: white;
  text-align: center;
  box-shadow: var(--advantix-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantix-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--advantix-shadow-md);
}

.advantix-kpi-card.kpi-accent {
  background: var(--advantix-gradient-accent);
}

.advantix-kpi-card.kpi-success {
  background: var(--advantix-gradient-success);
}

.advantix-kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.advantix-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.advantix-kpi-description {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* =============================================
   BUTTON STYLING
   ============================================= */

.btn-advantix-primary {
  background: var(--advantix-gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--advantix-radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-advantix-primary:hover {
  background: var(--advantix-gradient-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-advantix-primary:active {
  transform: translateY(0);
}

.btn-advantix-accent {
  background: var(--advantix-gradient-accent);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--advantix-radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-advantix-accent:hover {
  background: var(--advantix-gradient-accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-advantix-outline {
  background: transparent;
  border: 2px solid var(--advantix-primary);
  color: var(--advantix-primary);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--advantix-radius-sm);
  transition: all 0.2s ease;
}

.btn-advantix-outline:hover {
  background: var(--advantix-gradient-primary);
  border-color: transparent;
  color: white;
}

/* Override Bootstrap primary buttons */
.btn-primary {
  background: var(--advantix-gradient-primary);
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--advantix-gradient-primary);
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-primary:active {
  background: var(--advantix-gradient-primary) !important;
  transform: translateY(0);
}

/* Override Bootstrap secondary buttons */
.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover, .btn-secondary:focus {
  background: linear-gradient(135deg, #5a6268 0%, #3d4246 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-secondary:active {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
  transform: translateY(0);
}

/* Override Bootstrap danger buttons */
.btn-danger {
  background: var(--advantix-gradient-accent);
  border: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-danger:hover, .btn-danger:focus {
  background: var(--advantix-gradient-accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-danger:active {
  background: var(--advantix-gradient-accent) !important;
  transform: translateY(0);
}

/* Override Bootstrap success buttons with Advantix styling */
.btn-success {
  background: var(--advantix-gradient-success);
  border: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-success:hover, .btn-success:focus {
  background: var(--advantix-gradient-success);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-success:active {
  background: var(--advantix-gradient-success) !important;
  color: white;
  transform: translateY(0);
}

/* Global btn-sm sizing - 15% smaller than Bootstrap default */
.btn-sm {
  font-size: 0.75rem;
  padding: 0.21rem 0.425rem;
  border-radius: 0.21rem;
}

.btn-success.btn-sm {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Override Bootstrap outline-success buttons */
.btn-outline-success {
  border: 1px solid #11998e;
  color: #11998e;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-success:hover, .btn-outline-success:focus {
  background: var(--advantix-gradient-success);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-outline-success:active {
  background: var(--advantix-gradient-success) !important;
  border-color: transparent;
  color: white;
}


/* Override Bootstrap outline-primary buttons */
.btn-outline-primary {
  border: 1px solid var(--advantix-primary);
  color: var(--advantix-primary);
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background: var(--advantix-gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-outline-primary:active {
  background: var(--advantix-gradient-primary) !important;
  border-color: transparent;
  color: white;
}

/* Custom styling for export-import tab buttons on dark header */
.export-import-tab {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--advantix-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.export-import-tab:hover, 
.export-import-tab:focus {
  background: var(--advantix-gradient-primary);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.export-import-tab:active {
  background: var(--advantix-gradient-primary) !important;
  border-color: transparent;
  color: white;
  transform: translateY(0);
}

/* Override Bootstrap outline-warning buttons */
.btn-outline-warning {
  border: 1px solid var(--advantix-accent-start);
  color: #f235a9;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-warning:hover, .btn-outline-warning:focus {
  background: var(--advantix-gradient-accent);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-outline-warning:active {
  background: var(--advantix-gradient-accent) !important;
  border-color: transparent;
  color: white;
}

/* Override Bootstrap outline-danger buttons */
.btn-outline-danger {
  border: 1px solid var(--advantix-accent-end);
  color: var(--advantix-accent-end);
  background: transparent;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover, .btn-outline-danger:focus {
  background: var(--advantix-gradient-accent);
  border-color: transparent;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-outline-danger:active {
  background: var(--advantix-gradient-accent) !important;
  border-color: transparent;
  color: white;
}

/* =============================================
   SECTION STYLING
   ============================================= */

.advantix-section {
  background: #fff;
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.advantix-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.advantix-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--advantix-text-primary);
  margin: 0;
}

/* =============================================
   TABLE STYLING
   ============================================= */

.advantix-table {
  border-radius: var(--advantix-radius-md);
  overflow: hidden;
  box-shadow: var(--advantix-shadow-sm);
}

.advantix-table thead {
  background: var(--advantix-gradient-primary);
  color: white;
}

.advantix-table thead th {
  border: none;
  font-weight: 600;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advantix-table tbody tr {
  transition: background-color 0.2s ease;
}

.advantix-table tbody tr:hover {
  background-color: #f8fafc;
}

.advantix-table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: #e2e8f0;
}

/* =============================================
   FORM STYLING
   ============================================= */

.advantix-form-section {
  background: #fff;
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-sm);
  overflow: hidden;
}

.advantix-form-header {
  background: var(--advantix-gradient-primary);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.advantix-form-body {
  padding: 1.5rem;
}

.form-control:focus {
  border-color: var(--advantix-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
  border-color: var(--advantix-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* =============================================
   BADGE STYLING
   ============================================= */

.badge-advantix-primary {
  background: var(--advantix-gradient-primary);
  color: white;
  font-weight: 500;
}

.badge-advantix-accent {
  background: var(--advantix-gradient-accent);
  color: white;
  font-weight: 500;
}

.badge-advantix-success {
  background: var(--advantix-gradient-success);
  color: white;
  font-weight: 500;
}

/* =============================================
   ALERT STYLING
   ============================================= */

.alert {
  border-radius: var(--advantix-radius-md);
  border: none;
  box-shadow: var(--advantix-shadow-sm);
}

.alert-success {
  background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
  border-left: 4px solid #11998e;
  color: #0d5d4b;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
  border-left: 4px solid var(--advantix-accent-end);
  color: #9b2c3d;
}

.alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
  border-left: 4px solid #ffc107;
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-left: 4px solid var(--advantix-primary);
  color: #445ca8;
}

/* =============================================
   HERO SECTION
   ============================================= */

.advantix-hero {
  background: var(--advantix-gradient-primary);
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--advantix-radius-lg);
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--advantix-shadow-lg);
}

.advantix-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.advantix-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.advantix-hero .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.btn-hero-light {
  background: white;
  color: var(--advantix-primary);
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-light:hover {
  background: white;
  color: var(--advantix-secondary);
  transform: translateY(-2px);
  box-shadow: var(--advantix-shadow-md);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* =============================================
   DASHBOARD CARDS
   ============================================= */

.advantix-dashboard-card {
  background: #fff;
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-sm);
  border: none;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.advantix-dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--advantix-shadow-lg);
}

.advantix-dashboard-card .card-header {
  background: var(--advantix-gradient-primary);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem 1.25rem;
}

.advantix-dashboard-card .card-body {
  padding: 1.25rem;
}

.advantix-dashboard-card .card-title {
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

.advantix-dashboard-card .card-text {
  color: var(--advantix-text-secondary);
  margin-bottom: 1rem;
}

/* =============================================
   AUTH PAGES
   ============================================= */

.advantix-auth-container {
  max-width: 420px;
  margin: 2rem auto;
}

.advantix-auth-card {
  background: #fff;
  border-radius: var(--advantix-radius-lg);
  box-shadow: var(--advantix-shadow-lg);
  overflow: hidden;
}

.advantix-auth-header {
  background: var(--advantix-gradient-primary);
  color: white;
  padding: 2rem;
  text-align: center;
}

.advantix-auth-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.advantix-auth-body {
  padding: 2rem;
}

.advantix-auth-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
  color: var(--advantix-text-secondary);
}

.advantix-auth-footer a {
  color: var(--advantix-primary);
  text-decoration: none;
  font-weight: 500;
}

.advantix-auth-footer a:hover {
  color: var(--advantix-secondary);
  text-decoration: underline;
}

/* =============================================
   PAGE TITLE STYLING
   ============================================= */

.advantix-page-title {
  color: var(--advantix-text-primary);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--advantix-primary);
  display: inline-block;
}

/* =============================================
   TAB STYLING
   ============================================= */

.nav-tabs .nav-link {
  color: var(--advantix-text-secondary);
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--advantix-primary);
  border-color: transparent;
  background: rgba(102, 126, 234, 0.05);
}

.nav-tabs .nav-link.active {
  color: var(--advantix-primary);
  font-weight: 600;
  border: none;
  border-bottom: 3px solid var(--advantix-primary);
  background: transparent;
}

/* =============================================
   UTILITIES
   ============================================= */

.text-secondary {
  color: var(--advantix-text-secondary) !important;
}

.text-advantix-primary {
  color: var(--advantix-primary) !important;
}

.text-advantix-accent {
  color: var(--advantix-accent-end) !important;
}

.bg-advantix-primary {
  background: var(--advantix-gradient-primary) !important;
}

.bg-advantix-accent {
  background: var(--advantix-gradient-accent) !important;
}

.shadow-advantix {
  box-shadow: var(--advantix-shadow-md) !important;
}

/* =============================================
   SELECT2 GLOBAL STYLING
   ============================================= */

/* Reduce font size in dropdown results - all variations */
.select2-container--bootstrap-5 .select2-results__option {
  font-size: 0.8rem !important;
  padding: 0.25rem 0.5rem !important;
  line-height: 1.3 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  font-size: 0.8rem !important;
}

.select2-container--bootstrap-5 .select2-results > .select2-results__options {
  font-size: 0.8rem !important;
}

/* Reduce font size in selected items */
.select2-container--bootstrap-5 .select2-selection__rendered {
  font-size: 0.85rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
}

/* Make multi-select height consistent with single select */
.select2-container--bootstrap-5 .select2-selection--multiple {
  min-height: 28px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
  padding: 0 0.5rem !important;
  line-height: 26px !important;
  font-size: 0.85rem !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
  font-size: 0.75rem !important;
  padding: 0.1rem 0.4rem !important;
  margin-top: 0.15rem !important;
  margin-right: 0.25rem !important;
  line-height: 1.2 !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
  font-size: 0.75rem !important;
}

/* Reduce search input size in dropdowns */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
  font-size: 0.8rem !important;
  padding: 0.25rem 0.5rem !important;
}

.select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
  font-size: 0.85rem !important;
}

/* Compact dropdown container */
.select2-container--bootstrap-5 .select2-dropdown {
  font-size: 0.8rem !important;
}

/* Results list container */
.select2-results__options {
  font-size: 0.8rem !important;
}

/* =============================================
   ADVANTIX DROPDOWN MENU STYLING
   ============================================= */

/* Context menu dropdown styling */
.advantix-context-menu {
  border-radius: var(--advantix-radius-md);
  box-shadow: var(--advantix-shadow-md);
  border: 1px solid rgba(102, 126, 234, 0.2);
  padding: 0.5rem 0;
  min-width: 10rem;
}

.advantix-context-menu .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--advantix-text-primary);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advantix-context-menu .dropdown-item i {
  font-size: 0.875rem;
  width: 1rem;
}

.advantix-context-menu .dropdown-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  color: var(--advantix-primary);
  transform: translateX(2px);
}

.advantix-context-menu .dropdown-item.text-danger:hover {
  background: linear-gradient(135deg, rgba(242, 53, 169, 0.1), rgba(255, 121, 63, 0.1));
  color: var(--advantix-accent-end);
}

.advantix-context-menu .dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(102, 126, 234, 0.15);
}

/* Dropdown trigger styling for regular text */
.advantix-dropdown-trigger {
  color: var(--advantix-text-primary);
  text-decoration: none;
  position: relative;
  padding-right: 1rem;
}

.advantix-dropdown-trigger::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

.advantix-dropdown-trigger:hover {
  color: var(--advantix-primary);
}

/* =============================================
   DATA TABLE STYLING (Standard)
   ============================================= */

/* Compact DataTable - consistent styling across all tables */
.advantix-datatable {
  font-size: 0.85rem;
}

.advantix-datatable th,
.advantix-datatable td {
  padding: 0.35rem 0.4rem;
  vertical-align: middle;
}

/* Sortable column styling */
.advantix-datatable .sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.advantix-datatable .sortable:hover {
  background-color: #e9ecef;
}

.advantix-datatable .sortable::after {
  content: ' ↕';
  opacity: 0.3;
  font-size: 0.7em;
}

.advantix-datatable .sortable.asc::after {
  content: ' ↑';
  opacity: 1;
}

.advantix-datatable .sortable.desc::after {
  content: ' ↓';
  opacity: 1;
}

/* No data message styling */
.advantix-datatable-no-data {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
  font-style: italic;
}

/* Pagination controls for datatables */
.advantix-datatable-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

/* Page row visibility toggle */
.advantix-datatable .page-row {
  display: none;
}

.advantix-datatable .page-row.active {
  display: table-row;
}

/* Status badges in datatables */
.advantix-datatable .status-badge {
  font-size: 0.75rem;
  padding: 0.15em 0.4em;
}

/* Variance indicators */
.advantix-datatable .positive-variance {
  color: #198754;
  font-weight: 600;
}

.advantix-datatable .negative-variance {
  color: #dc3545;
  font-weight: 600;
}

.advantix-datatable .zero-variance {
  color: #6c757d;
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 768px) {
  .advantix-hero {
    padding: 2.5rem 1.5rem;
  }
  
  .advantix-hero h1 {
    font-size: 1.75rem;
  }
  
  .advantix-hero p {
    font-size: 1rem;
  }
  
  .advantix-kpi-value {
    font-size: 1.5rem;
  }
  
  .advantix-auth-container {
    margin: 1rem;
    max-width: none;
  }
}
