/**
 * LogLynx Layout - Navigation & Page Structure
 */

/* Main Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--loglynx-bg);
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background: var(--loglynx-bg-dark);
    border-right: 2px solid var(--loglynx-primary);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-base);
    z-index: 1000;
}

.sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--loglynx-primary-dark) 0%, var(--loglynx-primary) 100%);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: white;
    font-size: var(--font-size-xl);
    font-weight: bold;
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 1.5rem;
}

.sidebar-brand:hover {
    color: white;
}

.sidebar-nav {
    padding: var(--space-md) 0;
    flex: 1;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: var(--space-lg);
}

.nav-section-title {
    padding: var(--space-sm) var(--space-lg);
    color: var(--loglynx-text-dark);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.nav-item {
    display: block;
    padding: 0.75rem var(--space-lg);
    color: var(--loglynx-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1em;
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--loglynx-primary);
    padding-left: calc(var(--space-lg) + 4px);
}

.nav-item.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--loglynx-primary);
    font-weight: 600;
    border-left: 3px solid var(--loglynx-primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--loglynx-primary);
}

.nav-badge {
    margin-left: auto;
    font-size: var(--font-size-xs);
    padding: 0.15em 0.5em;
    background: var(--status-danger);
    color: white;
    border-radius: 10px;
}

.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(0, 0, 0, 0));
    color: var(--loglynx-text-muted);
}

.sidebar-version {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    color: var(--loglynx-text-light);
}

.sidebar-version-icon i {
    color: var(--loglynx-primary-light);
    font-size: 1rem;
}

.sidebar-version-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-version-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--loglynx-text-dark);
}

.sidebar-version-details a {
    color: var(--loglynx-primary-light);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-version-details a:hover {
    color: var(--loglynx-primary);
}

.sidebar-version-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--loglynx-text-dark);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header Bar */
.top-header {
    background: linear-gradient(135deg, var(--loglynx-bg-dark) 0%, #1a1a1f 100%);
    border-bottom: 2px solid var(--loglynx-primary);
    padding: 10px var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    gap: var(--space-lg);
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    min-width: 0;
    flex-shrink: 0;
}

.header-title-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.header-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--loglynx-text-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    line-height: 1.2;
}

.header-title i {
    color: var(--loglynx-primary);
    font-size: 1.1em;
}

.header-subtitle {
    font-size: 0.7rem;
    color: var(--loglynx-text-muted);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.header-version {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--loglynx-text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.header-version i {
    color: var(--loglynx-primary);
    font-size: 0.85rem;
}

/* Quick Actions */
.header-quick-actions {
    display: flex;
    gap: var(--space-xs);
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--loglynx-primary) 0%, var(--loglynx-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.header-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--loglynx-primary-light) 0%, var(--loglynx-primary) 100%);
}

.header-action-btn:active {
    transform: translateY(0);
}

.header-action-btn i {
    font-size: 1em;
}

.action-label {
    font-weight: 500;
}

/* Filters Group */
.header-filters-group {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.8), rgba(26, 26, 29, 0.6));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.filter-group:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.filter-group:hover::before {
    left: 100%;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.25);
}

.filter-header i {
    color: var(--loglynx-primary);
    font-size: 1em;
    transition: transform 0.3s ease;
}

.filter-group:hover .filter-header i {
    transform: scale(1.1);
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-row {
    display: flex;
    gap: 8px;
}

/* Form Controls Compact */
.form-control-compact {
    background: linear-gradient(135deg, rgba(22, 22, 25, 0.95), rgba(18, 18, 21, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: var(--loglynx-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-control-compact:hover {
    border-color: rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, rgba(22, 22, 25, 1), rgba(18, 18, 21, 0.95));
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.form-control-compact:focus {
    outline: none;
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15), 0 2px 8px rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, rgba(22, 22, 25, 1), rgba(18, 18, 21, 1));
    transform: translateY(-1px);
}

.form-control-compact.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-content: space-between;
}

.form-control-compact.dropdown-toggle i {
    font-size: 0.9em;
}

.form-control-compact.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
    opacity: 0.7;
    color: var(--loglynx-primary);
}

.form-control-compact.dropdown-toggle.open .fa-chevron-down {
    transform: rotate(180deg);
    opacity: 1;
}

/* Traffic Checkbox Label */
.traffic-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.traffic-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--loglynx-primary);
    transition: transform 0.2s ease;
}

