.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--background-model);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;

    .modal-container {
        background: var(--background-color);
        border-radius: 34px;
        padding: 24px 28px;
        max-width: 500px;
        width: 100%;
        position: relative;

        .modal-close {
            position: absolute;
            top: 24px;
            right: 24px;
            background: transparent;
            border: none;
            cursor: pointer;
            scale: 1.6;
            height: 16px;
            width: 16px;
            padding: 2px;
            border-radius: 6px;
            transition: background 0.2s;
            &:hover {
                background: var(--background-color-solid);
            }
        }

        .modal-title {
            font-size: 1.12rem;
            font-weight: 600;
            margin-bottom: 8px;

            &--info {
                color: var(--log-info-text-color);
            }
            &--warning {
                color: var(--log-warn-text-color);
            }
            &--error {
                color: var(--log-error-text-color);
            }
            &--success {
                color: var(--log-success-text-color);
            }
            &--confirm {
                color: var(--highlight-text-color);
            }
            &--action {
                color: var(--highlight-text-color);
            }
        }

        .modal-description {
            font-size: 0.9rem;
            color: var(--input-text-color);
            margin-bottom: 24px;
            margin-top: 12px;
        }

        .modal-inputs {
            margin-bottom: 16px;

            .modal-input-group {
                display: flex;
                flex-direction: column;
                margin-bottom: 12px;

                .modal-input-label {
                    font-size: 0.85rem;
                    font-weight: 500;
                    margin-bottom: 12px;
                }

                .modal-input {
                    border: 1px solid var(--border-color);
                    border-radius: 32px;
                    padding: 8px 14px;
                    font-size: 0.9rem;

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

        .modal-children {
            margin-bottom: 16px;
        }

        .modal-note {
            font-size: 0.75rem;
            color: var(--text-disabled);
            margin-bottom: 16px;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;

            .modal-button {
                padding: 6px 18px;
                border-radius: 6px;
                font-size: 0.9rem;
                font-weight: 400;
                cursor: pointer;
                border: none;
                border-radius: 46px;
                transition: all 0.2s;
                overflow: hidden;
                position: relative;

                &:disabled {
                    background: var(--background-color-secondary);
                    color: var(--text-disabled);
                }

                &:hover {
                    filter: saturate(2);
                    transform: translateY(-2px);
                    box-shadow: 4px 4px 8px var(--background-color-solid);
                }

                &--primary {
                    background: var(--background-color-accent);
                    color: var(--text-button-color);
                }

                &--secondary {
                    background: var(--background-color-solid);
                    color: var(--text-color);
                }

                &--danger {
                    background: var(--log-error-background-color);
                    color: var(--log-error-text-color);
                }

                &--ghost {
                    background: transparent;
                    color: var(--background-color-secondary);
                }
            }
        }
    }
}
