@import "src/variables";
@import "@synerty/peek-plugin-base-js/src/styles/_variables";

:host {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;

    .settings-card {
        min-height: 0;
        overflow-y: auto;
        min-width: 600px;

        .card-title {
            display: flex;
            justify-content: space-between;
            align-items: center;

            .title-buttons {
                display: flex;
                gap: $general_padding_1;
            }
        }

        .form-container {
            margin-top: $general_margin_2;

            nz-form-item {
                margin-bottom: $general_margin_2;
            }

            .color-preview {
                width: 24px;
                height: 24px;
                border: 1px solid #d9d9d9;
                border-radius: 4px;
                display: inline-block;
                vertical-align: middle;
                margin-left: 8px;
            }
        }
    }
}

nz-form-label {
    min-width: 220px;
}

.file-upload-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: $general_padding_1;
    margin-bottom: $general_margin_1;
}

.image-preview {
    margin-top: $general_margin_1;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    padding: $general_padding_1;
    background-color: #fafafa;
    max-width: 100%;

    img {
        max-width: 100%;
        max-height: 150px;
        display: block;
    }
}
