/* ============================================
   SMM PANEL MODERN THEME - LIGHT & DARK MODE
   ============================================ */

/* Hide disabled options in Select2 - multiple selectors for compatibility */
.select2-results__option[aria-disabled="true"],
.select2-results__option.select2-results__option--disabled,
.select2-container--default .select2-results__option[aria-disabled="true"],
.select2-results__option[aria-disabled="true"][aria-selected="false"] {
    display: none !important;
}

/* Hide options with hidden attribute in native select */
select option[hidden],
select option:disabled[hidden],
select option[disabled][hidden] {
    display: none !important;
}

/* Force hide disabled options in dropdown */
.select2-dropdown .select2-results__option[aria-disabled="true"] {
    display: none !important;
}

/* Hide options with data-hidden attribute */
select option[data-hidden="true"] {
    display: none !important;
}


/* Only show Select2 options that are not disabled */
.select2-results__option:not([aria-selected="true"])[aria-disabled="true"] {
    display: none !important;
}

/* Hide categories marked as hidden */
option.hidden-category {
    display: none !important;
}

/* Immediately hide Select2 options that match hidden categories */
.select2-container--open .select2-results__option {
    display: block;
}

/* Create a style tag dynamically via JS to hide specific options */
.select2-results__option[data-select2-hidden="true"] {
    display: none !important;
}

/* CSS Variables for Theming */
:root {
    /* Brand Colors */
    --primary: #25B27D;
    --primary-dark: #22A571;
    --primary-light: #2EC88A;
    --primary-rgb: 37, 178, 125;
    
    --secondary: #6366F1;
    --secondary-dark: #5558E8;
    --secondary-light: #8B5CF6;
    --secondary-rgb: 99, 102, 241;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-active: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-active: #475569;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-inverse: #0f172a;
    
    --border-color: #334155;
    --border-light: #475569;
    --border-dark: #1e293b;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(51, 65, 85, 0.5);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVBAR - CLEAN PROFESSIONAL
   ============================================ */

/* Navbar avec gradient moderne */
.navbar {
    background: linear-gradient(135deg, #25B27D 0%, #3ED2A0 50%, #2970E6 100%);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(37, 178, 125, 0.2);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance subtile */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Dark mode - Gradient plus sombre et sophistiqué */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #1a8b5a 0%, #2a9d7a 50%, #1e5cb8 100%);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-header {
    min-height: 50px;
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: white !important;
    height: 50px;
    padding: 15px;
    line-height: 20px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.navbar-brand img {
    height: 35px;
    filter: brightness(0) invert(1);
}

.navbar-default .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 15px;
    line-height: 20px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
}

.navbar-default .navbar-nav > li > a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-default .navbar-nav > li > a:focus {
    outline: none;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-default .navbar-nav > li > a:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav > .active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Navbar toggle button */
.navbar-default .navbar-toggle {
    border-color: var(--border-color);
    margin-top: 13px;
    margin-bottom: 13px;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: var(--bg-hover);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: var(--text-secondary);
}

/* Dropdown improvements */
.navbar-nav .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Balance Badge */
.navbar .badge {
    background: rgba(255, 255, 255, 0.9);
    color: #2970E6;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    box-shadow: var(--shadow-sm);
}

.theme-toggle .toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    color: var(--text-tertiary);
}

.theme-toggle .toggle-icon.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.3);
}

.theme-toggle .toggle-icon:not(.active) {
    opacity: 0.5;
}

/* Theme toggle in navbar */
.navbar .theme-toggle-wrapper {
    padding: 0;
}

.navbar .theme-toggle-wrapper .theme-toggle {
    margin: 11px 15px;
}

/* ============================================
   CARDS & PANELS - CLEAN MODERN STYLE
   ============================================ */

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.panel:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.panel-default {
    border-color: var(--border-color);
}