.traffic-checkbox-label:hover {
    color: var(--loglynx-primary);
}

.traffic-checkbox-label:hover input[type="checkbox"] {
    transform: scale(1.1);
}

.traffic-checkbox-label i {
    color: var(--loglynx-primary);
    font-size: 1em;
    transition: transform 0.3s ease;
}

.traffic-checkbox-label:hover i {
    transform: scale(1.1);
}

/* Service Filter */
.service-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-filter > div {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.service-filter label {
    color: var(--loglynx-text-muted);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    min-width: 70px;
}

.service-filter select {
    min-width: 150px;
    width: auto;
}

/* Service Multi-Select Dropdown */
.service-multiselect {
    position: relative;
    width: 100%;
}

.service-multiselect-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 320px;
    background: linear-gradient(135deg, rgba(22, 22, 25, 0.98), rgba(18, 18, 21, 0.95));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(255, 107, 53, 0.2);
    z-index: 1000;
    max-height: 400px;
    display: none;
    flex-direction: column;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-multiselect-dropdown.open {
    display: flex;
}

/* Hide Traffic Multi-Select Dropdown */
.hide-traffic-multiselect {
    position: relative;
    width: 100%;
}

.hide-traffic-multiselect .service-dropdown-menu {
    min-width: 320px;
}

.multiselect-search {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.multiselect-search input {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.95), rgba(22, 22, 25, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 6px;
    color: var(--loglynx-text);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.multiselect-search input:focus {
    outline: none;
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: linear-gradient(135deg, rgba(26, 26, 29, 1), rgba(22, 22, 25, 0.95));
}

.multiselect-options {
    overflow-y: auto;
    max-height: 300px;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.multiselect-option:last-child {
    border-bottom: none;
}

.multiselect-option:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
    transform: translateX(2px);
    border-left: 2px solid var(--loglynx-primary);
    padding-left: 12px;
}

.multiselect-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--loglynx-primary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.multiselect-option:hover input[type="checkbox"] {
    transform: scale(1.1);
}

.multiselect-option label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--loglynx-text);
    white-space: normal;
    word-wrap: break-word;
}

.multiselect-actions {
    padding: 12px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.5), rgba(22, 22, 25, 0.3));
}

.btn-link-compact {
    background: none;
    border: 1px solid transparent;
    color: var(--loglynx-primary);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-link-compact:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.08));
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--loglynx-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.2);
}

/* Legacy Service Filter Classes (for backward compatibility) */
#serviceFilterToggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--loglynx-bg-secondary);
    border: 1px solid var(--loglynx-border);
    color: var(--loglynx-text);
    padding: 0.375rem 0.75rem;
}

#serviceFilterLabel {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

#serviceFilterToggle:hover {
    background-color: var(--loglynx-bg-tertiary);
}

#serviceFilterToggle i {
    font-size: 10px;
    transition: transform 0.2s;
}

#serviceFilterToggle.open i {
    transform: rotate(180deg);
}

.service-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: linear-gradient(135deg, rgba(22, 22, 25, 0.98), rgba(18, 18, 21, 0.95));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 8px;
    margin-top: 6px;
    max-height: 400px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(255, 107, 53, 0.2);
    animation: dropdownFadeIn 0.2s ease;
}

.service-dropdown-menu.show {
    display: flex;
}

.service-search {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.service-search input {
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.95), rgba(22, 22, 25, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: var(--loglynx-text);
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.service-search input:focus {
    outline: none;
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: linear-gradient(135deg, rgba(26, 26, 29, 1), rgba(22, 22, 25, 0.95));
}

.service-options {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.service-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin: 2px 0;
    font-size: var(--font-size-sm);
    color: var(--loglynx-text);
    transition: background 0.15s ease;
}

.service-option:hover {
    background-color: var(--loglynx-bg-tertiary);
}

.service-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--loglynx-primary);
    flex-shrink: 0;
}

.service-option span {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
}

.service-actions {
    padding: 10px;
    border-top: 1px solid var(--loglynx-border);
    text-align: right;
}

