﻿:root {
    --typo-primary: #080808;
    --typo-secondary: #777777;
    --bs-heading-color: var(--typo-primary);
}

body {
}

/* #region ALERT */

.alert {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 8px;
}

/* #endregion */

/* #region IDENTITY */

.identity-card {
    padding: 24px;
}

.identity-title {
    color: var(--typo-primary);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;

    &:has(+ .identity-subtitle) {
        margin-bottom: 24px;
    }
}

.identity-subtitle {
    color: var(--typo-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 64px;
}


/* #endregion */

/* #region SIDEBAR */

.sidebar-brand img {
    margin-bottom: 1rem;
    width: 100%;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    padding: 0 16px;
}

.sidebar-link {
    border-radius: 8px;
    padding: 8px 8px !important;
    font-size: 0.875rem;
    transition: background-color .2s !important;

    &:hover {
        background-color: rgba(var(--bs-secondary-rgb), .1);

        * {
            color: var(--typo-primary) !important;
        }
    }

    &.active {
        font-weight: 600;

        i {
            color: rgba(var(--bs-primary-rgb), 1) !important;
            font-weight: bold;
        }
    }
}

.sidebar-header {
    color: var(--typo-secondary);
    font-weight: 700;
    font-size: .625rem;
    text-transform: uppercase;
}

/* #endregion */

/* #region PAGE */

.page-title {
    color: var(--typo-primary);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 0px;
}

/* #endregion */

/* #region CARD */

.card-title {
    color: var(--typo-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* #endregion */

/* #region TABLE */

.table-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
}

.col-title-text {
    &:has(button.col-title) {
        color: var(--typo-primary);
    }

    &:has(div.col-title) {
        color: var(--typo-secondary);
    }
}

.table-action-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: end;
}

/* #endregion */

/* #region TEMPLATE LAYOUT */

.template-layout-modules-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;

    .module {
        background-color: #F7F9FC;
        cursor: pointer;
        display: flex;
        flex: 1 1 0px;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        transition: all .2s;

        i, .title {
            align-self: center;
            color: var(--typo-secondary);
            transition: all .2s;
        }

        i {
            font-size: 24px;
        }

        .title {
            font-size: 12px;
            font-weight: 400;
        }

        &:hover {
            background-color: #eaeaea;


            i, .title {
                color: var(--typo-primary);
            }
        }
    }
}

.template-layout-modules-display {
    display: flex;
    flex-direction: column;
    gap: 16px;

    .drop-module-card-wrapper {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .2s ease, opacity .2s ease;

        &.visible {
            max-height: 60px;
            opacity: 1;
        }


        .drop-module-card {
            background-color: #F7F9FC;
            border: 1px dashed #d1d1d1;
            border-radius: 4px;
            color: var(--typo-secondary);
            font-size: 16px;
            padding: 8px 16px;
            text-align: center;
            transition: all .2s;

            &.drag-over {
                background-color: #e8f0fe;
                border-color: var(--bs-primary);
            }
        }
    }

    &:has(> .drop-module-card-wrapper:only-child) > .drop-module-card-wrapper {
        .drop-module-card {
            padding: 4px;
        }
    }

    .template-block {
        align-items: center;
        background-color: #F7F9FC;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        transition: all .2s;

        i, span {
            color: var(--typo-secondary);
            transition: all .2s;
        }

        i {
            font-size: 16px;
        }

        span {
            font-size: 14px;
            font-weight: 500;
        }

        &.editing {
            background-color: #e1ecff;

            i, span {
                color: var(--typo-primary);
            }
        }
    }
}

/* #endregion */

/* #region MONACO EDITOR */

.monaco-editor-container {
    width: 100%;
    height: 600px;
    border: 1px solid #dee2e6;
    border-radius: 2px;
}

.monaco-editor .suggest-widget .monaco-list .monaco-list-rows .monaco-list-row {
    > .contents {
        .left {
            display: flex;
            flex-direction: row;
        }
    }
}

/* #endregion */

/* #region FORM */

.form-label {
    color: var(--typo-primary);
    font-size: 14px;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 2px;
    color: var(--typo-primary);
    padding: 8px 12px;
}

    &.invalid + .text-danger {
        font-weight: 500;
        margin-top: 4px;
    }

.form-control-filter {
    padding: 4px 12px;
}

/* #endregion */

/* #region BUTTONS */

.btn {
    border-radius: 0px;
}

.btn-lg {
    padding: 8px 16px;
}

/* #endregion */

/* #region LINK */

.link-typo-primary {
    color: var(--typo-primary);
    text-decoration-color: var(--typo-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all .2s;
}

/* #endregion */

/* #region FLEX */

.d-flex-row {
    display: flex;
    flex-direction: row;
}

.d-flex-row-center {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.d-flex-colum {
    display: flex;
    flex-direction: column;
}

/* #endregion */

/* #region UTILITY */

.text-underline {
    text-decoration: underline;
}

.w-1px {
    width: 1px;
}

.nowrap {
    white-space: nowrap;
}

.column-transition {
    /*transition: all .1s;*/
}

/* #endregion */
