/* ═══════════════════════════════════════════════════
   POMODORO PANEL v3
   İki panelli yatay düzen · Minimal · Modern
═══════════════════════════════════════════════════ */

/* ── Overlay ── */
#pomodoro-modal {
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#pomodoro-modal.show {
    display: flex;
}


/* ── Ana Panel ── */
.pomo-panel {
    display: flex;
    width: 1350px;
    max-width: 98vw;
    max-height: 90vh;
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 80px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.25);
    animation: pomoIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pomoIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* ═══════════════════════════════════
   SOL PANEL — Timer
═══════════════════════════════════ */
.pomo-left {
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px 40px;
    background: linear-gradient(170deg, var(--bg-main) 0%, var(--bg-card) 100%);
    border-right: 1px solid var(--border);
    position: relative;
    gap: 8px;
}

/* Kapatma Butonu */
.pomo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pomo-close:hover {
    background: var(--bg-main);
    border-color: var(--border);
    color: var(--text-main);
}

.pomo-close svg {
    width: 16px;
    height: 16px;
}

/* Durum Etiketi */
.pomo-phase {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.pomo-phase-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
}

.pomo-phase[data-status="running"] .pomo-phase-dot {
    animation: dotPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 8px var(--primary);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ── Sayaç ── */
.pomo-time {
    font-size: 112px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    letter-spacing: -5px;
    line-height: 1;
    margin: 4px 0 24px;
    user-select: none;
}

/* ── Progress Bar ── */
.pomo-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-main);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 28px;
}

.pomo-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 1s linear;
}

/* ── Kontrol Butonları ── */
.pomo-ctrls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* Play / Pause ana buton */
.pomo-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 28px -4px rgba(var(--primary-rgb), 0.45);
}

.pomo-play-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 36px -4px rgba(var(--primary-rgb), 0.55);
}

.pomo-play-btn:active {
    transform: scale(0.94);
}

.pomo-play-btn svg {
    width: 28px;
    height: 28px;
}

/* Yardımcı butonlar (reset, skip) */
.pomo-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pomo-ctrl-btn:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.pomo-ctrl-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Alarm ── */
.pomo-alarm-wrap {
    margin-top: 16px;
}

.pomo-alarm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 14px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    animation: alarmPop 0.5s ease-in-out infinite alternate;
}

.pomo-alarm-btn svg {
    width: 16px;
    height: 16px;
}

@keyframes alarmPop {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

/* ── Mini İstatistik (Timer altı) ── */
.pomo-mini-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pomo-mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pomo-mini-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.pomo-mini-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pomo-mini-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.pomodoro-hidden {
    display: none !important;
}


/* ═══════════════════════════════════
   SAĞ PANEL — Sekmeler
═══════════════════════════════════ */
.pomo-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-card);
}

/* ── Tab Bar ── */
.pomo-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    background: var(--bg-card);
}

.pomo-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: grab;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.pomo-tab svg {
    width: 14px;
    height: 14px;
}

.pomo-tab:active {
    cursor: grabbing;
}

.pomo-tab:hover {
    color: var(--text-main);
}

.pomo-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.pomo-tab-ghost {
    opacity: 0.3;
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-radius: 12px;
}

/* ── Tab Body ── */
.pomo-tab-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.pomo-tab-pane {
    padding: 8px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.pomo-tab-pane.hidden {
    display: none;
}

/* Scrollbar */
.pomo-tab-body::-webkit-scrollbar {
    width: 5px;
}

.pomo-tab-body::-webkit-scrollbar-track {
    background: transparent;
}

.pomo-tab-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.pomo-tab-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ═══════════════════════════════════
   ORTAK ELEMANLAR
═══════════════════════════════════ */

/* Label */
.pomo-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Input */
.pomo-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pomo-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.pomo-textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.5;
}

/* Link Buton */
.pomo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.pomo-link-btn:hover {
    color: var(--primary);
}

.pomo-link-btn svg {
    width: 13px;
    height: 13px;
}

/* Boş durum */
.pomo-empty {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Section header (label + badge) */
.pomo-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pomo-badge-danger {
    font-size: 11px;
    font-weight: 800;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 10px;
    border-radius: 100px;
}

/* Inline form (detay input + buton) */
.pomo-inline-form {
    display: flex;
    gap: 8px;
}

.pomo-inline-form .pomo-input {
    flex: 1;
}

.pomo-submit-btn {
    padding: 0 20px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.pomo-submit-btn:hover {
    opacity: 0.85;
}


/* ═══════════════════════════════════
   KESİNTİ BUTONLARI & LİSTESİ
═══════════════════════════════════ */
.pomo-interrupt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pomo-int-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.pomo-int-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.pomo-int-btn:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    color: var(--danger);
}

.pomo-int-btn:hover svg {
    color: var(--danger);
}

.pomo-int-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
    max-height: 400px;
}

.interrupt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.interrupt-item:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.03);
}