.service-actions .btn-link {
    color: var(--loglynx-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.service-actions .btn-link:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Display Preference Filter */
.display-preference-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.display-preference-filter label {
    font-size: var(--font-size-sm);
    color: var(--loglynx-text-muted);
    white-space: nowrap;
    margin: 0;
}

.display-preference-filter select {
    min-width: 140px;
}

/* Hide My Traffic Filter */
.hide-traffic-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hide-traffic-toggle {
    display: flex;
    align-items: center;
}

.traffic-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--loglynx-text);
    margin: 0;
}

.traffic-checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.traffic-checkbox-label:hover {
    color: var(--loglynx-primary);
}

.hide-traffic-services {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 4px;
}

.hide-traffic-services label {
    color: var(--loglynx-text-muted);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}

.hide-traffic-multiselect {
    position: relative;
    min-width: 220px;
    max-width: 350px;
}

#hideTrafficToggle {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--loglynx-bg-secondary);
    border: 1px solid var(--loglynx-border);
    color: var(--loglynx-text);
    padding: 0.375rem 0.75rem;
}

#hideTrafficLabel {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

#hideTrafficToggle:hover {
    background-color: var(--loglynx-bg-tertiary);
}

#hideTrafficToggle i {
    font-size: 10px;
    transition: transform 0.2s;
}

#hideTrafficToggle.open i {
    transform: rotate(180deg);
}

/* Refresh Controls */
.header-refresh-controls {
    display: flex;
    align-items: center;
}

/* Compact Refresh Settings Button */
.refresh-settings-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.8), rgba(26, 26, 29, 0.6));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.refresh-settings-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.refresh-settings-btn:hover::before {
    left: 100%;
}

.refresh-settings-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.1));
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.refresh-btn-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-btn-main > i {
    font-size: 20px;
    color: var(--loglynx-primary);
    transition: transform 0.3s ease;
}

.refresh-btn-main > i.fa-spin {
    color: var(--loglynx-success);
}

.refresh-settings-btn:hover .refresh-btn-main > i:not(.fa-spin) {
    transform: rotate(45deg);
}

