/* Settings page component styles - optimized for neurodiverse users */
.asc-settings-page {
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a4187 0%, #3a5bb9 100%);
    color: white;
}

/* Page header with clearer boundaries */
.asc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.asc-header-left {
    display: flex;
    align-items: center;
}

.asc-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.asc-header-icon {
    color: white;
    font-size: 1.75rem;
}

.asc-page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Enhanced button styling */
.asc-header-right .asc-button {
    transition: var(--transition-fast);
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background-color: #4b8cff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .asc-header-right .asc-button:hover,
    .asc-header-right .asc-button:focus {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
        background-color: #5a94ff !important;
    }

/* Settings panel styling */
.asc-settings-panel {
    background: rgba(43, 66, 132, 0.7); /* Slightly transparent */
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

/* Section styling with clear boundaries */
.asc-settings-panel__section {
    padding: 1.5rem;
    position: relative;
}

.asc-settings-panel__section-title {
    color: white;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Item styling with better spacing for readability */
.asc-settings-panel__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

    .asc-settings-panel__item:hover,
    .asc-settings-panel__item:focus-within {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Label styling with clear icons */
.asc-settings-panel__label {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

    .asc-settings-panel__label .mud-icon {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
    }

/* Control styling with clearer interactive elements */
.asc-settings-panel__control {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

/* Custom styling for MudBlazor components */
::deep .mud-slider {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
}

::deep .mud-slider-track {
    background-color: #4b8cff !important;
    height: 6px;
}

::deep .mud-slider-thumb {
    width: 24px;
    height: 24px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    top: -9px;
}

/* Volume value with better contrast */
.asc-settings-panel__volume-value {
    min-width: 3.5rem;
    text-align: right;
    color: white;
    font-weight: var(--font-weight-semibold);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Enhanced switch styling */
::deep .mud-switch {
    margin: 0;
}

::deep .mud-switch-track {
    background-color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

    ::deep .mud-switch-track.mud-checked {
        background-color: #4b8cff !important;
    }

::deep .mud-switch-thumb {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Radio button styling */
::deep .mud-radio {
    color: white;
}

::deep .mud-radio-icons {
    color: white;
}

::deep .mud-radio-content {
    color: white;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

::deep .mud-radio-selected .mud-radio-icons {
    color: #4b8cff;
}

/* Select dropdown styling */
::deep .mud-select {
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

::deep .mud-select-input {
    padding: 0.5rem 1rem;
    color: white;
}

/* Password dialog */
.asc-password-dialog {
    background-color: #2a4187;
    color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.asc-dialog-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.25rem;
}

.asc-form-field {
    margin-bottom: 1.25rem;
}

/* MudBlazor dialog overrides */
.asc-password-dialog ::deep .mud-dialog-title {
    background-color: #1d2e62;
    padding: 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.asc-password-dialog ::deep .mud-dialog-content {
    background-color: #2a4187;
    padding: 1.5rem;
}

.asc-password-dialog ::deep .mud-dialog-actions {
    background-color: #1d2e62;
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Text input styling */
.asc-password-dialog ::deep .mud-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
}

.asc-password-dialog ::deep .mud-input-label {
    color: rgba(255, 255, 255, 0.8);
}

.asc-password-dialog ::deep .mud-input-slot {
    color: white;
}

/* Responsive behavior with larger targets on mobile */
@media (max-width: 768px) {
    .asc-page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .asc-header-right {
        width: 100%;
    }

        .asc-header-right .asc-button {
            width: 100%;
            padding: 1rem;
            font-size: 1.1rem;
        }

    .asc-settings-panel__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .asc-settings-panel__control {
        width: 100%;
    }

    .asc-settings-panel__volume-value {
        min-width: 4rem;
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    ::deep .mud-slider-thumb {
        width: 28px;
        height: 28px;
        top: -11px;
    }
}