.panel-default > .panel-heading {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.panel-heading {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 7px 7px 0 0;
    font-weight: 500;
}

.panel-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.panel-body {
    padding: 15px;
}

.well {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: none;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.well:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ============================================
   BUTTONS - CLEAN PROFESSIONAL STYLE
   ============================================ */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(0);
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
    transform: translateY(-1px);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2);
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

.btn-default {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-default:hover {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-default:focus {
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.15);
}

.btn-default:active {
    transform: scale(0.98);
    background: var(--bg-tertiary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-success {
    background: #10B981;
    border-color: #10B981;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-success:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-danger {
    background: #EF4444;
    border-color: #EF4444;
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.btn-danger:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-warning {
    background: #F59E0B;
    border-color: #F59E0B;
}

.btn-warning:hover {
    background: #D97706;
    border-color: #D97706;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.btn-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.btn-warning:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.btn-info {
    background: #3B82F6;
    border-color: #3B82F6;
}

.btn-info:hover {
    background: #2563EB;
    border-color: #2563EB;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.btn-info:focus {
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2);
}

.btn-info:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Button sizes */
.btn-lg {
    padding: 12px 24px;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Floating Action Button */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-floating:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   UNIFIED BUTTON STYLES - OVERRIDE ALL BOOTSTRAP
   ============================================ */

/* Remove ALL default button styles from Bootstrap and browsers */
button,
.btn,
.btn-primary,
.btn-default,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-link,
.btn-outline-primary,
.btn-outline-secondary,
.btn-sm,
.btn-lg,
.btn-block,
[type="button"],
[type="submit"],
[type="reset"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    outline-offset: 0 !important;
}

/* Override Bootstrap btn-primary completely */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.focus,
.btn-primary.active,
.btn-primary:active:focus,
.btn-primary.active:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background: #25B27D !important;
    background-color: #25B27D !important;
    border-color: #25B27D !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):hover {
    background: #22A571 !important;
    background-color: #22A571 !important;
    border-color: #22A571 !important;
    box-shadow: 0 6px 20px rgba(37, 178, 125, 0.2) !important;
    transform: translateY(-1px) !important;
}

.btn-primary:focus,
.btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):focus {
    background: #25B27D !important;
    background-color: #25B27D !important;
    border-color: #25B27D !important;
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2) !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: #22A571 !important;
    background-color: #22A571 !important;
    border-color: #22A571 !important;
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(37, 178, 125, 0.15) !important;
}

/* Remove ALL focus/active artifacts from Bootstrap */
.btn:focus,
.btn:active,
.btn.active,
.btn:active:focus,
.btn.active:focus,
button:focus,
button:active,
button.active,
.btn-primary:focus,
.btn-primary:active,
.btn-default:focus,
.btn-default:active,
.btn-success:focus,
.btn-success:active,
.btn-danger:focus,
.btn-danger:active,
.btn-warning:focus,
.btn-warning:active,
.btn-info:focus,
.btn-info:active {
    outline: none !important;
    outline-offset: 0 !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Disable Bootstrap's focus box-shadow globally */
.btn:focus:not(:focus-visible) {
    box-shadow: none !important;
}

/* Apply our custom focus styles AFTER reset */
.btn:focus,
.btn-primary:focus,
button:focus {
    border: 1px solid var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2) !important;
}

.btn-success:focus {
    border: 1px solid #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.btn-danger:focus {
    border: 1px solid #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.btn-warning:focus {
    border: 1px solid #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.btn-info:focus {
    border: 1px solid #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2) !important;
}

.btn-default:focus {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.15) !important;
}

/* Apply our active styles */
.btn:active,
.btn-primary:active,
button:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(37, 178, 125, 0.15) !important;
}

/* Override Bootstrap transition on buttons */
.btn,
button,
[type="button"],
[type="submit"],
[type="reset"] {
    -webkit-transition: all 0.2s ease !important;
    -moz-transition: all 0.2s ease !important;
    -o-transition: all 0.2s ease !important;
    transition: all 0.2s ease !important;
}

/* Remove text decoration on hover for button links */
a.btn:hover,
a.btn:focus {
    text-decoration: none !important;
}


