/**
 * Modern Admin Theme - Zoho-Inspired UI
 * The Global Webs - Advanced ERP System
 * Light, Clean, Modern Design
 * 
 * Safe overrides - doesn't modify core files
 */

/* ========================================
   ROOT VARIABLES - Global ERP Brand Colors
   ======================================== */
:root {
    /* Global ERP Primary Brand Colors */
    --tgw-primary: #41dbf2;
    --tgw-primary-hover: #2ab8d1;
    --tgw-primary-light: #e6f9fd;
    --tgw-primary-dark: #1a9bb3;
    
    /* Secondary Brand Colors */
    --tgw-secondary: #4300FF;
    --tgw-blue: #0065F8;
    --tgw-cyan: #00CAFF;
    --tgw-dark: #050c21;
    
    /* Gradient */
    --tgw-gradient: linear-gradient(135deg, #41dbf2, #0065F8, #4300FF);
    --tgw-gradient-alt: linear-gradient(135deg, #00CAFF, #0065F8);
    
    /* Accent Colors */
    --tgw-accent: #0065F8;
    --tgw-accent-hover: #0056d6;
    --tgw-success: #10B981;
    --tgw-warning: #F59E0B;
    --tgw-danger: #EF4444;
    --tgw-info: #00CAFF;
    
    /* Neutral Palette - Light Theme */
    --tgw-bg-primary: #FFFFFF;
    --tgw-bg-secondary: #F8FAFC;
    --tgw-bg-tertiary: #F1F5F9;
    --tgw-bg-hover: #EFF6FF;
    
    /* Text Colors */
    --tgw-text-primary: #0F172A;
    --tgw-text-secondary: #475569;
    --tgw-text-tertiary: #94A3B8;
    --tgw-text-muted: #CBD5E1;
    
    /* Border Colors */
    --tgw-border-light: #E2E8F0;
    --tgw-border-medium: #CBD5E1;
    --tgw-border-dark: #94A3B8;
    
    /* Shadows */
    --tgw-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --tgw-shadow-md: 0 4px 12px -1px rgba(65, 219, 242, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --tgw-shadow-lg: 0 10px 20px -3px rgba(65, 219, 242, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --tgw-shadow-xl: 0 20px 30px -5px rgba(65, 219, 242, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --tgw-shadow-cyber: 0 0 30px rgba(65, 219, 242, 0.3);
    
    /* Spacing */
    --tgw-spacing-xs: 0.25rem;
    --tgw-spacing-sm: 0.5rem;
    --tgw-spacing-md: 1rem;
    --tgw-spacing-lg: 1.5rem;
    --tgw-spacing-xl: 2rem;
    --tgw-spacing-2xl: 3rem;
    
    /* Border Radius */
    --tgw-radius-sm: 0.5rem;
    --tgw-radius-md: 0.75rem;
    --tgw-radius-lg: 1rem;
    --tgw-radius-xl: 1.25rem;
    
    /* Transitions */
    --tgw-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --tgw-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --tgw-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BODY & LAYOUT IMPROVEMENTS
   ======================================== */
body.modern-theme {
    background: linear-gradient(135deg, #0a1642 0%, #050c21 50%, #0a1642 100%) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--tgw-text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

body.modern-theme #wrapper {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 249, 255, 0.98) 25%, 
        rgba(224, 242, 254, 0.95) 50%, 
        rgba(240, 249, 255, 0.98) 75%, 
        rgba(255, 255, 255, 0.95) 100%) !important;
    padding: var(--tgw-spacing-lg);
    transition: all var(--tgw-transition-base);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    animation: wrapperGlow 8s ease-in-out infinite;
}

/* Animated Background Elements */
body.modern-theme #wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(65, 219, 242, 0.1) 0%, 
        transparent 50%),
        radial-gradient(circle at 70% 50%, 
        rgba(0, 101, 248, 0.08) 0%, 
        transparent 50%);
    animation: rotateBackground 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body.modern-theme #wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(65, 219, 242, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 202, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(0, 101, 248, 0.03) 0%, transparent 30%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Content Container Above Background */
body.modern-theme #wrapper > * {
    position: relative;
    z-index: 1;
}

/* Hide Menu Button Styling */
body.modern-theme .hide-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--tgw-radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    cursor: pointer;
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .hide-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

body.modern-theme .hide-menu i {
    font-size: 18px;
    transition: transform var(--tgw-transition-fast);
}

body.modern-theme .hide-menu:hover i {
    transform: rotate(90deg);
}

/* ========================================
   HEADER - Modern Top Bar with Global ERP Gradient
   ======================================== */
body.modern-theme #header {
    background: var(--tgw-spacing-md);
    border-bottom: none;
    box-shadow: var(--tgw-shadow-cyber);
    height: 64px;
    backdrop-filter: blur(10px);
    transition: all var(--tgw-transition-base);
}

body.modern-theme #header nav {
    padding: 0 var(--tgw-spacing-lg);
}

body.modern-theme #header * {
    color: white !important;
}

body.modern-theme #header .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #header .navbar-nav > li > a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--tgw-radius-sm);
}

/* Logo in Header */
body.modern-theme #header .logo,
body.modern-theme #header .navbar-brand {
    transition: transform var(--tgw-transition-fast);
}

body.modern-theme #header .logo:hover,
body.modern-theme #header .navbar-brand:hover {
    transform: scale(1.05);
}

/* ========================================
   HEADER ICONS - Modern Navigation Icons
   ======================================== */

/* Base Icon Styling - Light Mode */
body.modern-theme #header .icon > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--tgw-radius-md);
    transition: all var(--tgw-transition-fast);
    position: relative;
}

body.modern-theme #header .icon > a svg {
    color: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #header .icon > a:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

body.modern-theme #header .icon > a:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

/* Todo Icon Styling */
body.modern-theme #header .header-todo > a {
    background: rgba(255, 255, 255, 0.1);
}

body.modern-theme #header .header-todo > a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Theme Toggle Icon Styling */
body.modern-theme #header .header-theme-toggle > a {
    background: rgba(255, 255, 255, 0.1);
}

body.modern-theme #header .header-theme-toggle > a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.modern-theme #header .header-theme-toggle > a .theme-icon {
    transition: transform 0.3s ease;
}

body.modern-theme #header .header-theme-toggle > a:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Newsfeed Icon Styling */
body.modern-theme #header .header-newsfeed > a {
    background: rgba(255, 255, 255, 0.1);
}

body.modern-theme #header .header-newsfeed > a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Timer Icon Styling */
body.modern-theme #header .header-timers .top-timers span {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body.modern-theme #header .header-timers .top-timers:hover span {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

body.modern-theme #header .header-timers .top-timers svg {
    color: white !important;
}

/* Notifications Icon Styling */
body.modern-theme #header .header-notifications .notifications-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--tgw-radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #header .header-notifications .notifications-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Badge Styling for Counters */
body.modern-theme #header .nav-total-todos,
body.modern-theme #header .icon-started-timers,
body.modern-theme #header .notifications-total {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%) !important;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    border: 2px solid white;
}

