/* ============================================================
   WINDOW.CSS — Vensters, titlebars, resize handles
============================================================ */

.window {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow:
        0 8px 20px rgba(0,0,0,0.25),
        0 2px 6px rgba(0,0,0,0.15);
}

.window-titlebar {
    height: 28px;
    background: #ececec;
    display: flex;
    align-items: center;
    padding-left: 10px;
    cursor: move;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.window-btn.close  { background: #ff5f57; }
.window-btn.min    { background: #ffbd2e; }
.window-btn.max    { background: #28c840; }

.window-title {
    margin-left: 10px;
    font-size: 13px;
    color: #333;
}

.window-content {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.window-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Resize handles */
.resize-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    cursor: ew-resize;
}

.resize-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: ns-resize;
}

.resize-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
}
