/* Add your styles here */

.app-logo {
    border-radius: min(40%, var(--vaadin-radius-m));
    margin-inline-start: var(--vaadin-padding-inline-container);
}

.app-name {
    font-weight: var(--aura-font-weight-semibold);
    font-size: var(--aura-font-size-l);
}

.app-footer {
    color: var(--vaadin-text-color-secondary);
    font-size: var(--aura-font-size-s);
}

/* TODO: This is only for demo purposes. You can delete it. */
vaadin-side-nav:has(vaadin-side-nav-item:only-child)::after {
    display: block;
    content: "More menu items will appear here when you add more views.";
    font-size: var(--aura-font-size-s);
    color: var(--vaadin-text-color-secondary);
    box-sizing: border-box;
    padding: 1em;
    max-width: 14em;
    min-width: 100%;
    white-space: normal;
}


/* Base Bubble Styling */
.chat-bubble {
    padding: 8px 12px;
    border-radius: 16px;
    white-space: pre-wrap;
    max-width: 80%;
    margin: 4px;
    font-size: var(--lumo-font-size-m);
}

/* Role Specifics */
.chat-bubble--user {
    background-color: var(--lumo-primary-color);
    color: var(--lumo-primary-contrast-color);
    border-bottom-right-radius: 4px;
}

.chat-bubble--assistant {
    background-color: var(--lumo-contrast-5pct);
    color: var(--lumo-body-text-color);
    border-bottom-left-radius: 4px;
}

.chat-bubble--system {
    /*background-color: var(--lumo-error-10pct);*/
    border-left: 4px solid var(--lumo-error-color);
    border-radius: 8px;
    font-style: italic;
}

.chat-bubble--function {
    background-color: var(--lumo-contrast-10pct);
    color: var(--lumo-secondary-text-color);
    border-radius: 8px;
    font-family: monospace;
}


/* The highlight for the selected day */
.selected {
    background-color: #007bff !important; /* Bright blue highlight */
    color: #ffffff !important;           /* White text for contrast */
    border-radius: 50% !important;       /* Makes the highlight a circle */
    font-weight: bold !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
    transition: background-color 0.2s ease;
}

/* Optional: Hover effect for days to make it feel interactive */
.minicalendar-day:hover {
    background-color: #343541;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
}


.designer-canvas-panel {
    background-color: #111;
    cursor: grab;
}

.designer-grid-surface {
    width: 8000px;
    height: 8000px;
    background: repeating-linear-gradient(0deg, #1e293b, #1e293b 1px, #1a2332 1px, #1a2332 20px),
    repeating-linear-gradient(90deg, #1e293b, #1e293b 1px, #1a2332 1px, #1a2332 20px);
}

.process-unit-node-box {
    width: 160px;
    height: 80px;
    border: 2px solid white;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.designer-editor-panel_D1 {
    position: absolute;
    /*top: 20px;*/
    /*right: 20px;*/
    /*height: 75dvh;*/
    /*background: #1a202c;*/
    border-left: 1px solid #374151;
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.2);
    z-index: 0;
    overflow: auto;
    color: #ddd;
    display: flex;
    flex-direction: column;
    padding: 6px;
    box-sizing: border-box;
    font-size: 12px;
    min-width: 180px;
}

/* ==========================================================================
   WB DESIGNER LAYOUT
   ========================================================================== */

/* The root container for the designer view */
.designer-parent-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: rgba(10, 10, 27, 1);
    padding: 5px;
    box-sizing: border-box;
    position: relative;
}

/* The main wrapper holding the canvas and the floating editor */
.designer-main-wrapper {
    height: 100%;
    display: flex;
    flex-grow: 1;
    min-height: 0;
    min-width: 0;
    flex-shrink: 0;
    padding: 3px;
    color: #ddd;
    background-color: rgb(64, 64, 64);
}

/* The area where the nodes live */
.designer-canvas-panel {
    display: flex;
    flex-grow: 1;
    min-height: 0;
    min-width: 0;
    flex-shrink: 0;
    position: relative;
    background: #111;
    overflow: hidden;
    width: 70%;
}

/* The infinite grid surface */
.designer-grid-surface {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    width: 8000px;
    height: 8000px;
    background:
            repeating-linear-gradient(0deg, #1e293b, #1e293b 1px, #1a2332 1px, #1a2332 20px),
            repeating-linear-gradient(90deg, #1e293b, #1e293b 1px, #1a2332 1px, #1a2332 20px);
    will-change: transform;
}

.designer-svg-layer {
    pointer-events: none;
}

/* The floating toolbar on the left */
.designer-floating-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    background: #1f2937;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* The floating editor panel on the right */
.designer-editor-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 75dvh;
    background: #1a202c;
    border-left: 1px solid #374151;
    box-shadow: inset -2px 0 6px rgba(0,0,0,0.2);
    z-index: 10;
    overflow: auto;
    color: #ddd;
    display: flex;
    flex-direction: column;
    padding: 6px;
    box-sizing: border-box;
    font-size: 12px;
    min-width: 180px;
}

/* Individual node boxes */
.process-unit-node-box {
    position: absolute;
    border-radius: 8px;
    color: white;
    display: flex;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    padding: 8px;
    box-sizing: border-box;
    text-align: center;
    cursor: grab;
}

/* Custom style for the ProjectFormPanel Tab Control */
.bright-tabs {
    /* 1. Brighten the selection indicator line */
    --lumo-tab-border-color: #00d4ff;
}

/* 2. Target the selected tab text specifically */
.bright-tabs vaadin-tab[selected] {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

/* 3. Soften the inactive tabs for better contrast */
.bright-tabs vaadin-tab:not([selected]) {
    color: #888899;
}