/* Profile Image Styling */
body.modern-theme #header .header-user-profile .staff-profile-image-small {
    border: 2px solid white !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #header .header-user-profile:hover .staff-profile-image-small {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Quick Create Button Styling */
body.modern-theme #header .navbar-nav .tw-bg-primary-600 {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #header .navbar-nav .tw-bg-primary-600:hover,
body.modern-theme #header .navbar-nav .group-hover\:\!tw-bg-primary-700:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Search Bar - Modern Style */
body.modern-theme #top_search input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--tgw-radius-lg) !important;
    padding: 0.625rem 1rem !important;
    padding-right: 2.5rem !important;
    transition: all var(--tgw-transition-fast);
    font-size: 14px;
    color: #0F172A !important;
}

body.modern-theme #top_search input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
}

body.modern-theme #top_search input::placeholder {
    color: #64748B !important;
}

body.modern-theme #top_search_button button {
    color: #475569 !important;
}

body.modern-theme #top_search_button button:hover {
    color: #0F172A !important;
}

/* Search Results Dropdown */
body.modern-theme #search_results,
body.modern-theme #search-history {
    background: white !important;
    border: 1px solid rgba(65, 219, 242, 0.3);
    border-radius: var(--tgw-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

body.modern-theme #search_results li,
body.modern-theme #search-history li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--tgw-border-light);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme #search_results li:hover,
body.modern-theme #search-history li:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, transparent 100%);
}

/* ========================================
   SIDEBAR - Modern Navigation with Dark Theme
   ======================================== */
body.modern-theme #menu,
body.modern-theme .sidebar {
    background: linear-gradient(180deg, #050c21 0%, #0a1642 50%, #050c21 100%) !important;
    border-right: none;
    box-shadow: 0 0 40px rgba(65, 219, 242, 0.2);
    width: 260px;
    transition: all var(--tgw-transition-base);
}

body.modern-theme #menu {
    padding-top: var(--tgw-spacing-md);
}

/* Sidebar Menu Container */
body.modern-theme ul#side-menu.nav.metis-menu {
    background: linear-gradient(135deg, rgba(65, 219, 242, 0.1) 0%, rgba(0, 101, 248, 0.1) 50%, rgba(67, 0, 255, 0.1) 100%) !important;
    box-shadow: 0 4px 20px rgba(65, 219, 242, 0.3) !important;
    border-radius: 15px !important;
    margin: 10px 8px !important;
    border: 1px solid rgba(65, 219, 242, 0.3) !important;
    padding: 10px 0 !important;
}

/* Logo Section with Global ERP Style */
body.modern-theme #menu #logo,
body.modern-theme .sidebar #logo {
    background: linear-gradient(135deg, rgba(65, 219, 242, 0.1) 0%, rgba(0, 101, 248, 0.1) 100%) !important;
    border-bottom: 2px solid transparent;
    border-image: var(--tgw-gradient) 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 10px !important;
    margin-bottom: 15px !important;
    min-height: 100px !important;
    height: auto !important;
}

body.modern-theme #menu #logo img,
body.modern-theme .sidebar #logo img {
    max-height: 60px !important;
    filter: drop-shadow(0 4px 10px rgba(65, 219, 242, 0.3)) !important;
    transition: transform var(--tgw-transition-fast);
}

body.modern-theme #menu #logo:hover img,
body.modern-theme .sidebar #logo:hover img {
    transform: scale(1.05);
}

/* Logo Container Additional Styling */
body.modern-theme .sm\:tw-bg-neutral-900\/50 {
    background: linear-gradient(135deg, rgba(65, 219, 242, 0.05) 0%, rgba(0, 101, 248, 0.05) 100%) !important;
}

body.modern-theme .-tw-mx-2 {
    margin: 0 !important;
}

/* Sidebar Links - Zoho Style with Dark Theme */
body.modern-theme .sidebar li a {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 15px;
    margin: 3px 8px;
    border-radius: 8px;
    transition: all var(--tgw-transition-fast);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(65, 219, 242, 0.1);
}

body.modern-theme .sidebar li a:hover {
    color: #41dbf2 !important;
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.15) 0%, rgba(0, 101, 248, 0.1) 100%) !important;
    transform: translateX(5px);
    border-left: 3px solid #41dbf2;
    border-bottom: 1px solid rgba(65, 219, 242, 0.3);
}

body.modern-theme .sidebar li.active > a {
    color: #fff !important;
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%) !important;
    font-weight: 700;
    border-left: 4px solid #00CAFF;
    box-shadow: 0 4px 15px rgba(65, 219, 242, 0.4);
    border-bottom: 1px solid transparent;
    animation: pulseGlow 2s ease-in-out infinite;
}

body.modern-theme .sidebar li a i.menu-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    width: 24px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    min-width: 24px;
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .sidebar li a:hover i.menu-icon {
    color: #41dbf2 !important;
    transform: scale(1.15);
}

body.modern-theme .sidebar li.active > a i.menu-icon {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Sidebar Submenu */
body.modern-theme .sidebar li ul.sub-menu {
    background: transparent;
    padding-left: 0;
}

body.modern-theme .sidebar li ul.sub-menu li a {
    padding-left: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7) !important;
}

body.modern-theme .sidebar li ul.sub-menu li a:hover {
    color: #41dbf2 !important;
    background: rgba(65, 219, 242, 0.1) !important;
}

body.modern-theme .sidebar li ul.sub-menu li.active a {
    color: #41dbf2 !important;
    background: rgba(65, 219, 242, 0.15) !important;
    font-weight: 600;
}

/* Setup Menu Styling */
body.modern-theme #setup-menu li a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    border-bottom: 1px solid rgba(65, 219, 242, 0.1);
}

body.modern-theme #setup-menu li a:hover {
    color: #41dbf2 !important;
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.15) 0%, rgba(0, 101, 248, 0.1) 100%) !important;
}

body.modern-theme #setup-menu li.active > a {
    color: #fff !important;
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%) !important;
}

/* ========================================
   CARDS & PANELS - Modern Containers
   ======================================== */
body.modern-theme .panel,
body.modern-theme .tw-card,
body.modern-theme .panel_s {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(65, 219, 242, 0.2);
    border-radius: var(--tgw-radius-lg);
    box-shadow: 0 8px 25px rgba(65, 219, 242, 0.15);
    margin-bottom: var(--tgw-spacing-lg);
    transition: all var(--tgw-transition-base);
}

body.modern-theme .panel:hover,
body.modern-theme .tw-card:hover {
    box-shadow: 0 12px 35px rgba(65, 219, 242, 0.25);
    transform: translateY(-2px);
    border-color: rgba(65, 219, 242, 0.4);
}

body.modern-theme .panel-heading,
body.modern-theme .panel-title {
    background: linear-gradient(135deg, rgba(65, 219, 242, 0.1) 0%, rgba(0, 101, 248, 0.05) 100%) !important;
    border-bottom: 2px solid rgba(65, 219, 242, 0.3);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tgw-text-primary);
    border-radius: var(--tgw-radius-lg) var(--tgw-radius-lg) 0 0;
}

body.modern-theme .panel-body {
    padding: var(--tgw-spacing-lg);
}