.refresh-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.refresh-btn-interval {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.refresh-btn-last {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.refresh-compact-badge {
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-btn-settings-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.refresh-settings-btn:hover .refresh-btn-settings-icon {
    color: var(--loglynx-primary);
    transform: rotate(90deg);
}

/* Refresh Settings Modal Styles */
.refresh-modal {
    background: linear-gradient(135deg, #1a1a1d 0%, #0d0d0f 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.refresh-modal .modal-header {
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.05);
}

.refresh-modal .modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.refresh-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.refresh-modal .modal-title i {
    color: var(--loglynx-primary);
}

.refresh-modal .mode-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-modal .modal-body {
    padding: 1.5rem;
}

/* Status Banner */
.refresh-status-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.status-icon {
    font-size: 32px;
    color: #0d6efd;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.status-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Setting Cards */
.setting-card {
    background: rgba(26, 26, 29, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.setting-card:last-child {
    margin-bottom: 0;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-header i {
    color: var(--loglynx-primary);
    font-size: 16px;
}

/* Form Controls */
.refresh-modal .form-select,
.refresh-modal .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.refresh-modal .form-select {
    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='%23FF6B35' 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 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

.refresh-modal .form-select:hover {
    background-color: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.4);
}

.refresh-modal .form-select:focus,
.refresh-modal .form-control:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    color: #FFFFFF;
    outline: none;
}

.refresh-modal .form-select option {
    background: #1a1a1d;
    color: #FFFFFF;
}

.refresh-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.refresh-modal .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.refresh-modal .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 12px 20px;
}

/* Refresh Toggle Group */
.refresh-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.refresh-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-toggle-btn i {
    font-size: 24px;
}

.refresh-toggle-btn span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.refresh-toggle-btn:hover {
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
}

.refresh-toggle-btn.active {
    border-color: var(--loglynx-success);
    background: rgba(40, 167, 69, 0.15);
    color: var(--loglynx-success);
}

.refresh-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.refresh-status-text {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* Page Override Card */
.page-override-card {
    height: 100%;
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.3);
}

.override-explanation {
    display: flex;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pin-explanation {
    border-left: 3px solid #ffc107;
}

.unpin-explanation {
    border-left: 3px solid #6c757d;
}

.explanation-icon {
    font-size: 28px;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.pin-explanation .explanation-icon {
    color: #ffc107;
}

.unpin-explanation .explanation-icon {
    color: #6c757d;
}

.explanation-content {
    flex: 1;
}

.explanation-title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.explanation-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.btn-override {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.btn-override.pin {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.btn-override.pin:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-override.unpin {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
    color: #adb5bd;
}

.btn-override.unpin:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-2px);
}

/* Legacy styles for modal content */
.refresh-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-custom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-custom input[type="number"] {
    text-align: center;
}

.refresh-custom input[type="number"]::-webkit-inner-spin-button,
.refresh-custom input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.refresh-buttons {
    display: flex;
    gap: 6px;
}

.refresh-label {
    font-size: 0.7rem;
    color: var(--loglynx-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.refresh-label i {
    color: var(--loglynx-primary);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(22, 22, 25, 0.9);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    color: var(--loglynx-text);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.header-icon-btn:hover {
    background: var(--loglynx-primary);
    border-color: var(--loglynx-primary);
    color: white;
    transform: scale(1.05);
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.header-icon-btn.active {
    background: var(--loglynx-primary);
    border-color: var(--loglynx-primary);
    color: white;
}

.header-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.header-icon-btn i {
    font-size: inherit;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: var(--space-xl);
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-xl);
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.page-title {
    font-size: var(--font-size-3xl);
    margin: 0;
    color: var(--loglynx-text-light);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.page-title i {
    color: var(--loglynx-primary);
}

.page-description {
    color: var(--loglynx-text-muted);
    font-size: var(--font-size-base);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 2000;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.show {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.notification-success {
    background: var(--status-success);
    color: white;
}

.notification-error {
    background: var(--status-danger);
    color: white;
}

.notification-warning {
    background: var(--status-warning);
    color: var(--loglynx-bg-dark);
}

.notification-info {
    background: var(--status-info);
    color: white;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-content {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.notification-close:hover {
    opacity: 1;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 22, 25, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid var(--loglynx-text-muted);
    border-top-color: var(--loglynx-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-md);
}

.loading-text {
    color: var(--loglynx-text-light);
    font-size: var(--font-size-lg);
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: var(--loglynx-card);
    border: 1px solid var(--border-color);
    color: var(--loglynx-text);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .sidebar-toggle {
        display: flex;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: var(--space-md);
        flex-wrap: wrap;
    }

    .page-content {
        padding: var(--space-md);
    }

    .header-title {
        font-size: var(--font-size-lg);
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    /* Stack header elements vertically on tablets */
    .header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .header-filters-group {
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-group {
        min-width: 180px;
        flex: 1;
    }

    .header-refresh-controls {
        width: 100%;
        justify-content: space-between;
    }

    .service-filter select {
        min-width: 120px;
    }

    .refresh-status span {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: var(--space-sm);
    }

    .header-left {
        gap: var(--space-sm);
    }

    .header-title {
        font-size: var(--font-size-md);
    }

    .header-subtitle {
        display: none;
    }

    .header-right {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .header-quick-actions {
        width: 100%;
    }

    .header-action-btn {
        width: 100%;
        justify-content: center;
    }

    .header-filters-group {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .filter-group {
        min-width: 100%;
    }

    .header-refresh-controls {
        flex-wrap: wrap;
    }

    .refresh-group {
        flex: 1;
    }

    .page-title {
        font-size: var(--font-size-xl);
    }

    .notification {
        left: var(--space-md);
        right: var(--space-md);
        min-width: auto;
    }
}

/* Footer */
.app-footer {
    background: var(--loglynx-bg-dark);
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: var(--loglynx-text-muted);
    font-size: var(--font-size-sm);
}

.app-version-pill {
    margin-top: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--loglynx-text-light);
    font-weight: 600;
    font-size: 0.8rem;
}

.app-version-pill i {
    color: var(--loglynx-primary-light);
}

.app-footer a {
    color: var(--loglynx-primary);
}

.app-footer a:hover {
    color: var(--loglynx-primary-light);
}

/* ============================================
 * IP Analytics Page Specific Styles
 * ============================================ */

/* IP Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background: var(--loglynx-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.search-results-dropdown .list-group-item {
    background: var(--loglynx-card);
    border-color: var(--border-color);
    color: #FFFFFF;
    padding: 1rem;
}

.search-results-dropdown .list-group-item:hover {
    background: rgba(244, 99, 25, 0.1);
    border-color: #F46319;
}

.search-results-dropdown .list-group-item strong {
    color: #F46319;
    font-size: 1.1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-overlay p {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Custom Leaflet Marker (for IP map) */
.custom-marker {
    background: none;
    border: none;
}

/* IP Address Links */
.ip-link {
    color: #F46319;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ip-link:hover {
    color: #ff7a3d;
    text-decoration: underline;
}

.ip-link code {
    background: rgba(244, 99, 25, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(244, 99, 25, 0.3);
}

.ip-link:hover code {
    background: rgba(244, 99, 25, 0.2);
    border-color: #F46319;
}

/* ====================================
   FILTER TRIGGER BUTTONS (MODAL VERSION)
   ==================================== */

.filter-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(26, 26, 29, 0.8), rgba(26, 26, 29, 0.6));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 10px 16px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.filter-trigger-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-trigger-btn:hover::before {
    left: 100%;
}

.filter-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.1));
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.filter-trigger-btn > i:first-child {
    font-size: 20px;
    color: var(--loglynx-primary);
    transition: transform 0.3s ease;
}

.filter-trigger-btn.active > i:first-child {
    color: var(--loglynx-success);
}

.filter-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    text-align: left;
}

.filter-btn-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.filter-btn-status {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
}

.filter-btn-settings-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.filter-trigger-btn:hover .filter-btn-settings-icon {
    color: var(--loglynx-primary);
    transform: rotate(90deg);
}

/* ====================================
   FILTER MODAL STYLES
   ==================================== */

.filter-modal {
    background: linear-gradient(135deg, #1a1a1d 0%, #0d0d0f 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.filter-modal .modal-header {
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.05);
}

.filter-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.filter-modal .modal-title i {
    color: var(--loglynx-primary);
    margin-right: 8px;
}

.filter-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Filter Search Box */
.filter-search-box {
    position: relative;
    margin-top: 4px;
    margin-bottom: 12px;
}

.filter-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--loglynx-primary);
    opacity: 0.7;
    z-index: 5;
}

.filter-search-box input {
    padding-left: 38px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #FFFFFF;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.filter-search-box input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    color: #FFFFFF;
}

.filter-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Service Options in Modal */
.service-options-modal {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-options-modal::-webkit-scrollbar {
    width: 8px;
}

.service-options-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.service-options-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 4px;
}

.service-options-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

.service-option-modal {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    margin: 3px 0;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.service-option-modal:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    transform: translateX(4px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.15);
}

.service-option-modal input[type="checkbox"] {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--loglynx-primary);
    flex-shrink: 0;
}

.service-option-modal input[type="checkbox"]:checked {
    filter: brightness(1.2);
}

.service-option-modal span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

.filter-actions .btn {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: var(--loglynx-primary);
    transition: all 0.3s ease;
}

.filter-actions .btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--loglynx-primary);
    transform: translateY(-1px);
}

/* Setting Description */
.setting-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0 4px;
}

.setting-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Traffic Toggle - Modern Slider Style */
.traffic-toggle-group {
    margin-top: 8px;
}

.traffic-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0;
    gap: 12px;
    position: relative;
    user-select: none;
}

.traffic-toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.traffic-toggle-slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.traffic-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.traffic-toggle-checkbox:checked + .traffic-toggle-slider {
    background: linear-gradient(135deg, var(--loglynx-primary), #ff8547);
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.traffic-toggle-checkbox:checked + .traffic-toggle-slider::before {
    left: calc(100% - 21px);
}

.traffic-toggle-label:hover .traffic-toggle-slider {
    border-color: rgba(255, 107, 53, 0.5);
}

.traffic-toggle-checkbox:checked + .traffic-toggle-slider + .traffic-toggle-text {
    color: var(--loglynx-primary);
    font-weight: 500;
}

.traffic-toggle-text {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* Form Select in Filter Modal */
.filter-modal .form-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.filter-modal .form-select:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--loglynx-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    color: #FFFFFF;
}

.filter-modal .form-select option {
    background: #1a1a1d;
    color: #FFFFFF;
}
