/* Sumina SPA - ortak stiller */

body {
    background: var(--sumina-bg, #0f172a);
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.5s ease;
}

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-text {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    font-size: clamp(3.75rem, 12vw, 6.5rem);
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    transition: font-size 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
    text-shadow: 0 0 24px rgba(129, 140, 248, 0.35);
}

.theme-btn.active {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.water-glass {
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.45);
    transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.water-glass:hover { transform: translateY(-2px); }
.water-glass.filled {
    color: #7dd3fc;
    opacity: 1;
    background: rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.water-glass.empty {
    color: #94a3b8;
    opacity: 0.35;
}

#notes-area,
#journal-area {
    resize: none;
}

#task-list::-webkit-scrollbar,
#notes-area::-webkit-scrollbar,
#journal-area::-webkit-scrollbar {
    width: 6px;
}
#task-list::-webkit-scrollbar-thumb,
#notes-area::-webkit-scrollbar-thumb,
#journal-area::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.radio-player {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: min(100% - 2rem, 22rem);
}
.radio-ctrl-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.75);
    color: #e2e8f0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.radio-ctrl-btn:hover {
    background: rgba(71, 85, 105, 0.85);
    color: #fff;
}
@media (max-width: 767px) {
    .radio-player {
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
        width: auto;
        border-radius: 1rem;
    }
}
.radio-marquee {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.radio-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 14s linear infinite;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}
.radio-marquee.paused span {
    animation-play-state: paused;
    padding-left: 0;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.radio-volume {
    accent-color: #fb7185;
}

.mood-btn {
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mood-btn:hover { transform: scale(1.08); }
.mood-btn.selected {
    background: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.7);
}

.streak-dot {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.5);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.streak-dot.active {
    background: #f59e0b;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}
.streak-dot.today:not(.active) {
    border-color: rgba(251, 191, 36, 0.7);
}

.highlight-box {
    border: 1px solid rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.12);
}
.highlight-box.done {
    opacity: 0.65;
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.12);
}

.brain-blur {
    filter: blur(5px);
    transition: filter 0.25s ease;
}
.brain-blur:hover,
.brain-blur:focus {
    filter: blur(0);
}

#xp-bar-fill,
#xp-bar-fill-odak {
    transition: width 0.4s ease;
}

.nav-link {
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.nav-link:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #e2e8f0;
}
.nav-link.active {
    background: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.45);
}

.app-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 80rem;
    overflow-x: hidden;
}

#theme-switcher {
    top: 0.65rem;
    right: 0.65rem;
    gap: 0.35rem;
}
#theme-switcher .theme-btn {
    width: 1.85rem;
    height: 1.85rem;
}

@media (max-width: 767px) {
    #theme-switcher {
        top: 0.5rem;
        right: 0.5rem;
        transform: scale(0.92);
        transform-origin: top right;
    }
    .page-section > .pr-0,
    .page-section .sm\:pr-16 {
        padding-right: 0 !important;
    }
    .page-section h1 {
        font-size: 1.35rem;
        line-height: 1.25;
        padding-right: 5.5rem;
    }
    .timer-text {
        font-size: clamp(2.75rem, 16vw, 4.5rem);
    }
    .odak-theme-picker {
        max-width: calc(100vw - 1.5rem);
    }
    .odak-theme-menu {
        max-width: min(16rem, calc(100vw - 1.5rem));
    }
    .radio-player select {
        font-size: 0.8rem;
    }
}

