/* Globální styly pro celou aplikaci */

/* Základní proměnné a reset */
:root {
    /* Barevné schémata pro různá témata */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #33ddff;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;

    /* Textové barvy */
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    --text-dark: #000000;

    /* Pozadí */
    --surface: #f8f9fa;
    --surface-light: #ffffff;
    --surface-dark: #e9ecef;
    --card-bg: #ffffff;

    /* Ohraničení */
    --border: #dee2e6;
    --border-light: #f1f3f4;
    --border-dark: #adb5bd;

    /* Stín */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);

    /* Přechody */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Side Bar */
    --side-bg-start: #0f0f0f;
    --side-bg-end: #050505;

    /* Top Bar */
    --top-bg-start: #0a0a0a;
    --top-bg-end: #050505;
}

/* Tmavé téma */
[data-theme="blue_dark"] {
--primary: #00d4ff;
--primary-dark: #0099cc;
--primary-light: #66e0ff;
--accent: #ff6b6b;
--danger: #ff6b6b;
--success: #51cf66;
--warning: #ffd93d;
--info: #74c0fc;
--surface: #0a0a0a;
--surface-light: #1a1a1a;
--card-bg: #141414;
--card-hover: #1f1f1f;
--text: #ffffff;
--text-secondary: #b0b0b0;
--text-muted: #808080;
--text-dark: #000000;
--border: #2a2a2a;
--border-light: #3a3a3a;
--shadow: rgba(0, 0, 0, 0.5);
--glow: rgba(0, 212, 255, 0.3);
/* Side Bar */
--side-bg-start: #0f0f0f;
--side-bg-end: #050505;

/* Top Bar */
--top-bg-start: #0a0a0a;
--top-bg-end: #050505;
}


/* Oranžové téma */
[data-theme="amber_dark"] {
  --primary: #ffa726;
--primary-dark: #ff6d00;
--primary-light: #ffb74d;
--accent: #ff5252;
--success: #4caf50;
--warning: #ffd54f;
--info: #64b5f6;
--surface: #121212;
--surface-light: #1e1e1e;
--card-bg: #1f1f1f;
--card-hover: #2a2a2a;
--text: #ffffff;
--text-secondary: #bdbdbd;
--text-muted: #757575;
--text-dark: #000000;
--border: #353535;
--border-light: #424242;
--shadow: rgba(0, 0, 0, 0.6);
--glow: rgba(255, 167, 38, 0.3);
/* Side Bar */
--side-bg-start: #0f0f0f;
--side-bg-end: #050505;

/* Top Bar */
--top-bg-start: #0a0a0a;
--top-bg-end: #050505;

}

/* Vlastní téma */
[data-theme="custom_dark"] {
  --primary: #9c27b0;
 --primary-dark: #7b1fa2;
 --primary-light: #ba68c8;
 --accent: #f44336;
 --success: #8bc34a;
 --warning: #ff9800;
 --info: #2196f3;
 --surface: #121212;
 --surface-light: #1e1e1e;
 --card-bg: #1f1f1f;
 --card-hover: #2a2a2a;
 --text: #ffffff;
 --text-secondary: #bdbdbd;
 --text-muted: #757575;
 --text-dark: #000000;
 --border: #353535;
 --border-light: #424242;
 --shadow: rgba(0, 0, 0, 0.6);
 --glow: rgba(156, 39, 176, 0.3);


    /* Side Bar */
    --side-bg-start: #0f0f0f;
    --side-bg-end: #050505;

    /* Top Bar */
    --top-bg-start: #0a0a0a;
    --top-bg-end: #050505;
}

/* Světlé téma */
[data-theme="blue_light"] {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #339af0;
    --text: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --text-dark: #000000;
    --surface: #ffffff;
    --surface-light: #f8f9fa;
    --surface-dark: #e9ecef;
    --card-bg: #ffffff;
    --border: #dee2e6;
    --border-light: #f1f3f4;
    --border-dark: #adb5bd;
    /* Side Bar */
    --side-bg-start: #F6F5F5;
    --side-bg-end: #E6DFDF;

    /* Top Bar */
    --top-bg-start: #F6F5F5;
    --top-bg-end: #E6DFDF;
}

/* Oranžové téma */
[data-theme="amber_light"] {
    --primary: #ff9800;
    --primary-dark: #f57c00;
    --primary-light: #ffb74d;
    --text: #3e2723;
    --text-secondary: #5d4037;
    --text-muted: #8d6e63;
    --text-light: #ffffff;
    --text-dark: #000000;
    --surface: #fff3e0;
    --surface-light: #ffffff;
    --surface-dark: #ffe0b2;
    --card-bg: #ffffff;
    --border: #ffcc80;
    --border-light: #ffe0b2;
    --border-dark: #ffb74d;

    --side-bg-start: #F6F5F5;
    --side-bg-end: #FACF8E;

    /* Top Bar */
    --top-bg-start: #F6F5F5;
    --top-bg-end: #FACF8E;
}

