.dialog-container {
    display: flex;
    flex-direction: column;
    background-color: var(--color-modals-background);
    color: var(--color-text-primary);
    border-radius: 12px;
    overflow: hidden;
    width: 590px;
    max-width: 90vw;
    max-height: 90vh;
    height: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: none !important;
}

:host {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Header Section */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-divider-subtle);

    .icon-and-title {
        display: flex;
        align-items: center;
        min-width: 0;

        i {
            font-size: 1.5rem;
            margin-right: 1rem;
            color: var(--accent-color);
        }

        .dialog-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin: 0;
            padding: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: calc(100% - 30px);
        }
    }
}

/* Scrollable Content */
.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    min-height: 250px;
}

.form-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-divider-subtle);
    padding-bottom: 1.5rem;

    &:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .section-title {
        font-size: 1rem;
        color: var(--color-text-primary);
        margin-top: 0;
        margin-bottom: 1rem;
        font-weight: 600;
    }
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;

    &:last-child {
        margin-bottom: 0;
    }

    .field-label {
        font-size: 0.9rem;
        color: var(--color-text-primary);
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-weight: 400;
    }

    .label-row {
        display: flex;

        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        label {
            display: flex;
            align-items: center;
            font-size: 0.875rem;
        }
    }

    .setting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .setting-value {
        font-size: 0.9rem;
        color: var(--color-text-secondary, #666);
        font-weight: 500;
    }

    .help-icon {
        font-size: 1rem;
        width: 1rem;
        height: 1rem;
        color: var(--color-text-secondary, #666);
        cursor: help;
        opacity: 0.7;
        transition: opacity 0.2s ease;

        &:hover {
            opacity: 1;
        }
    }
}

.toggle-settings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;

    .form-group {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        .setting-label {
            margin-bottom: 0;
        }

        mat-slide-toggle {
            align-self: flex-start;
        }
    }
}

.configurations-settings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;

    .form-group {
        margin-bottom: 0;
    }
}

/* Actions Section */
.actions {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-top: 1px solid var(--color-divider-subtle);

    button {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;

        &.btn-cancel {
            background-color: transparent;
            border: 1px solid var(--color-divider);
            color: var(--color-text-secondary);

            &:hover {
                border-color: var(--color-text-primary);
                color: var(--color-text-primary);
            }
        }

        &.btn-save {
            background-color: var(--accent-color);
            border: 1px solid var(--accent-color);
            color: white;

            &:hover {
                filter: brightness(1.1);
            }
        }
    }
}

// Slider container styles
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.slider-value {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
}
.setting-label {
    font-size: 0.9rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 400;
}
