.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: filter 0.2s;
    position: relative;
}

.window-btn:hover {
    filter: brightness(0.9);
}

.window-btn.close {
    background: #ff5f57;
}

.window-btn.close:hover::after {
    content: '×';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #7a0c00;
    font-size: 10px;
    font-weight: bold;
}

.window-btn.minimize {
    background: #febc2e;
}

.window-btn.minimize:hover::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8a6413;
    font-size: 10px;
    font-weight: bold;
}

.window-btn.maximize {
    background: #28c840;
}

.window-btn.maximize:hover::after {
    content: '⤢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0d6b1e;
    font-size: 8px;
    font-weight: bold;
}

.window-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.toolbar-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 11px;
    transition: background 0.2s, color 0.2s;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #666;
}

.window-content {
    width: 100%;
    height: calc(100% - 54px);
    background: transparent;
}

.window-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

.resize-left {
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

.resize-right {
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
}

.resize-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    cursor: ns-resize;
}

.resize-corner {
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
}

.window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 75%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 9000;
}

.window-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(246, 246, 246, 0.75);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    cursor: default;
    user-select: none;
    gap: 12px;
}