/* ============================================
   DeenNetwork — Smart Reminders Styles
   ============================================ */

.rem-section {
    padding: 40px 0 80px;
    background: #f7f7f7;
}

/* ---------- Notification Bar ---------- */
.rem-notif-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #fff;
    border: 1px solid rgba(18, 17, 17, 0.06);
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}

.rem-notif-bar.granted {
    background: #f0faf0;
    border-color: #c3e6c3;
}

.rem-notif-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.rem-notif-icon {
    font-size: 1.5rem;
}

.rem-notif-info strong {
    font-size: 0.95rem;
    color: #121111;
}

.rem-notif-info p {
    font-size: 0.82rem;
    color: #888;
    margin: 2px 0 0;
}

.rem-notif-status {
    font-size: 0.82rem;
    color: #888;
}

/* ---------- Buttons ---------- */
.rem-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.rem-btn-primary {
    background: #121111;
    color: #fff;
}

.rem-btn-primary:hover {
    background: #333;
}

/* ---------- Cards Grid ---------- */
.rem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rem-card {
    background: #fff;
    border: 1px solid rgba(18, 17, 17, 0.06);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.rem-card-large {
    grid-column: span 2;
}

.rem-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rem-card-icon {
    font-size: 1.5rem;
}

.rem-card-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: #121111;
    flex: 1;
}

.rem-card-desc {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ---------- Toggle Switch ---------- */
.rem-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.rem-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rem-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 26px;
    cursor: pointer;
    transition: 0.3s;
}

.rem-toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.rem-toggle input:checked+.rem-toggle-slider {
    background: #121111;
}

.rem-toggle input:checked+.rem-toggle-slider::before {
    transform: translateX(22px);
}

/* ---------- Prayer Settings ---------- */
.rem-setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #555;
}

.rem-setting-row select,
.rem-time-input {
    padding: 8px 12px;
    border: 1px solid rgba(18, 17, 17, 0.1);
    border-radius: 8px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #121111;
    outline: none;
    cursor: pointer;
}

.rem-prayer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.rem-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 14px;
    background: #f7f7f7;
    border-radius: 8px;
    transition: 0.2s;
}

.rem-checkbox:hover {
    background: #f0f0f0;
}

.rem-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #121111;
}

.rem-prayer-status,
.adhkar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #888;
}

.rem-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: 0.2s;
}

.rem-status-dot.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

/* ---------- Dhikr Counter ---------- */
.dhikr-counter {
    text-align: center;
}

.dhikr-display {
    margin-bottom: 16px;
}

.dhikr-count {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #121111;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dhikr-target {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 600;
}

.dhikr-tap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    background: #121111;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 4px 16px rgba(18, 17, 17, 0.2);
    margin-bottom: 16px;
}

.dhikr-tap:hover {
    transform: scale(1.05);
}

.dhikr-tap:active {
    transform: scale(0.95);
}

.dhikr-progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.dhikr-progress-fill {
    height: 100%;
    background: #121111;
    border-radius: 6px;
    transition: width 0.3s;
    width: 0;
}

.dhikr-phrase {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: #121111;
    margin-bottom: 16px;
    direction: rtl;
}

.dhikr-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.dhikr-controls select {
    padding: 8px 12px;
    border: 1px solid rgba(18, 17, 17, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #121111;
    outline: none;
}

.dhikr-reset {
    padding: 8px 14px;
    border: 1px solid rgba(18, 17, 17, 0.1);
    border-radius: 8px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #121111;
    cursor: pointer;
    transition: 0.2s;
}

.dhikr-reset:hover {
    background: #f0f0f0;
}

/* ---------- Quran Tracker ---------- */
.quran-tracker {
    text-align: center;
}

.qt-goal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
}

.qt-goal-row select {
    padding: 8px 12px;
    border: 1px solid rgba(18, 17, 17, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #121111;
    outline: none;
}

.qt-progress-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
}

.qt-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.qt-ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 8;
}

.qt-ring-fill {
    fill: none;
    stroke: #121111;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s;
}

.qt-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qt-pages-done {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #121111;
    line-height: 1;
}

.qt-pages-label {
    font-size: 0.72rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qt-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.qt-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: #121111;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.qt-btn:hover {
    background: #333;
}

.qt-btn-outline {
    background: #fff;
    color: #121111;
    border: 1px solid rgba(18, 17, 17, 0.1);
}

.qt-btn-outline:hover {
    background: #f0f0f0;
}

.qt-streak {
    font-size: 0.9rem;
    color: #888;
}

.qt-streak strong {
    color: #121111;
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .rem-grid {
        grid-template-columns: 1fr;
    }

    .rem-card-large {
        grid-column: span 1;
    }

    .rem-notif-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rem-prayer-list {
        flex-direction: column;
    }

    .dhikr-count {
        font-size: 3rem;
    }

    .dhikr-tap {
        width: 80px;
        height: 80px;
        font-size: 1rem;
    }

    .rem-section {
        padding: 24px 0 60px;
    }
}