.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.proxy-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.error-message {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 4px;
            padding: 10px;
            position: relative;
            color: #721c24;
            font-size: 14px;
            width: 100%;
            min-height: 50px;
            box-sizing: border-box;
        }

.error-message.active {
    display: block;
}

.error-message .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.error-message .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    color: #721c24;
    cursor: pointer;
    line-height: 1;
}

.error-message .close-btn:hover {
    color: #50141a;
}

.error-message .message {
    word-wrap: break-word;
}

.error-message .refresh-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: none;
    border: 2px solid #721c24;
    border-radius: 20px;
    color: #721c24;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* Menghilangkan garis bawah link */
    transition: background-color 0.2s, color 0.2s;
}

.error-message .refresh-btn:hover {
    background: #721c24;
    color: #fff;
}
.proxy-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.proxy-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.proxy-form input[type="url"]:focus {
    border-color: #007bff;
}

.proxy-form button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.proxy-form button:hover {
    background: #0056b3;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.switch-container input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.switch-container input[type="checkbox"]:checked + .slider {
    background: #007bff;
}

.switch-container input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px);
}
