/* kimap/modules/unified-window.css */

#unified-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Darker, cinematic backdrop */
    z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(4px); /* Modern frosted glass effect */
}

#unified-shell {
    width: 90%;
    max-width: 1600px;
    height: 85vh;
    background-color: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Contains the scroll bars */
}

/* The Top Bar */
#unified-header {
    background-color: var(--pico-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 0 1rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

/* The Tabs */
#unified-tabs {
    display: flex;
    gap: 2px;
    height: 100%;
    align-items: flex-end; /* Tabs sit on the bottom line */
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--pico-muted-color);
    padding: 0 1.5rem;
    height: 100%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--pico-color);
}

.tab-btn.active {
    color: var(--pico-primary);
    border-bottom-color: var(--pico-primary);
}

/* The Stage */
#unified-stage {
    flex-grow: 1;
    position: relative;
    overflow: hidden; /* The pane inside handles scrolling */
    padding: 0;
}

/* A Generic Pane Class */
.window-pane {
    width: 100%;
    height: 100%;
    display: flex; /* Most of your layouts rely on flex/grid */
    flex-direction: column;
}