/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Ensure modal appears above the ribbon */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #2c2c2e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 20px;
    width: 600px; /* Set a fixed width */
    max-width: 90%;
    height: 80vh; /* Set a fixed height */
    overflow: hidden; /* Prevent overflow */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #ffffff;
    text-decoration: none;
}

.settings-item {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-item label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 18px;
}

.settings-item input[type="number"],
.settings-item input[type="checkbox"] {
    width: 80%;
    max-width: 300px;
    padding: 12px;
    border-radius: 15px;
    border: none;
    background-color: #3a3a3c;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
}

.settings-item input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin-top: 10px;
}

.settings-item input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.primary-button,
.danger-button {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    border: none;
}

.primary-button {
    background-color: #ff9500;
    color: #ffffff;
}

.primary-button:hover {
    background-color: #ff950091;
}

.danger-button {
    background-color: #ff3b30;
    color: #ffffff;
}

.danger-button:hover {
    background-color: #ff1f0f;
}

.settings-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.settings-sidebar {
    width: 30%;
    border-right: 1px solid #444;
}

.settings-sidebar ul {
    list-style: none;
    padding: 0;
}

.settings-sidebar li {
    padding: 15px;
    cursor: pointer;
    color: #ffffff;
}

.settings-sidebar li.active,
.settings-sidebar li:hover {
    background-color: #3a3a3c;
}

.settings-main {
    width: 70%;
    padding: 20px;
    color: #ffffff;
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Remove scrollbar arrow buttons and add rounded corners for .settings-main */
.settings-main::-webkit-scrollbar-button {
    display: none;
}

.settings-main::-webkit-scrollbar-thumb {
    border-radius: 8px; /* Increase for more rounded corners */
}

.settings-section {
    margin-bottom: 20px;
}

/* Custom Scrollbar */
.settings-main::-webkit-scrollbar {
    width: 8px;
}

.settings-main::-webkit-scrollbar-track {
    background: #2c2c2e;
}

.settings-main::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.aggressiveness-labels {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 300px;
    margin-top: 10px;
    color: #ffffff;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .settings-container {
        flex-direction: column;
    }
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #444;
    }
    .settings-main {
        width: 100%;
    }
    .modal-content {
        width: 90%;
        height: 80vh;
    }
}

.settings-section#advanced .danger-button {
    width: 100%;
    max-width: 300px;
}

/* styles for the new aggressiveness selector and sliding animation */
.aggressiveness-selector {
    position: relative;
    display: flex;
    width: 90%;
    max-width: 300px;
    height: 50px;
    margin: 20px auto;
    background-color: #3a3a3c;
    border-radius: 15px;
    overflow: hidden;
}

.aggressiveness-selector .option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 1;
    font-size: 16px;
    user-select: none;
}

.aggressiveness-selector .selector {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / 3);
    height: 100%;
    background-color: #ff9500;
    border-radius: 15px;
    transition: left 0.3s ease;
    z-index: 0;
}

/* Style for input group */
.input-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.input-group input {
    width: calc(100% - 50px);
    padding: 10px;
    border-radius: 15px 0 0 15px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.input-group button {
    width: 50px;
    padding: 10px;
    border: none;
    border-radius: 0 15px 15px 0;
    background-color: #ff9500;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.input-group button:hover {
    background-color: #ff950091;
}