/* Vlastní téma */
[data-theme="custom_light"] {
    --primary: #9c27b0;
    --primary-dark: #7b1fa2;
    --primary-light: #ba68c8;
    --text: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --text-dark: #000000;
    --surface: #f3e5f5;
    --surface-light: #ffffff;
    --surface-dark: #e1bee7;
    --card-bg: #ffffff;
    --border: #ce93d8;
    --border-light: #e1bee7;
    --border-dark: #ba68c8;

    --side-bg-start: #F6F5F5;
    --side-bg-end: #F3C7FA;

    /* Top Bar */
    --top-bg-start: #F6F5F5;
    --top-bg-end: #F3C7FA;
}

/* Základní reset a globální styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Hlavička aplikace */
.app-header {
    background: linear-gradient(180deg, var(--top-bg-start) 0%, var(--top-bg-end) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--surface-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--surface-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--surface-light);
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.header-btn:hover {
    background: var(--border);
    color: var(--text);
}

/* Boční menu */
.sidebar {
    background: linear-gradient(180deg, var(--side-bg-start) 0%, var(--side-bg-end) 100%);
    width: 260px;
    border-right: 1px solid var(--border);
    padding: 0;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.sidebar-header:hover {
    background: var(--surface-light);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.sidebar-menu {
    padding: 12px 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.menu-link:hover {
    color: var(--primary);
    background: var(--surface-light);
}

.menu-item.active_link .menu-link {
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-item.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-item.has-submenu.active .submenu {
    max-height: 500px;
}

.submenu .menu-link {
    padding-left: 52px;
    font-size: 13px;
}

.submenu .menu-link.active_link {
    color: var(--primary);
}

/* Hlavní obsah */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    flex: 1;
    min-height: calc(100vh - 70px);
    background: var(--surface);
    transition: var(--transition);
}

.content-area {
   /* max-width: 1400px; */
    margin: 0px auto;
    padding: 0px;
    min-height: 100%;
    background: transparent; /* Transparentní pozadí pro zobrazení obrázku pozadí z body */
}

/* Section Content */
.section-content {
    display: none;
    padding: 0 20px;
    margin-top: 0;
}

/* Tabs Header */
.settings-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    padding: 0;
    padding-right: 20px;
    margin: 0;
}

.settings-tabs {
    flex: 1;
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    height: 76px;
}

.tab-btn {
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--surface);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab content styles */
.tab-content {
    padding: 20px;
    padding-top: 0px;
    margin-top: 0px;
    margin-bottom: 40px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab content bottom margin */
.tab-content > div:last-child {
    margin-bottom: 164px;
}

/* Section content bottom margin */
.section-content > .config-section:last-child,
.section-content > .scan-progress-section:last-child,
.section-content > .scan-results-section:last-child,
.section-content > .scan-log-section:last-child {
    margin-bottom: 164px;
}

/* Section info messages - new specifications */
.section-info {
    position: relative;
    margin-top: 20px;
    margin-bottom: 64px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    color: var(--primary);
}

.section-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-info i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.section-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
}

/* Header - Page header style from service/dashboard */
.page-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.page-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.page-header .header-content > div:first-child {
    flex: 1;
}

.page-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: var(--primary);
}

.page-header .subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.page-header .header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Configuration Grid */
.configuration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.section {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--surface-light) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--text);
    font-weight: 600;
}

/* Sliders row */
.sliders-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: center;
}

.slider-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-group .slider-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}


/* Slider */
.slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-group input[type="range"] {
    height: 4px;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-group span {
    min-width: 30px;
    text-align: right;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Modern circular checkboxes */
.form-input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.form-input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.form-input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-input[type="checkbox"]:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Remove default checkbox styling */
label {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

label input[type="checkbox"] {
    margin: 0;
}

label {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

small {
    color: var(--text-muted);
    font-size: 12px;
}

/* Checkboxes row */
.checkboxes-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.checkbox-group .checkbox-text {
    color: var(--text);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}


/* Theme-based sliders */
.theme-slider {
    width: 100%;
    height: 8px;
    background: var(--border);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.theme-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
}

.theme-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.theme-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
}

.theme-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Progress Section */




.progress-info {
    text-align: center;
    margin-bottom: 16px;
}

.progress-info span {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--surface-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        var(--primary) 0%,
        var(--primary-light) 50%,
        var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
    z-index: 1;
}

.progress-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    background: var(--surface-light);
    padding: 6px 12px;
    border-radius: 6px;
}



/* Buttons */
.header-btn {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    width: auto; /* Rectangular shape */
    border-radius: 12px;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    text-align: center;
}


.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    color: var(--text-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    color: var(--text);
    border: 1px solid var(--border);
    font-weight: 500;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--border) 0%, var(--surface-light) 100%);
    border-color: var(--primary);
    transform: translateY(-1px);
}


