/* ==========================================
   1. تنسيق الصفحة الرئيسي
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
   .pomodoro-container {
    max-width: 1100px;
    width: 95%;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.pomodoro-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pomodoro-header .page-title {
    font-family: 'Cairo', sans-serif;
    font-size: 34px;
    color: #f4ede2;
    margin-bottom: 8px;
}

.pomodoro-header .page-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #b8afa4;
}

/* ==========================================
   2. تخطيط العرض (المؤقت + الإعدادات)
   ========================================== */
.pomodoro-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ==========================================
   3. بطاقة المؤقت
   ========================================== */
.timer-card {
    flex: 2;
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
}

.mode-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 2rem;
}

.mode-tab {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    padding: 8px 18px;
    background-color: #1c1815;
    border: 1px solid #433830;
    color: #b8afa4;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-tab:hover {
    border-color: #d4a373;
    color: #f4ede2;
}

.mode-tab.active {
    background-color: #d4a373;
    border-color: #d4a373;
    color: #1c1815;
    font-weight: bold;
}

/* دائرة المؤقت */
.timer-circle-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.timer-ring {
    width: 220px;
    height: 220px;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #1c1815;
    stroke-width: 12;
}

.ring-progress {
    fill: none;
    stroke: #d4a373;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 628;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#timeLeft {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #f4ede2;
}

.timer-mode-label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #b8afa4;
}

/* أزرار التحكم */
.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.ctrl-btn {
    font-family: 'Cairo', sans-serif;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn.primary {
    width: 90px;
    height: 90px;
    border-radius: 45px;
    background-color: #d4a373;
    color: #1c1815;
    font-size: 18px;
    font-weight: 700;
}

.ctrl-btn.primary:hover {
    background-color: #e9c46a;
    transform: scale(1.05);
}

.ctrl-btn.secondary {
    width: 50px;
    height: 50px;
    background-color: #1c1815;
    border: 1px solid #433830;
    color: #f4ede2;
    font-size: 18px;
}

.ctrl-btn.secondary:hover {
    background-color: #332b25;
    border-color: #d4a373;
}

.session-counter {
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    color: #f4ede2;
}

/* ==========================================
   4. بطاقة الإعدادات
   ========================================== */
.settings-card {
    flex: 1;
    min-width: 280px;
    background-color: #28221d;
    border: 1px solid #433830;
    border-radius: 16px;
    padding: 1.8rem;
}

.settings-card h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: #f4ede2;
    margin-bottom: 1rem;
}

.settings-card .input-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.settings-card label {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: #f4ede2;
}

.settings-card .input-field {
    width: 100%;
    padding: 10px 14px;
    background-color: #1c1815;
    border: 1px solid #433830;
    border-radius: 8px;
    color: #f4ede2;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    outline: none;
}

.settings-card .input-field:focus {
    border-color: #d4a373;
}

.btn-apply {
    width: 100%;
    padding: 10px;
    background-color: #332b25;
    border: 1px solid #433830;
    border-radius: 8px;
    color: #f4ede2;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #433830;
}

.settings-divider {
    border: none;
    border-top: 1px solid #433830;
    margin: 1.5rem 0;
}

.sound-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #b8afa4;
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn-sound {
    width: 100%;
    padding: 10px;
    background-color: #332b25;
    border: 1px solid #433830;
    border-radius: 8px;
    color: #d4a373;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sound.playing {
    background-color: #d4a373;
    color: #1c1815;
    border-color: #d4a373;
}

.btn-sound:hover {
    background-color: #433830;
}

/* ==========================================
   5. التجاوب مع الشاشات الصغيرة
   ========================================== */
@media (max-width: 800px) {
    .pomodoro-layout {
        flex-direction: column;
    }

    .timer-card {
        width: 100%;
    }

    .settings-card {
        width: 100%;
    }
}