/* ==========================================
   timer.css — استایل بخش ابزارهای مطالعه (KonkurPlanner)
   ========================================== */

   .timer-container {
    background: #18181b;
    border: 1px solid #d4af37;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ---------- ساعت آنالوگ (SVG) ---------- */
.analog-clock {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    display: block;
}

.hand {
    stroke: #d4af37;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.5s linear;
    transform-origin: 50px 50px; /* منطبق با مرکز SVG (viewBox="0 0 100 100") */
}

/* عقربه دقیقه‌شمار */
.minute-hand {
    stroke: #b5932a;
    stroke-width: 4;
}

/* عقربه ثانیه‌شمار */
.second-hand {
    stroke: #f4d03f;
    stroke-width: 1.5;
}

/* ---------- نمایشگر دیجیتال ---------- */
.timer-display {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin: 10px 0;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    letter-spacing: 2px;
}

/* ---------- دکمه‌ها ---------- */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-timer {
    padding: 10px 20px;
    border: 1px solid #d4af37;
    background: transparent;
    color: #d4af37;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    transition: all 0.2s ease;
}

.btn-timer:hover {
    background: #d4af37;
    color: #000;
}

.btn-timer:active {
    transform: scale(0.96);
}

/* دکمه ثانویه (قرمز/سفید برای ریست یا متفرقه) */
.btn-timer.btn-secondary {
    background: #3f3f46;
    border-color: #3f3f46;
    color: #fff;
}

.btn-timer.btn-secondary:hover {
    background: #52525b;
    color: #fff;
}

/* ---------- انتخابگر حالت زمان‌سنج ---------- */
.timer-mode-selector {
    margin-bottom: 15px;
}

.timer-mode-selector select {
    cursor: pointer;
    outline: none;
    padding: 8px 14px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    background: #18181b;
    color: #d4af37;
    font-size: 1rem;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

/* ---------- وضعیت (Badge) ---------- */
#timerStatusBadge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ---------- حالت استراحت ---------- */
.break-active #timerStatusBadge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

/* مودال استراحت */
.break-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.break-modal.active {
    display: flex;
}

.break-card {
    background: #18181b;
    border: 1px solid #d4af37;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}

.break-card h3 {
    color: #9ee37d;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.break-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* ---------- مخفی‌سازی ---------- */
.hidden {
    display: none !important;
}

/* ---------- ریسپانسیو موبایل ---------- */
@media (max-width: 480px) {
    .timer-container {
        max-width: 95%;
        padding: 20px;
    }
    .analog-clock {
        width: 160px;
        height: 160px;
    }
    .timer-display {
        font-size: 2rem;
    }
}

/* ---------- ساعت آنالوگ دو عقربه‌ای ابزار مدیریت زمان ---------- */
.analog-clock-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:6px auto 22px;}
.analog-clock{position:relative;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#2a2a31 0,#17171c 58%,#0d0d10 100%);border:3px solid #d4af37;box-shadow:0 0 0 8px #d4af3714,0 16px 45px #0009,inset 0 0 30px #000b;}
.analog-clock:before{content:"";position:absolute;inset:12px;border-radius:50%;border:1px solid #ffffff18;box-shadow:inset 0 0 0 1px #d4af3722;}
.clock-mark{position:absolute;color:#f1d56b;font-weight:900;font-size:17px;z-index:2;}
.m12{top:18px;left:50%;transform:translateX(-50%)}.m3{right:20px;top:50%;transform:translateY(-50%)}.m6{bottom:18px;left:50%;transform:translateX(-50%)}.m9{left:20px;top:50%;transform:translateY(-50%)}
.hand{position:absolute;left:50%;bottom:50%;transform-origin:50% 100%;border-radius:999px;z-index:4;box-shadow:0 2px 7px #0008;}
.minute-hand{width:5px;height:72px;background:#f1d56b;}
.second-hand{width:2px;height:88px;background:#f5f5f5;}
.clock-center{position:absolute;left:50%;top:50%;width:14px;height:14px;border-radius:50%;transform:translate(-50%,-50%);background:#d4af37;border:3px solid #111;z-index:6;box-shadow:0 0 12px #d4af3788;}
.clock-readout{font-size:20px;font-weight:1000;letter-spacing:1px;color:#fff;background:#111116;border:1px solid #38383f;border-radius:12px;padding:7px 18px;min-width:100px;text-align:center;}
@media(max-width:480px){.analog-clock{width:190px;height:190px}.minute-hand{height:59px}.second-hand{height:73px}.m12{top:15px}.m3{right:16px}.m6{bottom:15px}.m9{left:16px}}
