/* Proxy Modal Styles */

#proxyModal .modal-content {
    min-height: 780px;
    max-height: 85vh;
}

#proxyModal .modal-body {
    min-height: 650px;
}

.proxy-type-buttons,
.proxy-state-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.proxy-type-btn,
.state-mode-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.proxy-type-btn:hover,
.state-mode-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: translateY(-2px);
    color: #000;
}

.proxy-type-btn.active,
.state-mode-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    color: #fff;
}

/* Флаги в proxy */
#proxyCountryOptions .country-flag {
    font-size: 1.5rem;
    margin-right: 12px;
}

#proxyCountrySelected .country-flag {
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Поиск стран */
#proxyCountrySearchInput:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Стили для ползунка длительности IP */
#proxyLifetimeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #667eea 0%, #764ba2 100%);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

#proxyLifetimeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#proxyLifetimeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

#proxyLifetimeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

#proxyLifetimeSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.5);
}

/* Тумблер для ротации IP */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #fff, #f0f0f0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle-switch:hover .toggle-slider {
    border-color: #667eea;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