.interrupt-item .reason {
    flex: 1;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.interrupt-item .time {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.pomo-int-del-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.pomo-int-del-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.pomo-int-del-btn svg {
    width: 14px;
    height: 14px;
}


/* ═══════════════════════════════════
   İSTATİSTİK SEKMESİ
═══════════════════════════════════ */
.pomo-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pomo-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
}

.pomo-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.pomo-stat-txt {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grafik */
.pomo-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.pomo-chart .bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.6;
    min-height: 4px;
    transition: opacity 0.15s ease;
}

.pomo-chart .bar:hover {
    opacity: 1;
}

/* Neden çubukları */
.pomo-reason-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ═══════════════════════════════════
   AYARLAR SEKMESİ
═══════════════════════════════════ */
.pomo-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pomo-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Toggle Satırları */
.pomo-toggles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.pomo-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

/* Switch Toggle */
.pomo-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.pomo-switch-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pomo-switch[aria-pressed="true"] {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.pomo-switch[aria-pressed="true"] .pomo-switch-dot {
    left: 23px;
    background: var(--primary);
}


/* ═══════════════════════════════════
   WIDGET (Sidebar mini timer)
═══════════════════════════════════ */
.pomodoro-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.pomodoro-widget:hover {
    border-color: var(--primary);
    background: var(--bg-main);
}

.pomodoro-widget[data-alarm="true"] {
    border-color: var(--danger);
    animation: widgetAlarm 1s ease-in-out infinite;
}

@keyframes widgetAlarm {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.pomodoro-widget-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.pomodoro-widget-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.pomodoro-widget-time {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

.pomodoro-widget-mode {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pomodoro-widget[data-phase="short_break"] .pomodoro-widget-time,
.pomodoro-widget[data-phase="long_break"] .pomodoro-widget-time {
    color: var(--primary);
}


/* ── Danger Zone ── */
.pomo-danger-zone {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.pomo-reset-btn {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pomo-reset-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.pomo-reset-btn svg {
    width: 14px;
    height: 14px;
}


/* ═══════════════════════════════════
   RESPONSIVE (Dar ekran: dikey yığın)
═══════════════════════════════════ */
@media (max-width: 720px) {
    .pomo-panel {
        flex-direction: column;
        width: 100%;
        max-width: 440px;
        max-height: 92vh;
    }

    .pomo-left {
        width: 100%;
        min-width: 0;
        padding: 36px 28px 28px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .pomo-time {
        font-size: 72px;
        letter-spacing: -4px;
    }

    .pomo-right {
        max-height: 50vh;
    }
}

/* ═══════════════════════════════════
   SESLER SEKMESİ (AMBIENT SOUNDS)
   ═══════════════════════════════════ */
.pomo-sounds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pomo-sound-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pomo-sound-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.pomo-sound-card.playing {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

.sound-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.2s;
}

.pomo-sound-card.playing .sound-icon-wrap {
    color: var(--primary);
    border-color: var(--primary-bg);
    background: var(--primary-bg);
}

.sound-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sound-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.sound-controls {
    display: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.pomo-sound-card.playing .sound-controls {
    display: block;
    opacity: 1;
}

.sound-vol-slider {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.sound-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.playing-indicator {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 14px;
    right: 14px;
    display: none;
    box-shadow: 0 0 10px var(--primary);
}

.pomo-sound-card.playing .playing-indicator {
    display: block;
    animation: indicatorPulse 1.5s infinite;
}

.pomo-sound-card.loading {
    opacity: 0.7;
    cursor: wait;
}

.pomo-sound-card.loading .sound-icon-wrap {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes indicatorPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }
}

/* Mixer Panel */
.pomo-mixer-panel {
    margin-top: auto;
    padding: 20px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.pomo-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    outline: none;
}

.pomo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Transitions */
.pomo-tab-pane {
    animation: tabIn 0.3s ease-out;
}

@keyframes tabIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio Tab Styles */
.pomo-radio-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    padding: 2px;
}

#pomodoro-tab-radio {
    padding: 12px;
}

.pomo-radio-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    min-height: 62px;
}

.pomo-radio-card:active {
    cursor: grabbing;
}

.pomo-radio-ghost {
    opacity: 0.4;
    background: var(--primary-bg) !important;
    border: 2px dashed var(--primary) !important;
}

.pomo-radio-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pomo-radio-card.playing {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.radio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-name {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.radio-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pomo-radio-card.playing .radio-name {
    color: var(--primary);
}

.pomo-radio-card.playing .radio-status {
    color: var(--primary);
    opacity: 0.8;
}

.radio-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.2s;
    flex-shrink: 0;
}

.pomo-radio-card.playing .radio-icon {
    color: var(--primary);
}

.pomo-radio-card.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.1), transparent);
    background-size: 200% 100%;
    animation: pomo-shimmer 1.5s infinite;
}

@keyframes pomo-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}



/* ── Radio Dashboard (Footer Player) ── */
.radio-dashboard {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    animation: fadeInDashboard 0.4s ease;
}

.rd-content {
    background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.08), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rd-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.rd-icon-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.rd-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.rd-text {
    min-width: 0;
}

.rd-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.rd-text p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* Visualizer Bars */
.rd-vibe-bars {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.radio-dashboard.active .rd-vibe-bars {
    display: flex;
}

.rd-vibe-bars span {
    width: 3px;
    background: var(--primary);
    border-radius: 10px;
    animation: vibe 1s infinite alternate;
}

.rd-vibe-bars span:nth-child(2) {
    animation-delay: 0.2s;
    height: 60%;
}

.rd-vibe-bars span:nth-child(3) {
    animation-delay: 0.4s;
    height: 90%;
}

.rd-vibe-bars span:nth-child(4) {
    animation-delay: 0.1s;
    height: 50%;
}

@keyframes vibe {
    0% {
        height: 4px;
    }

    100% {
        height: 12px;
    }
}

/* Dashboard Controls */
.rd-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rd-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.rd-ctrl-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.rd-ctrl-btn.primary:hover {
    transform: scale(1.05);
}

.rd-ctrl-btn.secondary {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.rd-ctrl-btn.secondary:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* Dashboard Volume */
.rd-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 140px;
}

.rd-volume svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.rd-volume input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-main);
    outline: none;
}

.rd-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4);
}

