:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent: #7eb8f7;
    --danger: #ff6b6b;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --sidebar-w: 320px;
    --blur: blur(20px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    height: 100vh;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: #050505;
    user-select: none;
}

#password-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1a1b26 0%, #050505 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    text-align: center;
    width: 340px;
}

#pass-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

#pass-submit {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

#pass-error { color: var(--danger); font-size: 12px; margin-top: 15px; display: none; }

#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

#bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: transform 0.5s ease;
}

#app.sidebar-open { transform: translateX(-160px); }

#clock { font-size: 6rem; font-weight: 300; }
#date-label { color: var(--accent); text-transform: uppercase; letter-spacing: 4px; }

#shortcuts-area { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

.shortcut { position: relative; cursor: pointer; transition: transform 0.2s; }
.shortcut:hover { transform: translateY(-5px); }

.shortcut-btn {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    backdrop-filter: var(--blur); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.shortcut-btn img { width: 100%; height: 100%; object-fit: cover; }
.shortcut-label { margin-top: 8px; font-size: 12px; text-align: center; color: var(--text-muted); }

.del-badge {
    display: none; position: absolute; top: -5px; right: -5px;
    width: 20px; height: 20px; background: var(--danger);
    border-radius: 50%; font-size: 10px; align-items: center; justify-content: center;
}
.shift-mode .del-badge { display: flex; }

#add-shortcut-btn {
    width: 72px; height: 72px; border-radius: 20px;
    border: 2px dashed var(--glass-border); display: flex;
    align-items: center; justify-content: center; cursor: pointer;
}

#sidebar {
    position: fixed; right: 0; top: 0; bottom: 0; width: var(--sidebar-w);
    background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(40px);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%); transition: transform 0.5s ease;
}
#sidebar.open { transform: translateX(0); }

#sidebar-header { padding: 20px; display: flex; justify-content: space-between; }
.sidebar-add-btn { background: var(--accent); border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }

#timeline { position: relative; margin: 20px 40px; height: 780px; }
.hour-line { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.1); }
.hour-line span { position: absolute; left: -40px; top: -10px; font-size: 10px; }

.activity {
    position: absolute; left: 0; right: 0; background: rgba(126, 184, 247, 0.2);
    border-left: 3px solid var(--accent); padding: 5px; font-size: 11px;
}

#now-line { position: absolute; left: -10px; right: -10px; height: 2px; background: var(--accent); z-index: 10; }

#agenda-btn {
    position: fixed; top: 20px; right: 20px; width: 45px; height: 45px;
    background: var(--glass-bg); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; z-index: 100;
}

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-overlay.show { display: flex; }
.modal { background: #1a1b26; padding: 25px; border-radius: 20px; width: 300px; }
.modal input { width: 100%; padding: 10px; margin-bottom: 10px; background: #000; border: 1px solid #333; color: #fff; }
.btn-primary { width: 100%; padding: 10px; background: var(--accent); border: none; border-radius: 5px; cursor: pointer; }
.btn-cancel { width: 100%; background: none; color: var(--danger); border: none; margin-top: 10px; cursor: pointer; }
.time-inputs { display: flex; gap: 5px; align-items: center; margin-bottom: 10px; }