body.modern-theme .panel-primary,
body.modern-theme .panel-info {
    border-top: 3px solid var(--tgw-primary);
}

/* Widget Stats - Dashboard Cards with Global ERP Style */
body.modern-theme .widget {
    background: linear-gradient(135deg, var(--tgw-bg-primary) 0%, var(--tgw-bg-secondary) 100%);
    border: 1px solid var(--tgw-border-light);
    border-radius: var(--tgw-radius-xl);
    padding: var(--tgw-spacing-lg);
    box-shadow: var(--tgw-shadow-md);
    transition: all var(--tgw-transition-base);
    position: relative;
    overflow: hidden;
}

body.modern-theme .widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tgw-gradient);
}

body.modern-theme .widget:hover {
    box-shadow: var(--tgw-shadow-cyber);
    transform: translateY(-2px);
    border-color: var(--tgw-primary);
}

body.modern-theme .widget h3 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--tgw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

body.modern-theme .widget p {
    font-size: 13px;
    color: var(--tgw-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.modern-theme .widget span {
    color: var(--tgw-text-secondary);
}

body.modern-theme .widget label {
    color: var(--tgw-text-primary);
}

/* Widget Icons - Dashboard Stats Icons */
body.modern-theme .widget-icon,
body.modern-theme .dashboard-icon {
    background: var(--tgw-gradient);
    color: white;
    border-radius: var(--tgw-radius-lg);
    padding: var(--tgw-spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tgw-shadow-md);
    width: 48px;
    height: 48px;
    font-size: 24px;
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .widget:hover .widget-icon,
body.modern-theme .widget:hover .dashboard-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--tgw-shadow-cyber);
}

/* Widget with Icon Layout */
body.modern-theme .widget .tw-flex {
    gap: var(--tgw-spacing-md);
}

body.modern-theme .widget i {
    color: var(--tgw-primary);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .widget:hover i {
    color: var(--tgw-primary-hover);
    transform: scale(1.15);
}

/* ========================================
   BUTTONS - Modern Design
   ======================================== */
body.modern-theme .btn {
    border-radius: var(--tgw-radius-md);
    font-weight: 500;
    height:20%;
    padding: 0.625rem 1.25rem;
    transition: all var(--tgw-transition-fast);
    border: none;
    box-shadow: var(--tgw-shadow-sm);
}

body.modern-theme .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--tgw-shadow-md);
}

body.modern-theme .btn-primary {
    background: linear-gradient(135deg, var(--tgw-primary) 0%, var(--tgw-primary-dark) 100%);
    color: white;
}