@keyframes fadeInDashboard {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Mini Sticky Radio Player ── */
#mini-radio-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(var(--bg-card-rgb), 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 280px;
    max-width: 340px;
    animation: slideInPlayer 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

#mini-radio-player.hidden {
    display: none;
    transform: translateY(120%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.mp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mp-cover {
    width: 40px;
    height: 40px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    color: var(--primary);
}

#mini-radio-player.playing .mp-cover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.mp-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

#mini-radio-player.playing .mp-icon {
    opacity: 0;
    transform: scale(0.5);
}

.mp-visualizer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#mini-radio-player.playing .mp-visualizer {
    opacity: 1;
    transform: translateY(0);
}

.mp-visualizer span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    height: 10px;
    animation: mp-bounce 0.8s infinite alternate;
}

.mp-visualizer span:nth-child(1) {
    animation-delay: 0s;
}

.mp-visualizer span:nth-child(2) {
    animation-delay: 0.2s;
}

.mp-visualizer span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes mp-bounce {
    0% {
        height: 6px;
        opacity: 0.5;
    }

    100% {
        height: 18px;
        opacity: 1;
    }
}

.mp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mp-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mp-status {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#mini-radio-player.playing .mp-title {
    color: var(--primary);
}

.mp-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.mp-btn:hover {
    background: var(--bg-main);
    color: var(--text-main);
}

.mp-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.mp-btn.primary:hover {
    transform: scale(1.05);
}

.mp-btn.close:hover {
    background: rgba(255, 50, 50, 0.1);
    color: var(--danger);
}

.mp-btn svg {
    width: 16px;
    height: 16px;
}

@keyframes slideInPlayer {
    from {
        transform: translateY(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ── Minimal Status Area ── */
.pomo-status-card {
    margin-top: 12px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
}

.pomo-momentum-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    border: none;
}

.pomo-momentum-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.2);
}

/* ── Focus Context (Burada Kaldım) ── */
.pomo-context-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px dashed rgba(var(--primary-rgb), 0.3);
    border-radius: 16px;
    animation: fadeInContext 0.4s ease;
}

@keyframes fadeInContext {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Time Compensation Animation ── */
.pomo-time-compensate {
    animation: jumpTime 0.6s ease-out;
}

@keyframes jumpTime {
    0% {
        transform: scale(1);
        color: var(--text-main);
    }

    30% {
        transform: scale(1.1);
        color: var(--primary);
    }

    100% {
        transform: scale(1);
        color: var(--text-main);
    }
}

#pomo-compensate-badge {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    animation: floatUpFade 1.5s forwards;
    pointer-events: none;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(-10px);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* ── Interruption Report Modal ── */
.pomo-report-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    animation: scaleInReport 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInReport {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pomo-report-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.03);
}

.pomo-report-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.pomo-report-header h3 svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.pomo-report-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}

.pomo-report-close:hover {
    background: var(--bg-main);
    color: var(--danger);
}

.pomo-report-body {
    padding: 24px;
}

.pomo-report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.pomo-report-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.pomo-report-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.pomo-report-btn span {
    font-size: 12px;
    font-weight: 700;
}

.pomo-report-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(var(--primary-rgb), 0.05);
}

.pomo-report-btn:hover svg {
    transform: translateY(-2px);
}

.pomo-report-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.3);
}

.pomo-report-btn.active svg {
    color: white !important;
}

.pomo-report-footer {
    padding: 24px;
    background: rgba(var(--primary-rgb), 0.03);
    border-top: 1px solid var(--border);
}

.pomo-report-submit-btn {
    width: 100%;
    border: none;
    padding: 16px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.4);
}

.pomo-report-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--primary-rgb), 0.5);
    background: var(--primary-hover);
}

.pomo-report-submit-btn:active {
    transform: translateY(0);
}

/* ── Context History (Memory) Items ── */
.pomo-context-item {
    background: rgba(var(--primary-rgb), 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    transition: all 0.2s ease;
}

.pomo-context-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.05);
}

.pomo-context-time {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.pomo-context-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    word-break: break-word;
}