:host {
    flex-grow: 1;
    overflow: hidden;
    padding: 15px 0 0 15px;
}

ngx-monaco-editor {
    height: 100%;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-left: 30px;

    .error {
        color: red;
        font-size: 8px;
        font-weight: 500;
        margin-left: 20px;
        font-style: italic;
    }
}

.changes-box {
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 10px;

    > div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .errors {
        cursor: pointer;
        align-items: flex-start;

        .icon {
            scale: 0.7;
        }

        .found-errors {
            margin-top: 4px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        :first-child {
            display: flex;
            align-items: flex-start;
            gap: 0.5em;
            font-weight: 500;
            /* TODO: Update this to --iqser-error when added */
            color: var(--iqser-red-1);

            .warning {
                color: var(--iqser-warn);

                &.only-warning {
                    margin-left: 15px;
                }
            }
        }

        .face-up {
            transform: rotate(90deg);
        }

        margin-right: 0;
    }

    .actions {
        gap: 24px;
    }
}

.right-container {
    display: flex;
    width: 375px;
    min-width: 375px;
    padding: 16px 24px 16px 24px;

    &.has-scrollbar:hover {
        padding-right: 13px;
    }

    redaction-dossier-details {
        width: 100%;
    }
}

.rules-screen-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Adjust based on your layout */

    .main-content {
        flex: 1;
        overflow: auto;
    }

    .rules-logger {
        flex-shrink: 0;
        transition: max-height 0.3s ease;
        overflow: hidden;
        border-top: 1px solid #ccc;
        background-color: #fafafa;

        &.collapsed {
            max-height: 50px; /* Height of the header when collapsed */
        }

        &:not(.collapsed) {
            max-height: 300px; /* Maximum height when expanded */
        }

        .logger-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px;
            cursor: pointer;

            h3 {
                margin: 0;
            }

            .collapse-button {
                background: none;
                border: none;
                cursor: pointer;
                outline: none;

                mat-icon {
                    font-size: 24px;
                }
            }
        }

        .logger-messages {
            overflow-y: auto;
            height: calc(100% - 50px); /* Subtract header height */
            padding: 10px;

            .log-entry {
                padding: 10px;
                border-bottom: 1px solid #eee;

                .log-header {
                    display: flex;
                    justify-content: space-between;
                    margin-bottom: 5px;

                    .log-level {
                        font-weight: bold;
                        color: #007bff;
                    }

                    .log-time {
                        font-size: 0.9em;
                        color: #666;
                    }
                }

                .log-message {
                    margin-bottom: 5px;
                    font-size: 1em;
                }

                .log-details {
                    font-size: 0.9em;
                    color: #666;

                    div {
                        margin-bottom: 2px;
                    }
                }
            }
        }
    }
}
