.container {
    background-color: #1e1e1e;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    min-width: 400px;
    width: 500px;
    max-width: 500px;
    height: 90vh;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;

    form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .dialog-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);

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

        .close-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            margin-left: 10px;

            &:hover {
                background-color: rgba(255, 255, 255, 0.1);
                color: rgba(255, 255, 255, 0.9);
            }
        }
    }

    .dialog-content {
        flex: 1;
        overflow: hidden;
        min-height: 0;

        .scrollable-content {
            height: 100%;
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-section {
            .section-header {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                margin-bottom: 8px;
            }

            h3 {
                margin: 0;
                font-size: 14px;
                color: rgba(255, 255, 255, 0.7);
                font-weight: 400;

                .required {
                    color: #ff4d4f;
                    margin-left: 4px;
                }
            }

            .input-container {
                position: relative;

                .input-field {
                    width: 100%;
                    padding: 10px 12px;
                    background-color: rgba(30, 30, 30, 0.6);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    border-radius: 6px;
                    color: white;
                    font-size: 14px;
                    transition: border-color 0.2s ease;

                    &::placeholder {
                        color: rgba(255, 255, 255, 0.4);
                    }

                    &:focus {
                        outline: none;
                        border-color: #685fff;
                    }

                    &.textarea {
                        min-height: 80px;
                        resize: none;
                    }
                }

                .error-message {
                    position: absolute;
                    font-size: 12px;
                    color: #ff4d4f;
                    margin-top: 4px;
                    right: 0;
                }
            }
        }
    }

    .dialog-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: flex-end;
        gap: 12px;

        .btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s ease;
            border: none;

            &.close {
                background-color: rgba(255, 255, 255, 0.1);
                color: rgba(255, 255, 255, 0.9);

                &:hover {
                    background-color: rgba(255, 255, 255, 0.15);
                }
            }

            &.create {
                background-color: #685fff;
                color: white;

                &:hover {
                    background-color: #7a70ff;
                }

                &:disabled,
                &.disabled {
                    background-color: rgba(104, 95, 255, 0.5);
                    cursor: not-allowed;
                }
            }
        }
    }
}

/* Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    .slider-value {
        font-size: 0.9rem;
        color: #ebebeb;
        font-weight: 500;
        margin-left: auto;
    }
}

/* Slider Styles */
.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;

    input[type="range"].gradient-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #2a2a2a;
        outline: none;
        cursor: pointer;
        transition: background 0.2s ease;

        /* WebKit track */
        &::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 3px;
            background: #2a2a2a;
        }

        /* WebKit thumb */
        &::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            margin-top: -6px;
            background: #685fff;
            border-radius: 50%;
            transition: transform 0.2s ease, box-shadow 0.2s ease;

            &:hover {
                transform: scale(1.1);
                box-shadow: 0 0 0 4px rgba(104, 95, 255, 0.2);
            }
        }

        /* Firefox track */
        &::-moz-range-track {
            height: 6px;
            border-radius: 3px;
            background: #2a2a2a;
        }

        /* Firefox thumb */
        &::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: #ebebeb;
            border: 2px solid #685fff;
            border-radius: 50%;
            transition: transform 0.2s ease, box-shadow 0.2s ease;

            &:hover {
                transform: scale(1.1);
                box-shadow: 0 0 0 4px rgba(104, 95, 255, 0.2);
            }
        }
    }

    .slider-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 0.5rem;

        span {
            font-size: 0.8rem;
            color: #aaaaaa;
        }
    }
}