body.modern-theme .btn-primary:hover {
    background: linear-gradient(135deg, var(--tgw-primary-hover) 0%, var(--tgw-primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(65, 219, 242, 0.4);
}

body.modern-theme .btn-success {
    background: linear-gradient(135deg, var(--tgw-success) 0%, #059669 100%);
    color: white;
}

body.modern-theme .btn-success:hover {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

body.modern-theme .btn-warning {
    background: linear-gradient(135deg, var(--tgw-warning) 0%, #D97706 100%);
    color: white;
}

body.modern-theme .btn-warning:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

body.modern-theme .btn-danger {
    background: linear-gradient(135deg, var(--tgw-danger) 0%, #DC2626 100%);
    color: white;
}

body.modern-theme .btn-danger:hover {
    background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

body.modern-theme .btn-info {
    background: linear-gradient(135deg, var(--tgw-info) 0%, #0891B2 100%);
    color: white;
}

body.modern-theme .btn-info:hover {
    background: linear-gradient(135deg, #00CAFF 0%, #0E7490 100%);
    box-shadow: 0 4px 15px rgba(0, 202, 255, 0.4);
}

/* ========================================
   DARK MODE - BUTTONS
   ======================================== */

body.modern-theme.dark-mode .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.modern-theme.dark-mode .btn:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.modern-theme.dark-mode .btn-primary {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
}

body.modern-theme.dark-mode .btn-primary:hover {
    background: linear-gradient(135deg, #00CAFF 0%, #4300FF 100%);
    box-shadow: 0 4px 20px rgba(65, 219, 242, 0.6);
}

body.modern-theme.dark-mode .btn-success:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

body.modern-theme.dark-mode .btn-warning:hover {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5);
}

body.modern-theme.dark-mode .btn-danger:hover {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

body.modern-theme.dark-mode .btn-info:hover {
    box-shadow: 0 4px 20px rgba(0, 202, 255, 0.5);
}

/* ========================================
   FORMS - Clean Input Design
   ======================================== */
body.modern-theme .form-control {
    border: 1px solid var(--tgw-border-light);
    border-radius: var(--tgw-radius-md);
    padding: 0.625rem 1rem;
    font-size: 14px;
    transition: all var(--tgw-transition-fast);
    background: var(--tgw-bg-primary);
    color: var(--tgw-text-primary);
}

body.modern-theme .form-control:focus {
    border-color: var(--tgw-primary);
    box-shadow: 0 0 0 3px rgba(65, 219, 242, 0.1);
    background: var(--tgw-bg-primary);
    outline: none;
}

body.modern-theme .form-group label {
    font-weight: 500;
    color: var(--tgw-text-primary);
    margin-bottom: 0.5rem;
    font-size: 13px;
}

/* Select Dropdowns */
body.modern-theme select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2341dbf2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Textareas */
body.modern-theme textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Input Groups */
body.modern-theme .input-group-addon {
    background: var(--tgw-bg-secondary);
    border: 1px solid var(--tgw-border-light);
    border-radius: var(--tgw-radius-md);
    padding: 0.625rem 1rem;
    color: var(--tgw-text-secondary);
}

/* Checkboxes and Radios */
body.modern-theme .checkbox label,
body.modern-theme .radio label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

body.modern-theme input[type="checkbox"],
body.modern-theme input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Form Validation States */
body.modern-theme .form-control.is-invalid,
body.modern-theme .form-control:invalid {
    border-color: var(--tgw-danger);
}

body.modern-theme .form-control.is-valid {
    border-color: var(--tgw-success);
}

/* Disabled State */
body.modern-theme .form-control:disabled {
    background: var(--tgw-bg-tertiary);
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   TABLES - Modern Data Display
   ======================================== */
body.modern-theme .table {
    background: var(--tgw-bg-primary);
    border-radius: var(--tgw-radius-lg);
    overflow: hidden;
}

body.modern-theme .table thead th {
    background: var(--tgw-bg-tertiary);
    color: var(--tgw-text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--tgw-primary);
}

body.modern-theme .table tbody tr {
    transition: all var(--tgw-transition-fast);
    border-bottom: 1px solid var(--tgw-border-light);
}

body.modern-theme .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.05) 0%, transparent 100%);
    border-left: 3px solid var(--tgw-primary);
}

body.modern-theme .table tbody td {
    padding: 1rem;
    color: var(--tgw-text-secondary);
    font-size: 14px;
}

/* DataTables Enhancements */
body.modern-theme .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--tgw-gradient) !important;
    color: white !important;
    border-color: var(--tgw-primary) !important;
}

/* ========================================
   BADGES & LABELS
   ======================================== */
body.modern-theme .badge,
body.modern-theme .label {
    border-radius: var(--tgw-radius-sm);
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}

body.modern-theme .label-primary {
    background: var(--tgw-primary-light);
    color: var(--tgw-primary);
}

body.modern-theme .label-success {
    background: #D1FAE5;
    color: var(--tgw-success);
}

body.modern-theme .label-warning {
    background: #FEF3C7;
    color: var(--tgw-warning);
}

body.modern-theme .label-danger {
    background: #FEE2E2;
    color: var(--tgw-danger);
}

/* ========================================
   ALERTS - Modern Notifications
   ======================================== */
body.modern-theme .alert {
    border-radius: var(--tgw-radius-lg);
    border: 1px solid;
    border-left-width: 4px;
    padding: var(--tgw-spacing-md);
    font-size: 14px;
    box-shadow: var(--tgw-shadow-sm);
}

body.modern-theme .alert-success {
    background: #D1FAE5;
    border-color: var(--tgw-success);
    border-left-color: var(--tgw-success);
    color: #065F46;
}

body.modern-theme .alert-info {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, rgba(0, 202, 255, 0.05) 100%);
    border-color: var(--tgw-primary);
    border-left-color: var(--tgw-primary);
    color: #0c4a6e;
}

body.modern-theme .alert-warning {
    background: #FEF3C7;
    border-color: var(--tgw-warning);
    border-left-color: var(--tgw-warning);
    color: #92400E;
}

body.modern-theme .alert-danger {
    background: #FEE2E2;
    border-color: var(--tgw-danger);
    border-left-color: var(--tgw-danger);
    color: #991B1B;
}

/* ========================================
   MODALS - Clean Overlay Design
   ======================================== */
body.modern-theme .modal-content {
    border-radius: var(--tgw-radius-xl);
    border: none;
    box-shadow: var(--tgw-shadow-xl);
}

body.modern-theme .modal-header {
    background: var(--tgw-bg-secondary);
    border-bottom: 1px solid var(--tgw-border-light);
    padding: var(--tgw-spacing-lg);
    border-radius: var(--tgw-radius-xl) var(--tgw-radius-xl) 0 0;
}

body.modern-theme .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tgw-text-primary);
}

body.modern-theme .modal-body {
    padding: var(--tgw-spacing-xl);
}

/* ========================================
   BREADCRUMB - Modern Navigation Trail
   ======================================== */
body.modern-theme .breadcrumb {
    background: transparent;
    padding: var(--tgw-spacing-md) 0;
    margin-bottom: var(--tgw-spacing-lg);
}

body.modern-theme .breadcrumb > li + li:before {
    content: "→";
    color: var(--tgw-text-tertiary);
    padding: 0 var(--tgw-spacing-sm);
}

body.modern-theme .breadcrumb > li a {
    color: var(--tgw-primary);
    transition: color var(--tgw-transition-fast);
}

body.modern-theme .breadcrumb > li a:hover {
    color: var(--tgw-primary-hover);
}

/* ========================================
   DROPDOWN MENUS - Modern Popover
   ======================================== */
body.modern-theme .dropdown-menu {
    border: 1px solid var(--tgw-border-light);
    border-radius: var(--tgw-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: var(--tgw-spacing-sm);
    background: var(--tgw-bg-primary);
    margin-top: 0.5rem;
}

body.modern-theme .dropdown-menu > li > a {
    padding: 0.75rem 1rem;
    border-radius: var(--tgw-radius-sm);
    color: var(--tgw-text-secondary);
    transition: all var(--tgw-transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.modern-theme .dropdown-menu > li > a:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, transparent 100%);
    color: var(--tgw-primary);
    transform: translateX(3px);
}

body.modern-theme .dropdown-menu > li > a i {
    color: var(--tgw-text-tertiary);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .dropdown-menu > li > a:hover i {
    color: var(--tgw-primary);
    transform: scale(1.1);
}

/* Dropdown Header */
body.modern-theme .dropdown-menu > .dropdown-header {
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--tgw-text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--tgw-bg-secondary);
    border-radius: var(--tgw-radius-sm);
    margin-bottom: 0.25rem;
}

/* Dropdown Divider */
body.modern-theme .dropdown-menu .divider {
    height: 1px;
    background: var(--tgw-border-light);
    margin: 0.5rem 0;
}

/* ========================================
   HEADER DROPDOWN MENUS - Special Styling
   ======================================== */

/* Header Dropdowns في الوضع الفاتح */
body.modern-theme #header .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(65, 219, 242, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body.modern-theme #header .dropdown-menu > li > a {
    color: #0F172A !important;
}

body.modern-theme #header .dropdown-menu > li > a:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, transparent 100%) !important;
    color: #41dbf2 !important;
}

body.modern-theme #header .dropdown-menu > li > a i {
    color: #475569;
}

body.modern-theme #header .dropdown-menu > li > a:hover i {
    color: #41dbf2;
}

body.modern-theme #header .dropdown-menu > .dropdown-header {
    color: #0F172A;
    background: rgba(65, 219, 242, 0.05);
}

/* Profile Dropdown */
body.modern-theme #header .header-user-profile .dropdown-menu li a {
    color: #0F172A !important;
}

body.modern-theme #header .header-user-profile .dropdown-menu li a:hover {
    color: #41dbf2 !important;
}

/* Quick Create Dropdown */
body.modern-theme #header .navbar-nav .dropdown-menu li a {
    color: #0F172A !important;
}

body.modern-theme #header .navbar-nav .dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, transparent 100%) !important;
    color: #41dbf2 !important;
}

body.modern-theme #header .navbar-nav .dropdown-menu li a span {
    color: #0F172A !important;
}

body.modern-theme #header .navbar-nav .dropdown-menu li a:hover span {
    color: #41dbf2 !important;
}

/* Notifications Dropdown في Header */
body.modern-theme #header .header-notifications .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.modern-theme #header .header-notifications .dropdown-menu .notification-wrapper {
    color: #0F172A !important;
}

body.modern-theme #header .header-notifications .dropdown-menu .notification-wrapper:hover {
    background: rgba(65, 219, 242, 0.05) !important;
}

body.modern-theme #header .header-notifications .dropdown-menu .notification-wrapper * {
    color: #0F172A !important;
}

body.modern-theme #header .header-notifications .dropdown-menu .notification-wrapper .tw-text-neutral-700 {
    color: #0F172A !important;
}

body.modern-theme #header .header-notifications .dropdown-menu .notification-wrapper .tw-text-neutral-600 {
    color: #475569 !important;
}

/* Timers Dropdown في Header */
body.modern-theme #header .header-timers .dropdown-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.modern-theme #header .header-timers .dropdown-menu * {
    color: #0F172A !important;
}

body.modern-theme #header .header-timers .dropdown-menu .tw-text-neutral-700 {
    color: #0F172A !important;
}

body.modern-theme #header .header-timers .dropdown-menu .tw-text-neutral-600 {
    color: #475569 !important;
}

body.modern-theme #header .header-timers .dropdown-menu a:hover {
    background: rgba(65, 219, 242, 0.05) !important;
}