/* Sidebar: mobil bottom nav / masaüstü sol panel */
.sidebar-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    border-radius: 1.1rem 1.1rem 0 0;
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    border-bottom: none;
    backdrop-filter: blur(16px);
    max-width: 100vw;
}
.sidebar-nav .nav-link {
    width: auto;
    justify-content: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.sidebar-nav .nav-label .font-medium {
    line-height: 1.1;
}

@media (min-width: 768px) {
    .sidebar-panel {
        position: sticky;
        top: 1.25rem;
        left: auto;
        right: auto;
        bottom: auto;
        height: calc(100vh - 2.5rem);
        border-radius: 1.5rem;
        padding: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .sidebar-nav .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .sidebar-nav .nav-label {
        display: none;
    }
    .sidebar-nav .nav-link {
        min-width: 2.75rem;
        flex: 1 1 0;
        max-width: 4.5rem;
    }
    .page-section {
        max-width: 100%;
        overflow-x: hidden;
    }
    .glass {
        max-width: 100%;
    }
    .task-item {
        flex-wrap: wrap;
        padding: 0.85rem 0.75rem 0.85rem 1rem;
    }
    .task-actions {
        margin-left: auto;
    }
    .task-hover-only {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .shop-btn,
    .inventory-ticket,
    .habit-row {
        max-width: 100%;
    }
    #page-dukkan .deal-card,
    #page-gorevler .glass,
    #page-saglik .glass {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.page-section.hidden {
    display: none !important;
}

/* Pixel Pet */
.pixel-pet {
    width: 72px;
    height: 72px;
    image-rendering: pixelated;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    font-size: 2rem;
    transition: transform 0.25s ease, background 0.25s ease;
}
.pixel-pet.focusing {
    animation: pet-bounce 1.1s ease-in-out infinite;
    background: rgba(99, 102, 241, 0.2);
}
.pixel-pet.sad {
    filter: grayscale(0.35);
    transform: translateY(2px);
}
.pixel-pet.happy {
    animation: pet-happy 0.6s ease;
    background: rgba(52, 211, 153, 0.18);
}
@keyframes pet-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pet-happy {
    0% { transform: scale(1); }
    40% { transform: scale(1.15) rotate(-4deg); }
    70% { transform: scale(1.1) rotate(4deg); }
    100% { transform: scale(1); }
}

.shop-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.shop-btn.owned {
    opacity: 0.7;
    border-color: rgba(52, 211, 153, 0.35);
}

.deal-card {
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.18), inset 0 0 24px rgba(251, 191, 36, 0.06);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(30, 41, 59, 0.75));
    animation: deal-glow 3.2s ease-in-out infinite;
}
@keyframes deal-glow {
    0%, 100% { box-shadow: 0 0 18px rgba(245, 158, 11, 0.12), inset 0 0 18px rgba(251, 191, 36, 0.04); }
    50% { box-shadow: 0 0 34px rgba(251, 191, 36, 0.28), inset 0 0 28px rgba(251, 191, 36, 0.08); }
}

.gacha-card {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.35), rgba(30, 41, 59, 0.75));
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.15);
    cursor: pointer;
}
.gacha-card:hover {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.45), rgba(51, 65, 85, 0.8));
}

.inventory-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(56, 189, 248, 0.35);
}
.inventory-use-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(14, 165, 233, 0.2);
    color: #e0f2fe;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.inventory-use-btn:hover {
    background: rgba(14, 165, 233, 0.35);
}

.piggy-track {
    height: 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(52, 211, 153, 0.25);
    overflow: hidden;
}
.piggy-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669, #34d399, #a7f3d0);
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.ambient-slider {
    accent-color: #818cf8;
}

/* Zen Mode */
body.zen-mode .sidebar-panel,
body.zen-mode .zen-hide,
body.zen-mode #theme-switcher {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.zen-mode .app-shell {
    justify-content: center;
    align-items: center;
}

body.zen-mode #pomodoro-container {
    position: fixed;
    inset: 0;
    z-index: 40;
    margin: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
}

body.zen-mode .timer-text {
    font-size: clamp(5.5rem, 20vw, 9.5rem);
    font-weight: 800;
    color: #fff !important;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.35), 0 0 80px rgba(129, 140, 248, 0.4);
}

body.zen-mode #zen-toggle {
    background: rgba(255, 255, 255, 0.12);
}

body.zen-mode .odak-theme-picker {
    z-index: 55;
}

