/* Экран блокировки */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') no-repeat center center/cover;
    z-index: 10000; /* Выше всего */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), filter 0.5s;
}

.lock-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
}

.lock-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10001;
}

.lock-time {
    font-size: 120px;
    font-weight: 200;
    letter-spacing: -2px;
}

.lock-date {
    font-size: 24px;
    margin-top: -10px;
    opacity: 0.8;
}

.lock-ai-hint {
    margin-top: 40px;
    font-size: 14px;
    color: #00a4ef;
    text-shadow: 0 0 10px rgba(0, 164, 239, 0.5);
}

.login-btn {
    margin-top: 30px;
    padding: 12px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.login-btn:hover {
    background: white;
    color: black;
    transform: scale(1.05);
}

/* Состояние разблокировки */
.unlocked {
    transform: translateY(-100%);
}:root {
    --glass: rgba(255, 255, 255, 0.1);
    --glass-heavy: rgba(20, 20, 20, 0.65);
    --border: rgba(255, 255, 255, 0.2);
    --accent: #00a4ef;
    --ai-gradient: linear-gradient(45deg, #0078d7, #7f00ff, #ff007f);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

body, html {
    height: 100%;
    overflow: hidden;
    background: #000;
}
.bsod-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0078d7; /* Тот самый синий */
    color: white;
    z-index: 20000;
    padding: 10% 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 300;
}

.bsod-screen.hidden { display: none; }

.sad-smile { font-size: 150px; margin-bottom: 20px; }
.bsod-screen h1 { font-size: 32px; line-height: 1.4; margin-bottom: 20px; font-weight: 300; }
.bsod-screen p { font-size: 18px; margin-bottom: 30px; }
.complete-percent { font-size: 24px; margin-bottom: 50px; }

.bsod-footer { display: flex; gap: 20px; align-items: center; }
.qr-code { width: 80px; height: 80px; background: white; color: #0078d7; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.bsod-info { font-size: 14px; opacity: 0.8; line-height: 1.6; }
.desktop {
    width: 100vw;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=2564&auto=format&fit=crop') no-repeat center center/cover;
    position: relative;
    padding: 20px;
}

/* === СТЕКЛЯННЫЕ КАРТОЧКИ (ОБЩЕЕ) === */
.glass-card {
    background: var(--glass-heavy);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === ВИДЖЕТЫ (СЛЕВА) === */
.widgets-area {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget {
    padding: 15px;
    width: 200px;
    color: white;
    transition: transform 0.3s ease;
}

.widget:hover { transform: scale(1.02); }

.widget-title { font-size: 10px; text-transform: uppercase; opacity: 0.6; letter-spacing: 1px; }

.ai-status, .temp { font-size: 18px; margin-top: 5px; font-weight: 300; }

/* === ОКНО ПРИЛОЖЕНИЯ === */
.fluid-window {
    position: absolute;
    width: 550px;
    min-height: 350px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fluid-window.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.window-header {
    padding: 12px 18px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.header-left { display: flex; align-items: center; gap: 10px; color: white; font-size: 13px; }

.win-btn {
    background: transparent;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.win-btn:hover { background: rgba(255,255,255,0.1); }
.win-btn.close:hover { background: #e81123; }

.window-content { padding: 30px; color: white; }

.ai-hero h1 { font-weight: 300; margin-bottom: 10px; font-size: 28px; }

.context-grid { display: flex; gap: 10px; margin-top: 25px; }

.context-card {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: 0.2s;
}

.context-card:hover { background: var(--accent); }

/* === ЦЕНТР УВЕДОМЛЕНИЙ (СПРАВА) === */
.action-center {
    position: absolute;
    top: 20px;
    right: -400px; /* Спрятан */
    width: 350px;
    height: calc(100vh - 120px);
    padding: 20px;
    color: white;
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 90;
}

.action-center.active { right: 20px; }

.notification {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border-left: 3px solid var(--accent);
}

/* === ПАНЕЛЬ ЗАДАЧ === */
.floating-taskbar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 500px;
    height: 64px;
    background: var(--glass-heavy);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
    z-index: 1000;
}

.taskbar-center {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 15px;
}

.task-icon {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-icon:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.taskbar-right {
    margin-left: auto;
    padding-right: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    cursor: pointer;
}

.time-container { text-align: right; }
.clock { font-size: 14px; font-weight: 600; }
.date { font-size: 10px; opacity: 0.7; }

/* === МЕНЮ ПУСК === */
.start-menu {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 600px;
    background: var(--glass-heavy);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.start-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.search-bar {
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

.ai-sparkle { font-size: 20px; animation: glow 2s infinite; }

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 2px #7f00ff); }
    50% { filter: drop-shadow(0 0 8px #ff007f); }
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}