/* ========================================
   TABS - Modern Tab Navigation
   ======================================== */
body.modern-theme .nav-tabs {
    border-bottom: 2px solid var(--tgw-border-light);
}

body.modern-theme .nav-tabs > li > a {
    border: none;
    border-radius: var(--tgw-radius-md) var(--tgw-radius-md) 0 0;
    color: var(--tgw-text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .nav-tabs > li.active > a,
body.modern-theme .nav-tabs > li > a:hover {
    color: var(--tgw-primary);
    background: transparent;
    border-bottom: 2px solid var(--tgw-primary);
}

/* ========================================
   SCROLLBAR - Custom Styling
   ======================================== */
body.modern-theme ::-webkit-scrollbar {
    width: 12px;
    height: 8px;
}

body.modern-theme ::-webkit-scrollbar-track {
    background: #0a1642;
    border-radius: 10px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

body.modern-theme ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #41dbf2 0%, #0065F8 50%, #4300FF 100%);
    border-radius: 10px;
    border: 2px solid #0a1642;
    box-shadow: 0 0 10px rgba(65, 219, 242, 0.5);
}

body.modern-theme ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00CAFF 0%, #41dbf2 50%, #0065F8 100%);
}

/* ========================================
   LOADING SPINNER - Modern Animation
   ======================================== */
body.modern-theme .loading-spinner {
    border: 3px solid var(--tgw-bg-tertiary);
    border-top: 3px solid var(--tgw-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991px) {
    body.modern-theme #wrapper {
        padding: var(--tgw-spacing-md);
    }
    
    body.modern-theme #menu,
    body.modern-theme .sidebar {
        width: 240px;
    }
}

@media (max-width: 767px) {
    body.modern-theme #wrapper {
        padding: var(--tgw-spacing-sm);
    }
    
    body.modern-theme .panel-body {
        padding: var(--tgw-spacing-md);
    }
    
    body.modern-theme #menu #logo,
    body.modern-theme .sidebar #logo {
        min-height: 80px !important;
    }
    
    body.modern-theme #menu #logo img,
    body.modern-theme .sidebar #logo img {
        max-height: 50px !important;
    }
    
    body.modern-theme .sidebar li a {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
body.modern-theme .text-muted {
    color: var(--tgw-text-tertiary) !important;
}

body.modern-theme .bg-light {
    background-color: var(--tgw-bg-secondary) !important;
}

body.modern-theme .border-light {
    border-color: var(--tgw-border-light) !important;
}

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

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(65, 219, 242, 0.3); }
    50% { box-shadow: 0 0 20px rgba(65, 219, 242, 0.6); }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 25px rgba(255, 255, 255, 1);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

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

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.7);
    }
}

/* Wrapper Animations - Light Theme */
@keyframes wrapperGlow {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(240, 249, 255, 0.98) 25%, 
            rgba(224, 242, 254, 0.95) 50%, 
            rgba(240, 249, 255, 0.98) 75%, 
            rgba(255, 255, 255, 0.95) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(240, 249, 255, 0.98) 0%, 
            rgba(224, 242, 254, 0.95) 25%, 
            rgba(219, 234, 254, 0.92) 50%, 
            rgba(224, 242, 254, 0.95) 75%, 
            rgba(240, 249, 255, 0.98) 100%);
    }
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

body.modern-theme .animate-fade-in {
    animation: fadeIn var(--tgw-transition-base);
}

body.modern-theme #logo img {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Global ERP Brand Accent Animations */
body.modern-theme .panel:hover,
body.modern-theme .tw-card:hover {
    animation: pulseGlow 2s ease-in-out;
}

/* Badge Animation */
body.modern-theme #header .nav-total-todos,
body.modern-theme #header .icon-started-timers,
body.modern-theme #header .notifications-total {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Icon Hover Animations */
body.modern-theme #header .icon > a:hover svg {
    animation: iconBounce 0.5s ease-in-out;
}

body.modern-theme .sidebar li.active > a i.menu-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body.modern-theme {
        background: white;
    }
    
    body.modern-theme #menu,
    body.modern-theme #header {
        display: none;
    }
}

/* ========================================
   ADDITIONAL GLOBAL ERP ENHANCEMENTS
   ======================================== */

/* Progress Bars with Global ERP Gradient */
body.modern-theme .progress-bar {
    background: var(--tgw-gradient);
}

/* Links with Global ERP Color */
body.modern-theme a {
    color: var(--tgw-primary);
    transition: color var(--tgw-transition-fast);
}

body.modern-theme a:hover {
    color: var(--tgw-primary-hover);
}

/* Primary Text with Gradient Effect */
body.modern-theme .text-primary {
    color: var(--tgw-primary) !important;
}

body.modern-theme .gradient-text {
    background: var(--tgw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Enhanced Cards with Border Accent */
body.modern-theme .panel-primary,
body.modern-theme .panel-info {
    border-top: 3px solid var(--tgw-primary);
}

/* Stat Widgets Icon Styling */
body.modern-theme .widget-icon,
body.modern-theme .dashboard-icon {
    background: var(--tgw-gradient);
    color: white;
    border-radius: var(--tgw-radius-lg);
    padding: var(--tgw-spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tgw-shadow-md);
}

/* Charts Container */
body.modern-theme .chart-container {
    background: var(--tgw-bg-primary);
    border: 1px solid var(--tgw-border-light);
    border-radius: var(--tgw-radius-lg);
    padding: var(--tgw-spacing-lg);
    box-shadow: var(--tgw-shadow-sm);
}

/* Footer with Global ERP Branding */
body.modern-theme #footer {
    background: var(--tgw-bg-secondary);
    border-top: 1px solid var(--tgw-border-light);
    padding: var(--tgw-spacing-lg);
    color: var(--tgw-text-secondary);
}

/* Quick Action Buttons */
body.modern-theme .quick-action-btn {
    background: var(--tgw-gradient);
    color: white;
    border-radius: var(--tgw-radius-lg);
    padding: var(--tgw-spacing-md) var(--tgw-spacing-lg);
    border: none;
    box-shadow: var(--tgw-shadow-cyber);
    transition: all var(--tgw-transition-fast);
}

body.modern-theme .quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tgw-shadow-lg);
}

/* Dashboard Welcome Banner */
body.modern-theme .welcome-banner {
    background: var(--tgw-gradient);
    color: white;
    border-radius: var(--tgw-radius-xl);
    padding: var(--tgw-spacing-xl);
    margin-bottom: var(--tgw-spacing-lg);
    box-shadow: var(--tgw-shadow-cyber);
}

/* Navigation Pills */
body.modern-theme .nav-pills > li.active > a {
    background: var(--tgw-gradient);
    color: white;
}

/* Custom Checkboxes and Radios */
body.modern-theme input[type="checkbox"]:checked,
body.modern-theme input[type="radio"]:checked {
    accent-color: var(--tgw-primary);
}

/* Pagination */
body.modern-theme .pagination > .active > a,
body.modern-theme .pagination > .active > span {
    background: var(--tgw-gradient);
    border-color: var(--tgw-primary);
}