/* Odak tema seçici */
.odak-theme-picker {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 55;
    display: none;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.5rem;
}
body.on-odak .odak-theme-picker,
body.zen-mode .odak-theme-picker {
    display: flex;
}
@media (max-width: 767px) {
    .odak-theme-picker {
        left: 0.75rem;
        bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.zen-mode .odak-theme-picker {
        bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
    }
}
.odak-theme-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 50vh;
    overflow-y: auto;
    min-width: 11.5rem;
    padding: 0.4rem !important;
}
.odak-theme-menu.hidden { display: none !important; }
.odak-theme-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}
.odak-theme-option:hover,
.odak-theme-option.active {
    background: rgba(99, 102, 241, 0.25);
}
.swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}
.swatch-space { background: #020617; box-shadow: inset 0 0 0 1px #94a3b8; }
.swatch-rain { background: linear-gradient(#0c4a6e, #082f49); }
.swatch-matrix { background: #022c22; box-shadow: inset 0 0 4px #22c55e; }
.swatch-neon { background: linear-gradient(135deg, #db2777, #7c3aed); }
.swatch-ocean { background: linear-gradient(#0e7490, #115e59); }
.swatch-fireflies { background: #14532d; box-shadow: inset 0 0 4px #fde047; }
.swatch-sakura { background: linear-gradient(#9f1239, #be185d); }
.swatch-snow { background: #334155; box-shadow: inset 0 0 4px #fff; }
.swatch-sunset { background: linear-gradient(135deg, #ea580c, #be123c); }
.swatch-lava { background: #1c1917; box-shadow: inset 0 0 6px #f97316; }

/* Focus FX layer */
.focus-fx-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}
body.on-odak .focus-fx-layer,
body.zen-mode .focus-fx-layer {
    opacity: 1;
}
body.on-odak .app-shell,
body.zen-mode .app-shell {
    position: relative;
    z-index: 1;
}
body.on-odak .odak-timer-card {
    background: rgba(15, 23, 42, 0.55);
}

/* --- 10 Odak Teması --- */
.focus-fx-layer.fx-space { background: #020617; }
.focus-fx-layer.fx-space .fx-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: star-twinkle var(--d, 3s) ease-in-out infinite;
    opacity: 0.7;
}
@keyframes star-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.6); }
}

.focus-fx-layer.fx-rain { background: linear-gradient(180deg, #0c4a6e, #020617); }
.focus-fx-layer.fx-rain .fx-drop {
    position: absolute;
    top: -10%;
    width: 1px;
    height: 18px;
    background: linear-gradient(transparent, rgba(186, 230, 253, 0.7));
    animation: rain-fall linear infinite;
}
@keyframes rain-fall {
    to { transform: translateY(120vh); }
}

.focus-fx-layer.fx-matrix { background: #000; }
.focus-fx-layer.fx-matrix .fx-col {
    position: absolute;
    top: -100%;
    color: #22c55e;
    font-family: ui-monospace, monospace;
    font-size: 14px;
    line-height: 1.15;
    writing-mode: vertical-rl;
    text-orientation: upright;
    opacity: 0.75;
    animation: matrix-fall linear infinite;
    text-shadow: 0 0 8px #22c55e;
}
@keyframes matrix-fall {
    to { transform: translateY(200vh); }
}

.focus-fx-layer.fx-neon {
    background: linear-gradient(125deg, #4c1d95, #9d174d, #312e81, #86198f);
    background-size: 300% 300%;
    animation: neon-shift 12s ease infinite;
}
@keyframes neon-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.focus-fx-layer.fx-ocean {
    background: linear-gradient(180deg, #0e7490 0%, #134e4a 45%, #042f2e 100%);
}
.focus-fx-layer.fx-ocean::before,
.focus-fx-layer.fx-ocean::after {
    content: '';
    position: absolute;
    left: -20%;
    width: 140%;
    height: 40%;
    border-radius: 45%;
    background: rgba(45, 212, 191, 0.12);
    animation: ocean-wave 10s ease-in-out infinite;
}
.focus-fx-layer.fx-ocean::before { bottom: -10%; animation-duration: 12s; }
.focus-fx-layer.fx-ocean::after { bottom: -18%; opacity: 0.5; animation-duration: 8s; animation-direction: reverse; }
@keyframes ocean-wave {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(4%) rotate(2deg); }
}

.focus-fx-layer.fx-fireflies { background: radial-gradient(ellipse at center, #14532d 0%, #052e16 55%, #022c22 100%); }
.focus-fx-layer.fx-fireflies .fx-bug {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fde047;
    box-shadow: 0 0 10px #facc15, 0 0 20px rgba(250, 204, 21, 0.5);
    animation: firefly-blink var(--d, 3s) ease-in-out infinite;
}
@keyframes firefly-blink {
    0%, 100% { opacity: 0.15; transform: scale(0.6); }
    40% { opacity: 1; transform: scale(1.2); }
    70% { opacity: 0.4; }
}

.focus-fx-layer.fx-sakura { background: linear-gradient(180deg, #4c0519, #9f1239 40%, #1c1917); }
.focus-fx-layer.fx-sakura .fx-petal {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fda4af;
    border-radius: 0 70% 0 70%;
    opacity: 0.85;
    animation: sakura-fall linear infinite;
}
@keyframes sakura-fall {
    0% { transform: translateY(-10vh) rotate(0deg); }
    100% { transform: translateY(110vh) rotate(360deg); }
}

.focus-fx-layer.fx-snow { background: linear-gradient(180deg, #1e293b, #0f172a); }
.focus-fx-layer.fx-snow .fx-flake {
    position: absolute;
    top: -5%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.85;
    animation: snow-fall linear infinite;
}
@keyframes snow-fall {
    to { transform: translateY(110vh) translateX(20px); }
}

.focus-fx-layer.fx-sunset {
    background: linear-gradient(180deg, #7c2d12, #ea580c 35%, #be123c 70%, #1c1917);
    background-size: 100% 200%;
    animation: sunset-drift 18s ease-in-out infinite alternate;
}
@keyframes sunset-drift {
    from { background-position: 0% 0%; }
    to { background-position: 0% 100%; }
}

.focus-fx-layer.fx-lava { background: #0c0a09; }
.focus-fx-layer.fx-lava .fx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    animation: lava-morph ease-in-out infinite;
}
.fx-blob.b1 { width: 280px; height: 280px; background: #ea580c; top: 20%; left: 15%; animation-duration: 9s; }
.fx-blob.b2 { width: 220px; height: 220px; background: #b91c1c; top: 45%; left: 55%; animation-duration: 11s; animation-delay: -2s; }
.fx-blob.b3 { width: 300px; height: 300px; background: #f59e0b; top: 55%; left: 30%; animation-duration: 13s; animation-delay: -4s; }
@keyframes lava-morph {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.15); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

/* Breathing circle */
.breath-circle {
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, rgba(167, 139, 250, 0.45), rgba(79, 70, 229, 0.25) 55%, rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    transform: scale(0.85);
    transition: transform 0.4s ease;
}
.breath-circle.running {
    animation: breath-pulse 12s ease-in-out infinite;
}
.breath-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ede9fe;
    text-align: center;
    line-height: 1.2;
    max-width: 5.5rem;
}
@keyframes breath-pulse {
    0%, 100% { transform: scale(0.82); }
    33% { transform: scale(1.18); }
    50% { transform: scale(1.18); }
    83% { transform: scale(0.82); }
}

/* Toggle switch */
.toggle-switch {
    width: 3.25rem;
    height: 1.85rem;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}
.toggle-switch.on {
    background: rgba(34, 197, 94, 0.45);
    border-color: rgba(74, 222, 128, 0.55);
}
.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #f8fafc;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.toggle-switch.on .toggle-knob {
    transform: translateX(1.35rem);
}

/* Sleep stars */
.sleep-star {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.55rem;
    color: #475569;
    transition: color 0.15s ease, transform 0.15s ease;
    padding: 0.15rem;
}
.sleep-star:hover { transform: scale(1.12); }
.sleep-star.active { color: #fbbf24; }

/* Exercise check */
.exercise-check {
    background: rgba(51, 65, 85, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #94a3b8;
}
.exercise-check:hover {
    background: rgba(132, 204, 22, 0.2);
    color: #d9f99d;
}
.exercise-check.done {
    background: rgba(132, 204, 22, 0.35);
    border-color: rgba(163, 230, 53, 0.6);
    color: #ecfccb;
    box-shadow: 0 0 16px rgba(132, 204, 22, 0.3);
}

/* Görev etiketleri */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(71, 85, 105, 0.7);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tag-chip:hover { color: #e2e8f0; }
.tag-chip.active {
    color: #f8fafc;
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(99, 102, 241, 0.25);
}
.tag-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    display: inline-block;
}
.task-item {
    position: relative;
    overflow: hidden;
}
.task-tag-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.task-tag-bar.urgent { background: #f43f5e; }
.task-tag-bar.work { background: #0ea5e9; }
.task-tag-bar.personal { background: #10b981; }

.task-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.task-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.task-action-btn:hover { background: rgba(51, 65, 85, 0.6); }
.task-action-btn.defer:hover { color: #38bdf8; }
.task-action-btn.delete:hover { color: #fb7185; }
.task-action-btn.pomo { color: #94a3b8; opacity: 1; }
.task-action-btn.pomo:hover { color: #fb7185; }
.task-hover-only {
    opacity: 0;
}
.group:hover .task-hover-only {
    opacity: 1;
}

.pomo-badge {
    font-size: 0.75rem;
    letter-spacing: -0.05em;
    margin-left: 0.25rem;
}

.pomo-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    min-width: 10rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    display: none;
}
.pomo-tooltip.open { display: block; }
.pomo-tooltip p {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}
.pomo-tooltip-btns {
    display: flex;
    gap: 0.35rem;
}
.pomo-tooltip-btns button {
    flex: 1;
    border: 1px solid rgba(71, 85, 105, 0.8);
    background: rgba(30, 41, 59, 0.9);
    color: #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
}
.pomo-tooltip-btns button:hover,
.pomo-tooltip-btns button.active {
    background: rgba(244, 63, 94, 0.25);
    border-color: rgba(251, 113, 133, 0.5);
}

/* Speech mic */
.notes-wrap { position: relative; }
.speech-mic-btn {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    background: rgba(91, 33, 182, 0.35);
    color: #e9d5ff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.speech-mic-btn:hover {
    background: rgba(124, 58, 237, 0.5);
}
.speech-mic-btn.listening {
    background: rgba(225, 29, 72, 0.55);
    border-color: rgba(251, 113, 133, 0.7);
    color: #fff;
    animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); transform: scale(1.06); }
}

/* Habits */
.habit-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.habit-row:hover {
    background: rgba(30, 41, 59, 0.55);
}
.habit-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.habit-box {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.35rem;
    border: 1.5px solid #64748b;
    display: grid;
    place-items: center;
    color: transparent;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.habit-check:checked + .habit-box {
    background: #84cc16;
    border-color: #a3e635;
    color: #14532d;
}
.habit-text {
    flex-grow: 1;
    font-size: 0.875rem;
    color: #e2e8f0;
}
.habit-check:checked ~ .habit-text {
    color: #94a3b8;
    text-decoration: line-through;
}
.habit-reward {
    font-size: 0.7rem;
    color: #fbbf24;
    font-weight: 600;
}
.habit-delete {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    opacity: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.habit-row:hover .habit-delete,
.habit-row:focus-within .habit-delete {
    opacity: 1;
}
.habit-delete:hover {
    color: #fb7185;
    background: rgba(244, 63, 94, 0.15);
}

/* Archive notes */
.archive-note-card {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.archive-note-btn {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.archive-note-btn:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #e0e7ff;
}
.archive-note-btn.danger:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fda4af;
}
