/**
 * Desktop Title Bar Styles
 * Современный Windows 11 стиль с полупрозрачностью
 */

/* Inter загружается из /static/fonts/inter.css, подключённого в HTML-шаблоне */

.desktop-titlebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: rgba(30, 30, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.desktop-titlebar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
}

/* Отступ для контента под title bar */
body.has-desktop-titlebar {
    padding-top: 32px !important;
}

body.has-desktop-titlebar .main-nav {
    top: 32px !important;
}

/* Кнопки управления окном */
.desktop-titlebar-controls {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
}

.desktop-titlebar-btn {
    width: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.15s ease;
}

.desktop-titlebar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-titlebar-btn.close:hover {
    background: #c42b1c;
    color: white;
}

.desktop-titlebar-btn svg {
    width: 10px;
    height: 10px;
}

.desktop-titlebar-btn svg path,
.desktop-titlebar-btn svg rect {
    stroke: currentColor;
    fill: none;
    stroke-width: 1;
}

.desktop-titlebar-btn.minimize svg path {
    fill: currentColor;
    stroke: none;
}