/* Modern settings form styling */
.session-info {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}


/* Form sections */
.form-section {
    margin-bottom: 32px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* Style for form rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Style for form columns */
.form-column {
    display: flex;
    flex-direction: column;
}

/* Style for the label */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* Helper text below inputs */
.field-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* Style for the input */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Custom styled checkboxes */
.advanced-options input[type="checkbox"],
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

input[type="checkbox"]:hover {
    border-color: var(--accent);
}

input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.1);
}

/* Checkbox labels */
.advanced-options label:has(input[type="checkbox"]),
label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.advanced-options label:has(input[type="checkbox"]):hover,
label:has(input[type="checkbox"]):hover {
    background: #f9fbff;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f9fbff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Style for the toggle button */
.toggle-button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.toggle-button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* Style for the advanced options section */
.advanced-options {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Style for the hidden advanced options section */
.hidden {
    display: none;
}

/* Style for the advanced options label */
.advanced-options label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* Style for the advanced options select */
.advanced-options select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 14px;
}

/* Submit buttons */
button[type="submit"],
.btn-primary {
    padding: 12px 24px;
    background-color: var(--accent);
    color: #fff;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    box-shadow: 0 10px 20px rgba(31, 122, 140, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button[type="submit"]:hover,
.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 122, 140, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    background-color: #e7eef1;
    color: var(--accent-dark);
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #d5e3e8;
}

/* Button group */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Responsive adjustments */
@media (max-width: 720px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-section-title {
        font-size: 16px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button[type="submit"],
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}