/* Ensure ALL buttons get our hover effect */
button:not(.select2-selection__choice__remove):hover,
.btn:hover,
[type="button"]:hover,
[type="submit"]:hover,
[type="reset"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Ensure ALL buttons get our active effect */
button:not(.select2-selection__choice__remove):active,
.btn:active,
[type="button"]:active,
[type="submit"]:active,
[type="reset"]:active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Remove any remaining outlines */
*:focus {
    outline: none !important;
}

/* Only apply focus ring to interactive elements that need it */
.btn:focus-visible,
button:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.2) !important;
}

/* ============================================
   FORMS
   ============================================ */

.form-control,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 8px 12px;
    height: auto;
    transition: all 0.2s ease;
}

.form-control:focus,
textarea.form-control:focus,
input:focus,
select.form-control:focus {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
    outline: none;
}

.form-control::placeholder,
textarea::placeholder,
input::placeholder {
    color: var(--text-tertiary);
}

/* Textarea specific */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Checkboxes and Radio Buttons */
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Custom checkbox styling */
.checkbox label,
.radio label {
    color: var(--text-primary);
    font-weight: 400;
    cursor: pointer;
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
    margin-top: 4px;
}

/* Input sizes */
.input-lg {
    padding: 12px 16px;
    font-size: 1.125rem;
    border-radius: 8px;
}

.input-sm {
    padding: 6px 10px;
    font-size: 0.875rem;
    border-radius: 4px;
}

/* Input groups */
.input-group-addon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
}

.input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: 0 6px 6px 0;
}

.input-group .form-control:last-child {
    border-radius: 6px 0 0 6px;
}

/* Custom Select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.table > thead > tr > th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem;
}

.table > tbody > tr > td {
    color: var(--text-secondary);
    padding: 1rem;
    border-top: 1px solid var(--border-light);
}

.table > tbody > tr:hover {
    background: var(--bg-hover);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: var(--bg-secondary);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #059669;
    border-left: 4px solid #10B981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #DC2626;
    border-left: 4px solid #EF4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    color: #D97706;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #2563EB;
    border-left: 4px solid #3B82F6;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-menu > li > a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--bg-hover);
    color: var(--primary);
}

.dropdown-menu > .active > a, 
.dropdown-menu > .active > a:hover, 
.dropdown-menu > .active > a:focus{
    background: var(--gradient-primary);
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true]{
    background:none !important;
}
.select2-container--default .select2-selection--single{
    border:1px solid var(--border-color);
}
/* ============================================
   BADGES & LABELS
   ============================================ */

.badge, .label {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
}

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

.badge-success, .label-success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.badge-warning, .label-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.badge-danger, .label-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

/* ============================================
   MODALS
   ============================================ */

.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    padding: 1rem 1.5rem;
}

/* ============================================
   SIMPLE TRANSITIONS
   ============================================ */

/* Smooth transitions for interactive elements */
a, button, .btn, .panel, .well, .service-card {
    transition: all 0.2s ease;
}

/* Focus states for accessibility */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 178, 125, 0.1);
}

a:focus {
    outline: none;
    text-decoration: none;
}

/* ============================================
   SERVICE CARDS - CLEAN PROFESSIONAL
   ============================================ */