body.modern-theme .pagination > li > a:hover {
    color: var(--tgw-primary);
    border-color: var(--tgw-primary);
}

/* ========================================
   TEXT COLORS & TYPOGRAPHY
   ======================================== */

/* Light Mode - النصوص الداكنة */
body.modern-theme .tw-text-neutral-700 {
    color: #334155 !important;
    font-weight: 600;
}

body.modern-theme .tw-text-neutral-600 {
    color: #475569 !important;
    font-weight: 500;
}

body.modern-theme .tw-font-semibold {
    color: #0F172A !important;
    font-weight: 600;
}

body.modern-theme .tw-text-neutral-900 {
    color: #0F172A !important;
    font-weight: 700;
}

body.modern-theme .hide-menu {
    color: #334155 !important;
}

body.modern-theme h1, 
body.modern-theme h2, 
body.modern-theme h3, 
body.modern-theme h4 {
    color: #0F172A !important;
}

body.modern-theme p,
body.modern-theme span,
body.modern-theme label,
body.modern-theme td {
    color: var(--tgw-spacing-md);
}
body.modern-theme span{
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ========================================
   DROPDOWNS & SELECTS
   ======================================== */

body.modern-theme .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: #0F172A !important;
    font-weight: 500;
}

body.modern-theme .bootstrap-select .dropdown-menu {
    background: #fff !important;
    border: 1px solid rgba(65, 219, 242, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(65, 219, 242, 0.2);
}

body.modern-theme .bootstrap-select .dropdown-menu li a:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.1) 0%, rgba(0, 101, 248, 0.05) 100%) !important;
    color: #0065F8 !important;
}

/* ========================================
   BOTTOM TOOLBAR
   ======================================== */

body.modern-theme .btn-bottom-toolbar {
    box-shadow: 0 -4px 20px rgba(65, 219, 242, 0.2);
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%) !important;
}

/* ========================================
   SPECIAL SECTIONS
   ======================================== */

/* WhatsApp Section */
body.modern-theme h1.whatsapp {
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #41dbf2, #0065F8, #4300FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

/* ========================================
   DARK MODE TOGGLE - Theme Switcher
   ======================================== */

/* Dark Mode Styles - عند إضافة class "dark-mode" */
body.modern-theme.dark-mode {
    background: linear-gradient(135deg, #0a1642 0%, #050c21 50%, #0a1642 100%) !important;
}

body.modern-theme.dark-mode #wrapper {
    background: linear-gradient(135deg, 
        #050c21 0%, 
        #0a1642 25%, 
        #0d1a4a 50%, 
        #0a1642 75%, 
        #050c21 100%) !important;
    animation: wrapperGlowDark 8s ease-in-out infinite;
}

/* Dark Mode Background Animation */
body.modern-theme.dark-mode #wrapper::before {
    background: radial-gradient(circle at 30% 50%, 
        rgba(65, 219, 242, 0.15) 0%, 
        transparent 50%),
        radial-gradient(circle at 70% 50%, 
        rgba(0, 101, 248, 0.12) 0%, 
        transparent 50%);
}

body.modern-theme.dark-mode #wrapper::after {
    background: 
        radial-gradient(circle at 20% 80%, rgba(65, 219, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 202, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(67, 0, 255, 0.05) 0%, transparent 30%);
}

/* Dark Mode Panels & Cards */
body.modern-theme.dark-mode .panel,
body.modern-theme.dark-mode .tw-card,
body.modern-theme.dark-mode .panel_s {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(65, 219, 242, 0.3);
    box-shadow: 0 8px 25px rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode .panel-heading,
body.modern-theme.dark-mode .panel-title {
    background: linear-gradient(135deg, rgba(65, 219, 242, 0.15) 0%, rgba(0, 101, 248, 0.1) 100%) !important;
    color: #fff;
}

body.modern-theme.dark-mode .panel-body {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode Text Colors */
body.modern-theme.dark-mode .table tbody td,
body.modern-theme.dark-mode p,
body.modern-theme.dark-mode span,
body.modern-theme.dark-mode label {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.modern-theme.dark-mode .tw-text-neutral-700 {
    color: #fff !important;
    font-weight: 700;
}

body.modern-theme.dark-mode .tw-text-neutral-600 {
    color: #e2e8f0 !important;
    font-weight: 600;
}

body.modern-theme.dark-mode .tw-font-semibold {
    color: #fff !important;
    font-weight: 700;
}

body.modern-theme.dark-mode .tw-text-neutral-900 {
    color: #fff !important;
    font-weight: 700;
}

body.modern-theme.dark-mode .hide-menu {
    color: #fff !important;
}

body.modern-theme.dark-mode h1, 
body.modern-theme.dark-mode h2, 
body.modern-theme.dark-mode h3, 
body.modern-theme.dark-mode h4 {
    color: #fff !important;
}

body.modern-theme.dark-mode .table thead th {
    background: rgba(65, 219, 242, 0.1);
    color: #41dbf2;
}

body.modern-theme.dark-mode .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.15) 0%, transparent 100%);
}

/* Dark Mode Forms */
body.modern-theme.dark-mode .form-control {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(65, 219, 242, 0.3);
    color: #fff !important;
}

body.modern-theme.dark-mode .form-control:focus {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: #41dbf2;
}

/* Dark Mode Dropdown */
body.modern-theme.dark-mode .dropdown-menu {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .dropdown-menu > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.modern-theme.dark-mode .dropdown-menu > li > a:hover {
    background: rgba(65, 219, 242, 0.15) !important;
    color: #41dbf2 !important;
}

/* Dark Mode Widgets */
body.modern-theme.dark-mode .widget {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 22, 66, 0.85) 100%);
    border-color: rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .widget:hover {
    border-color: rgba(65, 219, 242, 0.5);
    box-shadow: 0 8px 30px rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .widget h3 {
    background: var(--tgw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark Mode Widget Text - يجب أن يكون غامق لأن الخلفية فاتحة داخل الـ widget */
body.modern-theme.dark-mode .widget p,
body.modern-theme.dark-mode .widget span,
body.modern-theme.dark-mode .widget label {
    color: #0F172A !important;
}

body.modern-theme.dark-mode .widget .tw-text-neutral-700,
body.modern-theme.dark-mode .widget .tw-text-neutral-600,
body.modern-theme.dark-mode .widget .tw-font-semibold {
    color: #334155 !important;
}

/* Dark Mode Widget Numbers - للأرقام الكبيرة */
body.modern-theme.dark-mode .widget .tw-text-3xl,
body.modern-theme.dark-mode .widget .tw-text-2xl,
body.modern-theme.dark-mode .widget .tw-text-xl {
    color: #0F172A !important;
}

/* Dark Mode Widget Icons */
body.modern-theme.dark-mode .widget-icon,
body.modern-theme.dark-mode .dashboard-icon {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
    box-shadow: 0 4px 15px rgba(65, 219, 242, 0.4);
}

body.modern-theme.dark-mode .widget:hover .widget-icon,
body.modern-theme.dark-mode .widget:hover .dashboard-icon {
    box-shadow: 0 6px 25px rgba(65, 219, 242, 0.6);
}

body.modern-theme.dark-mode .widget i {
    color: #0F172A !important;
}

body.modern-theme.dark-mode .widget:hover i {
    color: #1e293b !important;
}

/* Dark Mode Modal */
body.modern-theme.dark-mode .modal-content {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .modal-header {
    background: rgba(65, 219, 242, 0.1);
    border-bottom-color: rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .modal-title {
    color: #fff;
}

body.modern-theme.dark-mode .modal-body {
    color: rgba(255, 255, 255, 0.85);
}

/* Dark Mode Breadcrumb */
body.modern-theme.dark-mode .breadcrumb > li a {
    color: #41dbf2;
}

body.modern-theme.dark-mode .breadcrumb > li.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Tabs */
body.modern-theme.dark-mode .nav-tabs {
    border-bottom-color: rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .nav-tabs > li > a {
    color: rgba(255, 255, 255, 0.7);
}

body.modern-theme.dark-mode .nav-tabs > li.active > a,
body.modern-theme.dark-mode .nav-tabs > li > a:hover {
    color: #41dbf2;
}

/* Dark Mode Alerts */
body.modern-theme.dark-mode .alert {
    background: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(65, 219, 242, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   DARK MODE - HEADER ICONS
   ======================================== */

/* Header Icons in Dark Mode - Enhanced Visibility */
body.modern-theme.dark-mode #header .icon > a {
    background: rgba(65, 219, 242, 0.15);
}

body.modern-theme.dark-mode #header .icon > a:hover {
    background: rgba(65, 219, 242, 0.25) !important;
    box-shadow: 0 0 15px rgba(65, 219, 242, 0.4);
}

body.modern-theme.dark-mode #header .icon > a svg {
    color: #41dbf2 !important;
    filter: drop-shadow(0 0 8px rgba(65, 219, 242, 0.5));
}

body.modern-theme.dark-mode #header .icon > a:hover svg {
    color: #00CAFF !important;
    filter: drop-shadow(0 0 12px rgba(0, 202, 255, 0.7));
}

/* Dark Mode Todo Icon */
body.modern-theme.dark-mode #header .header-todo > a {
    background: rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode #header .header-todo > a:hover {
    background: rgba(65, 219, 242, 0.3) !important;
}

/* Dark Mode Theme Toggle Icon */
body.modern-theme.dark-mode #header .header-theme-toggle > a {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

body.modern-theme.dark-mode #header .header-theme-toggle > a:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

body.modern-theme.dark-mode #header .header-theme-toggle > a svg {
    color: #F59E0B !important;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Dark Mode Newsfeed Icon */
body.modern-theme.dark-mode #header .header-newsfeed > a {
    background: rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode #header .header-newsfeed > a:hover {
    background: rgba(65, 219, 242, 0.3) !important;
}

/* Dark Mode Timer Icon */
body.modern-theme.dark-mode #header .header-timers .top-timers span {
    border-color: rgba(65, 219, 242, 0.4) !important;
    background: rgba(65, 219, 242, 0.15) !important;
}

body.modern-theme.dark-mode #header .header-timers .top-timers:hover span {
    background: rgba(65, 219, 242, 0.25) !important;
    border-color: rgba(65, 219, 242, 0.6) !important;
    box-shadow: 0 0 12px rgba(65, 219, 242, 0.5);
}

body.modern-theme.dark-mode #header .header-timers .top-timers svg {
    color: #41dbf2 !important;
}