/* Párování */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .header-container {
        padding: 0 12px;
    }

    .header-nav {
        display: none;
    }

    .content-area {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .app-title {
        display: none;
    }

    .logo-section {
        margin-right: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .status-indicator {
        display: none;
    }
}

/* ========================================
   Select2 Styling - Professional Theme
   ======================================== */

/* Select2 Container */
.select2-container {
    display: block !important;
    width: 100% !important;
}

/* Select2 Selection */
.select2-selection {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 42px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: none;
}

.select2-container--open .select2-selection {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Select2 Selection Render */
.select2-selection__rendered {
    display: flex;
    align-items: center;
}

.select2-selection__rendered li {
    color: var(--text);
    padding: 0;
    line-height: 1.5;
}

.select2-selection__placeholder {
    color: var(--text-muted);
}

/* Select2 Dropdown Arrow */
.select2-selection__arrow {
    height: 100%;
    right: 8px;
    top: 0;
    border-color: var(--text-secondary) transparent transparent transparent;
    border-width: 5px 5px 0 5px;
    margin-left: -5px;
    margin-top: -2px;
}

/* Select2 Multiple Selection */
.select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
}

/* Select2 Tags/Choices */
.select2-selection__choice {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.select2-selection__choice__remove {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.select2-selection__choice__remove:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.select2-search--inline .select2-search__field {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    margin-right: 4px;
}

.select2-search--inline .select2-search__field::placeholder {
    color: var(--text-muted);
}

/* Select2 Dropdown */
.select2-dropdown {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    overflow: hidden;
}

/* Select2 Search */
.select2-search {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background-color: var(--surface-light);
}

.select2-search .select2-search__field {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    width: 100% !important;
    outline: none;
    transition: all 0.2s ease;
}

.select2-search .select2-search__field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.select2-search .select2-search__field::placeholder {
    color: var(--text-muted);
}

/* Select2 Results */
.select2-results {
    max-height: 300px;
    overflow-y: auto;
}

.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.select2-results__option {
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    border-radius: 6px;
}

.select2-results__option:hover {
    background-color: var(--surface-light);
    color: var(--primary);
}

.select2-results__option--highlighted {
    background-color: var(--primary);
    color: var(--text-dark);
    font-weight: 500;
}

.select2-results__option--selected {
    background-color: var(--primary-light);
    color: var(--text-dark);
    font-weight: 500;
}

.select2-results__option[aria-disabled="true"] {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Select2 Results Group */
.select2-results__group {
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--surface-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 4px;
}

.select2-results__message {
    color: var(--text-muted);
    font-style: italic;
}

/* Select2 Dropdown Arrow (Open State) */
.select2-container--open .select2-selection__arrow {
    border-color: transparent transparent var(--text-secondary) transparent;
    border-width: 0 5px 5px 5px;
    margin-top: -3px;
}

/* Select2 Disabled State */
.select2-container--disabled .select2-selection {
    background-color: var(--surface-dark);
    opacity: 0.6;
    cursor: not-allowed;
}

.select2-container--disabled .select2-selection__choice__remove {
    display: none;
}

/* Select2 Focus State */
.select2-container--focus .select2-selection {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Select2 Error State */
.select2-container--error .select2-selection {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Select2 Custom Scrollbar */
.select2-results::-webkit-scrollbar {
    width: 8px;
}

.select2-results::-webkit-scrollbar-track {
    background: var(--surface);
}

.select2-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.select2-results::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Select2 RTL Support */
[dir="rtl"] .select2-selection__arrow {
    left: 8px;
    right: auto;
}

[dir="rtl"] .select2-selection__choice__remove {
    margin-left: 4px;
    margin-right: 0;
}

/* Select2 Responsive */
@media (max-width: 768px) {
    .select2-dropdown {
        max-width: 100%;
        max-height: 250px;
    }

    .select2-selection {
        min-height: 40px;
        font-size: 13px;
        padding: 8px;
    }

    .select2-results__option {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Select2 Animations */
.select2-dropdown {
    animation: select2DropdownFadeIn 0.2s ease;
}

@keyframes select2DropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-selection__choice {
    animation: select2TagFadeIn 0.2s ease;
}

@keyframes select2TagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
