/* assets/css/window_manager.css */
:root {
    --win-bg: #050510;
    --win-border: rgba(255, 255, 255, 0.1);
    --win-header: #0a0a14;
    --win-accent: #4f9cf9;
    --text-main: #fff;
    --text-dim: #88889a;
    --tab-height: 44px;
}

#window-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background: var(--win-bg);
}

/* Tab Bar - Fixed at top */
.win-tab-bar {
    height: var(--tab-height);
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 12px;
    background: #000;
    border-bottom: 1px solid var(--win-border);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    flex-shrink: 0;
    -webkit-app-region: drag; /* If used in Electron, but nice for looks */
}
.win-tab-bar::-webkit-scrollbar { display: none; }

.win-tab {
    min-width: 140px;
    max-width: 240px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--win-border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dim);
    position: relative;
    user-select: none;
    -webkit-app-region: no-drag;
}

.win-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.win-tab.active {
    background: var(--win-bg);
    border-color: var(--win-border);
    color: #fff;
    z-index: 2;
}

.win-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--win-bg);
    z-index: 3;
}

.win-tab-title {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.win-tab-close {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.6;
}
.win-tab-close:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

/* Window Content */
.window {
    flex: 1;
    display: none;
    flex-direction: column;
    background: var(--win-bg);
    overflow: hidden;
}

.window.active {
    display: flex;
}

.window-header, .win-resize {
    display: none !important;
}

.window-content {
    flex: 1;
    position: relative;
    background: #000;
}

.window-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Tooltip for Popout Icon */
.nav-link { position: relative; }
.win-popout-btn {
    display: none !important; /* Removed as per user request */
}