/* Dark Mode Notifications Icon */
body.modern-theme.dark-mode #header .header-notifications .notifications-icon {
    background: rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode #header .header-notifications .notifications-icon:hover {
    background: rgba(65, 219, 242, 0.3);
    box-shadow: 0 0 15px rgba(65, 219, 242, 0.4);
}

/* Dark Mode Badge Counters */
body.modern-theme.dark-mode #header .nav-total-todos,
body.modern-theme.dark-mode #header .icon-started-timers,
body.modern-theme.dark-mode #header .notifications-total {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 2px 8px rgba(239, 68, 68, 0.4);
    border-color: rgba(65, 219, 242, 0.3);
}

/* Dark Mode Profile Image */
body.modern-theme.dark-mode #header .header-user-profile .staff-profile-image-small {
    border-color: #41dbf2 !important;
    box-shadow: 0 0 0 2px rgba(65, 219, 242, 0.3), 0 4px 12px rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode #header .header-user-profile:hover .staff-profile-image-small {
    box-shadow: 0 0 0 3px rgba(65, 219, 242, 0.5), 0 6px 16px rgba(65, 219, 242, 0.3);
}

/* Dark Mode Quick Create Button */
body.modern-theme.dark-mode #header .navbar-nav .tw-bg-primary-600 {
    background: rgba(65, 219, 242, 0.2) !important;
    border-color: rgba(65, 219, 242, 0.4);
}

body.modern-theme.dark-mode #header .navbar-nav .tw-bg-primary-600:hover {
    background: rgba(65, 219, 242, 0.3) !important;
    box-shadow: 0 0 15px rgba(65, 219, 242, 0.4);
}

/* ========================================
   SIDEBAR ICONS - Enhanced Styling
   ======================================== */

/* Sidebar Menu Icons - Light & Dark Compatible */
body.modern-theme .sidebar li a i.menu-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    width: 24px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    min-width: 24px;
    transition: all var(--tgw-transition-fast);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.modern-theme .sidebar li a:hover i.menu-icon {
    color: #41dbf2 !important;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(65, 219, 242, 0.6);
}

body.modern-theme .sidebar li.active > a i.menu-icon {
    color: #fff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    animation: iconPulse 2s ease-in-out infinite;
}

/* Dark Mode Sidebar Icons Enhancement */
body.modern-theme.dark-mode .sidebar li a i.menu-icon {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 8px rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .sidebar li a:hover i.menu-icon {
    color: #00CAFF !important;
    text-shadow: 0 0 15px rgba(0, 202, 255, 0.8);
}

body.modern-theme.dark-mode .sidebar li.active > a i.menu-icon {
    color: #fff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
}

/* Dark Mode Animation */
@keyframes wrapperGlowDark {
    0%, 100% { 
        background: linear-gradient(135deg, 
            #050c21 0%, 
            #0a1642 25%, 
            #0d1a4a 50%, 
            #0a1642 75%, 
            #050c21 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            #0a1642 0%, 
            #0d1a4a 25%, 
            #0f1e52 50%, 
            #0d1a4a 75%, 
            #0a1642 100%);
    }
}

/* ========================================
   DARK MODE - SEARCH BAR
   ======================================== */
body.modern-theme.dark-mode #top_search input {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(65, 219, 242, 0.3) !important;
    color: #fff !important;
}

body.modern-theme.dark-mode #top_search input:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(65, 219, 242, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(65, 219, 242, 0.2) !important;
}

body.modern-theme.dark-mode #top_search input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.modern-theme.dark-mode #top_search_button button {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.modern-theme.dark-mode #top_search_button button:hover {
    color: #41dbf2 !important;
}