.service-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   STATS CARDS
   ============================================ */

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-change {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* ============================================
   NAV TABS & NAV PILLS
   ============================================ */

.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs > li > a {
    color: var(--text-secondary);
    border: none;
    border-radius: 6px 6px 0 0;
    padding: 10px 16px;
    margin-right: 4px;
    transition: all 0.2s ease;
}

.nav-tabs > li > a:hover {
    background: var(--bg-hover);
    border-color: transparent;
    color: var(--primary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    color: var(--primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-color: var(--bg-card);
}

.nav-pills > li > a {
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 8px 16px;
    margin: 2px;
    transition: all 0.2s ease;
}

.nav-pills > li > a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background: var(--primary);
    color: white;
}

/* Tab content */
.tab-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 6px 6px;
}

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

@media (max-width: 768px) {
    .navbar-nav {
        background: var(--bg-card);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 0.5rem;
    }
    
    .theme-toggle {
        margin: 1rem auto;
        display: flex;
        width: fit-content;
    }
    
    .btn-floating {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */

.rtl-navbar {
    direction: rtl;
}

.rtl-form {
    direction: rtl;
    text-align: right;
}

.rtl-alert {
    direction: rtl;
    text-align: right;
}

.rtl-content {
    direction: rtl;
    text-align: right;
}

[data-theme="dark"] .rtl-navbar,
[data-theme="dark"] .rtl-form,
[data-theme="dark"] .rtl-alert,
[data-theme="dark"] .rtl-content {
    direction: rtl;
}


/* ============================================
   THEME TOGGLE STYLES
   ============================================ */

.theme-toggle-wrapper {
    display: inline-block;
    vertical-align: middle;
}

.theme-toggle-wrapper .theme-toggle {
    margin: 0;
}

/* Mobile view for theme toggle */
@media (max-width: 767px) {
    .navbar-nav .theme-toggle-wrapper {
        padding: 10px 15px;
    }
    
    .navbar-nav .theme-toggle-wrapper .theme-toggle {
        margin: 0;
        width: auto;
        display: inline-flex;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

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

/* ============================================
   LOADER ANIMATION
   ============================================ */

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-bottom-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

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

/* ============================================
   UTILITIES
   ============================================ */

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

.bg-primary-gradient { background: var(--gradient-primary) !important; }
.bg-secondary-gradient { background: var(--gradient-secondary) !important; }

.rounded { border-radius: 12px !important; }
.rounded-lg { border-radius: 16px !important; }
.rounded-full { border-radius: 50% !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Spacing Utilities */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }

/* ============================================
   DARK MODE STYLES FOR DROPDOWNS & SELECT2
   ============================================ */

/* Native select dropdowns in dark mode */
[data-theme="dark"] select,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .border-rounded {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] select:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 178, 125, 0.25);
}

/* Select2 container in dark mode */
[data-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary);
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-secondary) transparent transparent transparent;
}

/* Select2 dropdown in dark mode */
[data-theme="dark"] .select2-dropdown {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .select2-search--dropdown {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .select2-search--dropdown .select2-search__field:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary);
}

[data-theme="dark"] .select2-results {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .select2-results__option {
    color: var(--text-primary);
}

[data-theme="dark"] .select2-results__option[aria-selected="true"] {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .select2-results__option--disabled {
    color: var(--text-tertiary);
}

/* Input fields and textboxes in dark mode */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] textarea {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] input[type="text"]:focus,
[data-theme="dark"] input[type="number"]:focus,
[data-theme="dark"] input[type="email"]:focus,
[data-theme="dark"] input[type="password"]:focus,
[data-theme="dark"] input[type="search"]:focus,
[data-theme="dark"] textarea:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 178, 125, 0.25);
}

/* Searchbar specific styles */
[data-theme="dark"] .searchbar,
[data-theme="dark"] .search-container,
[data-theme="dark"] .search-box {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .searchbar input,
[data-theme="dark"] .search-container input,
[data-theme="dark"] .search-box input {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .searchbar input:focus,
[data-theme="dark"] .search-container input:focus,
[data-theme="dark"] .search-box input:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
}

/* Dropdown suggestions in searchbar */
[data-theme="dark"] .search-suggestions,
[data-theme="dark"] .searchbar-suggestions,
[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-suggestions li,
[data-theme="dark"] .searchbar-suggestions li,
[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .search-suggestions li:hover,
[data-theme="dark"] .searchbar-suggestions li:hover,
[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-tertiary);
}

/* Platform, Service Group, Category dropdowns specific */
[data-theme="dark"] #orderform-platform,
[data-theme="dark"] #orderform-service-group,
[data-theme="dark"] #orderform-category {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}