/* Dark Mode Search Results */
body.modern-theme.dark-mode #search_results,
body.modern-theme.dark-mode #search-history {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(65, 219, 242, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.modern-theme.dark-mode #search_results li,
body.modern-theme.dark-mode #search-history li {
    border-bottom-color: rgba(65, 219, 242, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

body.modern-theme.dark-mode #search_results li:hover,
body.modern-theme.dark-mode #search-history li:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.2) 0%, transparent 100%);
    color: #41dbf2;
}

/* ========================================
   DARK MODE - DROPDOWNS
   ======================================== */
body.modern-theme.dark-mode .dropdown-menu {
    background: rgba(15, 23, 42, 0.98) !important;
    border-color: rgba(65, 219, 242, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

body.modern-theme.dark-mode .dropdown-menu > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.modern-theme.dark-mode .dropdown-menu > li > a:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.2) 0%, transparent 100%) !important;
    color: #41dbf2 !important;
}

body.modern-theme.dark-mode .dropdown-menu > li > a i {
    color: rgba(255, 255, 255, 0.6);
}

body.modern-theme.dark-mode .dropdown-menu > li > a:hover i {
    color: #41dbf2;
}

body.modern-theme.dark-mode .dropdown-menu > .dropdown-header {
    color: #fff;
    background: rgba(65, 219, 242, 0.1);
}

body.modern-theme.dark-mode .dropdown-menu .divider {
    background: rgba(65, 219, 242, 0.2);
}

/* ========================================
   DARK MODE - FORMS
   ======================================== */
body.modern-theme.dark-mode .form-control {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(65, 219, 242, 0.3);
    color: #fff !important;
}

body.modern-theme.dark-mode .form-control:focus {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: #41dbf2;
    box-shadow: 0 0 0 3px rgba(65, 219, 242, 0.2);
}

body.modern-theme.dark-mode .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.modern-theme.dark-mode .form-group label {
    color: #fff;
}

body.modern-theme.dark-mode select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2341dbf2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

body.modern-theme.dark-mode .input-group-addon {
    background: rgba(65, 219, 242, 0.1);
    border-color: rgba(65, 219, 242, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

body.modern-theme.dark-mode .form-control:disabled {
    background: rgba(15, 23, 42, 0.5) !important;
    opacity: 0.5;
}

/* ========================================
   DARK MODE - TABLES
   ======================================== */
body.modern-theme.dark-mode .table {
    background: rgba(15, 23, 42, 0.8);
}

body.modern-theme.dark-mode .table thead th {
    background: rgba(65, 219, 242, 0.15);
    color: #41dbf2;
    border-bottom-color: rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .table tbody tr {
    border-bottom-color: rgba(65, 219, 242, 0.1);
}

body.modern-theme.dark-mode .table tbody tr:hover {
    background: linear-gradient(90deg, rgba(65, 219, 242, 0.2) 0%, transparent 100%);
}

body.modern-theme.dark-mode .table tbody td {
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   DARK MODE - HIDE MENU BUTTON
   ======================================== */
body.modern-theme.dark-mode .hide-menu {
    background: rgba(65, 219, 242, 0.15);
    color: #41dbf2 !important;
}

body.modern-theme.dark-mode .hide-menu:hover {
    background: rgba(65, 219, 242, 0.25);
    box-shadow: 0 0 15px rgba(65, 219, 242, 0.3);
}

/* ========================================
   DARK MODE - ADDITIONAL ELEMENTS
   ======================================== */

/* Dark Mode Badges */
body.modern-theme.dark-mode .badge,
body.modern-theme.dark-mode .label {
    border: 1px solid rgba(65, 219, 242, 0.3);
}

body.modern-theme.dark-mode .label-primary {
    background: rgba(65, 219, 242, 0.2);
    color: #41dbf2;
}

body.modern-theme.dark-mode .label-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

body.modern-theme.dark-mode .label-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

body.modern-theme.dark-mode .label-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Dark Mode Progress Bars */
body.modern-theme.dark-mode .progress {
    background: rgba(15, 23, 42, 0.8);
}

body.modern-theme.dark-mode .progress-bar {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
    box-shadow: 0 0 10px rgba(65, 219, 242, 0.5);
}

/* Dark Mode Links */
body.modern-theme.dark-mode a {
    color: #41dbf2;
}

body.modern-theme.dark-mode a:hover {
    color: #00CAFF;
}

/* Dark Mode Pagination */
body.modern-theme.dark-mode .pagination > li > a,
body.modern-theme.dark-mode .pagination > li > span {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(65, 219, 242, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

body.modern-theme.dark-mode .pagination > li > a:hover {
    background: rgba(65, 219, 242, 0.2);
    border-color: #41dbf2;
    color: #41dbf2;
}

body.modern-theme.dark-mode .pagination > .active > a,
body.modern-theme.dark-mode .pagination > .active > span {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
    border-color: #41dbf2;
    color: white;
}

/* Dark Mode Footer */
body.modern-theme.dark-mode #footer {
    background: rgba(15, 23, 42, 0.95);
    border-top-color: rgba(65, 219, 242, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Welcome Banner */
body.modern-theme.dark-mode .welcome-banner {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
    box-shadow: 0 8px 30px rgba(65, 219, 242, 0.4);
}

/* Dark Mode Quick Actions */
body.modern-theme.dark-mode .quick-action-btn {
    background: linear-gradient(135deg, #41dbf2 0%, #0065F8 100%);
    box-shadow: 0 4px 20px rgba(65, 219, 242, 0.4);
}

/* Smooth Transition for Theme Change */
body.modern-theme,
body.modern-theme #wrapper,
body.modern-theme .panel,
body.modern-theme .form-control,
body.modern-theme .dropdown-menu,
body.modern-theme .widget {
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* ========================================
   QUICK STATS & DASHBOARD WIDGETS
   ======================================== */

/* Quick Stats Containers */
body.modern-theme .quick-stats-invoices,
body.modern-theme .quick-stats-leads,
body.modern-theme .quick-stats-projects,
body.modern-theme .quick-stats-tasks {
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* Notification Box Styling */
body.modern-theme .notification-box,
body.modern-theme .tw-p-3 {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(65, 219, 242, 0.2);
    border-radius: var(--tgw-radius-lg);
    color: var(--tgw-text-primary) !important;
}

body.modern-theme .notification-box *,
body.modern-theme .tw-p-3 * {
    color: var(--tgw-text-primary) !important;
}

/* Dark Mode Notification Box */
body.modern-theme.dark-mode .notification-box,
body.modern-theme.dark-mode .tw-p-3 {
    background: rgba(15, 23, 42, 0.95) !important;
    border-color: rgba(65, 219, 242, 0.3);
    color: rgba(255, 255, 255, 0.9) !important;
}

body.modern-theme.dark-mode .notification-box *,
body.modern-theme.dark-mode .tw-p-3 * {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.modern-theme.dark-mode .notification-box .tw-text-neutral-700,
body.modern-theme.dark-mode .tw-p-3 .tw-text-neutral-700 {
    color: #fff !important;
}

body.modern-theme.dark-mode .notification-box .tw-text-neutral-600,
body.modern-theme.dark-mode .tw-p-3 .tw-text-neutral-600 {
    color: rgba(255, 255, 255, 0.85) !important;
}
