.pdat-root {
    --pdat-primary: #8238E9;
    --pdat-primary-hover: #6a2bc2;
    --pdat-primary-light: #f0e6ff;
    --pdat-bg: #F7F8FC;
    --pdat-card-bg: #FFFFFF;
    --pdat-text: #2d3748;
    --pdat-text-light: #718096;
    --pdat-border: #e2e8f0;
    --pdat-success: #38a169;
    --pdat-danger: #e53e3e;
    --pdat-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --pdat-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.08);
    --pdat-radius: 12px;
    
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--pdat-bg);
    color: var(--pdat-text);
    padding: 20px;
    border-radius: var(--pdat-radius);
    box-sizing: border-box;
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
}

.pdat-root * { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Hero Section & Themes --- */
.pdat-hero {
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    transition: all 0.5s ease;
}

/* Light Themes */
.pdat-hero.theme-purple { background: linear-gradient(135deg, #f5efff 0%, #eef2ff 50%, #fdf2f8 100%); color: #2d3748; border: 1px solid rgba(130, 56, 233, 0.1); box-shadow: 0 10px 30px rgba(130, 56, 233, 0.06); }
.pdat-hero.theme-teal { background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 50%, #f0fff4 100%); color: #2d3748; border: 1px solid rgba(49, 151, 149, 0.1); box-shadow: 0 10px 30px rgba(49, 151, 149, 0.06); }
.pdat-hero.theme-rose { background: linear-gradient(135deg, #fff5f5 0%, #fff0f6 50%, #ffedd5 100%); color: #2d3748; border: 1px solid rgba(229, 62, 62, 0.1); box-shadow: 0 10px 30px rgba(229, 62, 62, 0.06); }
.pdat-hero.theme-blue { background: linear-gradient(135deg, #ebf8ff 0%, #e0e7ff 50%, #e6fffa 100%); color: #2d3748; border: 1px solid rgba(49, 130, 206, 0.1); box-shadow: 0 10px 30px rgba(49, 130, 206, 0.06); }

/* Dark Themes */
.pdat-hero.theme-dark-violet { background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, #312e81 100%); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(76, 29, 149, 0.3); }
.pdat-hero.theme-dark-midnight { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3); }
.pdat-hero.theme-dark-forest { background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0f766e 100%); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(6, 78, 59, 0.3); }
.pdat-hero.theme-dark-sunset { background: linear-gradient(135deg, #7c2d12 0%, #9a3412 50%, #b45309 100%); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(124, 45, 18, 0.3); }

.pdat-hero::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg); pointer-events: none; z-index: 0;
}

/* Adjusting text colors based on dark/light theme */
.pdat-hero.theme-dark-violet .pdat-hero-arabic,
.pdat-hero.theme-dark-midnight .pdat-hero-arabic,
.pdat-hero.theme-dark-forest .pdat-hero-arabic,
.pdat-hero.theme-dark-sunset .pdat-hero-arabic { color: #f8fafc; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.pdat-hero.theme-dark-violet .pdat-hero-quote,
.pdat-hero.theme-dark-midnight .pdat-hero-quote,
.pdat-hero.theme-dark-forest .pdat-hero-quote,
.pdat-hero.theme-dark-sunset .pdat-hero-quote { color: #f1f5f9; }

.pdat-hero.theme-dark-violet .pdat-hero-author,
.pdat-hero.theme-dark-midnight .pdat-hero-author,
.pdat-hero.theme-dark-forest .pdat-hero-author,
.pdat-hero.theme-dark-sunset .pdat-hero-author { color: #cbd5e1; }

/* Updated Theme Picker Wrapper for Inline Display */
.pdat-theme-picker-wrapper { position: relative; z-index: 20; margin-left: 8px; padding-left: 8px; border-left: 1px solid #e2e8f0; display: inline-flex; align-items: center; flex-shrink: 0; }
.pdat-hero-theme-btn {
    background: transparent; border: none;
    color: var(--pdat-primary); border-radius: 50%; width: 32px; height: 32px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.pdat-hero-theme-btn:hover { background: rgba(130, 56, 233, 0.1); transform: scale(1.1) rotate(15deg); }

.pdat-theme-menu {
    display: none; position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: white; border-radius: 12px; padding: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 1px solid var(--pdat-border);
    grid-template-columns: repeat(4, 1fr); gap: 10px; width: 160px; z-index: 30;
}
.pdat-theme-menu.show { display: grid; animation: pdatFadeIn 0.2s; }
.pdat-theme-swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.pdat-theme-swatch:hover { transform: scale(1.15); }
.pdat-theme-swatch.active { border-color: var(--pdat-text); transform: scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pdat-primary); }

/* Swatch Colors */
.swatch-purple { background: linear-gradient(135deg, #f5efff 0%, #fdf2f8 100%); }
.swatch-teal { background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%); }
.swatch-rose { background: linear-gradient(135deg, #fff5f5 0%, #ffedd5 100%); }
.swatch-blue { background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%); }

.swatch-dark-violet { background: linear-gradient(135deg, #4c1d95 0%, #312e81 100%); border: 1px solid rgba(0,0,0,0.2); }
.swatch-dark-midnight { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); border: 1px solid rgba(0,0,0,0.2); }
.swatch-dark-forest { background: linear-gradient(135deg, #064e3b 0%, #0f766e 100%); border: 1px solid rgba(0,0,0,0.2); }
.swatch-dark-sunset { background: linear-gradient(135deg, #7c2d12 0%, #b45309 100%); border: 1px solid rgba(0,0,0,0.2); }

.pdat-hero-nav {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ffffff; border-radius: 30px; padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 28px; z-index: 2; white-space: nowrap; max-width: 100%; box-sizing: border-box;
}
.pdat-hero-nav button {
    background: transparent; border: none; cursor: pointer; border-radius: 50%;
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    color: var(--pdat-primary); transition: 0.2s; flex-shrink: 0;
}
.pdat-hero-nav button:hover { background: rgba(130, 56, 233, 0.1); }
.pdat-hero-nav .date-text {
    padding: 0 12px; font-weight: 700; color: var(--pdat-primary); font-size: 16px; min-width: 240px; text-align: center; white-space: nowrap;
}

.pdat-hero-arabic {
    font-size: 48px; font-weight: 700; color: var(--pdat-primary); margin-bottom: 16px; z-index: 1;
    font-family: 'Amiri', 'Scheherazade New', 'Noto Sans Arabic', Arial, sans-serif;
    line-height: 1.6; text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pdat-hero-quote {
    font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; max-width: 800px; z-index: 1; color: #4a5568;
}
.pdat-hero-author { font-size: 13px; font-weight: 600; color: #718096; z-index: 1; }

/* Interactive Calendar Button Overlay */
.pdat-cal-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; margin-left: 8px; border-left: 1px solid #e2e8f0; padding-left: 8px; flex-shrink: 0;}
.pdat-cal-wrapper button { color: var(--pdat-text-light); }
.pdat-cal-wrapper button:hover { color: var(--pdat-primary); background: transparent; }
.pdat-cal-wrapper input[type="date"], .pdat-cal-wrapper input[type="month"] {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 10;
}
.pdat-cal-wrapper input[type="date"]::-webkit-calendar-picker-indicator, .pdat-cal-wrapper input[type="month"]::-webkit-calendar-picker-indicator {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; padding: 0; opacity: 0;
}

/* Header */
.pdat-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.pdat-header-left h1 { font-size: 24px; font-weight: 700; color: var(--pdat-text); margin-bottom: 4px; }
.pdat-header-left p { color: var(--pdat-text-light); font-size: 14px; }

/* Tabs */
.pdat-tabs { display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--pdat-border); overflow-x: auto; padding-bottom: 8px; }
.pdat-tab-btn {
    background: transparent; border: none; padding: 8px 16px; font-size: 15px;
    font-weight: 600; color: var(--pdat-text-light); cursor: pointer; border-radius: 8px; white-space: nowrap;
}
.pdat-tab-btn.active { background: var(--pdat-primary); color: white; }
.pdat-tab-content { display: none; }
.pdat-tab-content.active { display: block; animation: pdatFadeIn 0.3s; }
@keyframes pdatFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Premium Summary Cards */
.pdat-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 32px; align-items: stretch; }
@media (max-width: 1024px) { .pdat-summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .pdat-summary-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pdat-summary-grid { grid-template-columns: 1fr; } }

.pdat-card-summary {
    background: var(--pdat-card-bg); padding: 20px 16px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid var(--pdat-border);
    display: flex; flex-direction: column; justify-content: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}
.pdat-card-summary:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: #cbd5e0; }
.pdat-summary-title { font-size: 14px; font-weight: 700; color: #4a5568; margin-bottom: 12px; line-height: 1.4; letter-spacing: 0.2px; }
.pdat-summary-value { font-size: 22px; font-weight: 700; color: var(--pdat-primary); line-height: 1.3; margin-bottom: auto; }
.pdat-summary-footer { font-size: 12px; color: #718096; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #e2e8f0; font-weight: 500; line-height: 1.5; }
.pdat-progress-container { width: 100%; background: #edf2f7; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 6px;}
.pdat-progress-bar { height: 100%; background: var(--pdat-primary); transition: width 0.4s ease; }

.pdat-focus-btn-card { border: 2px dashed #fc8181; cursor: pointer; align-items: center; justify-content: center; background: #fff5f5; text-align: center; }
.pdat-focus-btn-card:hover { background: #fed7d7; border-color: #e53e3e; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(229, 62, 62, 0.15); }

.pdat-card { background: var(--pdat-card-bg); padding: 20px; border-radius: var(--pdat-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid var(--pdat-border); }

/* Namaz & Quran Tracker */
.pdat-namaz-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.pdat-namaz-btn {
    flex: 1; min-width: 90px; padding: 12px 8px; text-align: center; background: var(--pdat-bg);
    border: 1px solid var(--pdat-border); border-radius: 8px; cursor: pointer; font-weight: 600;
    color: var(--pdat-text-light); transition: all 0.2s; user-select: none; font-size: 14px; font-family: inherit;
}
.pdat-namaz-btn.namaz-masjid { background: var(--pdat-success); color: white; border-color: var(--pdat-success); box-shadow: 0 4px 6px rgba(56, 161, 105, 0.2); }
.pdat-namaz-btn.namaz-home { background: #3182ce; color: white; border-color: #3182ce; box-shadow: 0 4px 6px rgba(49, 130, 206, 0.2); }
.pdat-namaz-btn.namaz-qaza { background: #dd6b20; color: white; border-color: #dd6b20; box-shadow: 0 4px 6px rgba(221, 107, 32, 0.2); }

.pdat-quran-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--pdat-bg); padding: 16px; border-radius: 8px; border: 1px solid var(--pdat-border); transition: 0.2s; }
.pdat-quran-row.done { opacity: 0.8; background: #f0fff4; border-color: #c6f6d5; }
.pdat-q-sel { padding: 8px 6px; font-size: 13px; flex: 1; min-width: 100px; }

.pdat-quran-live-box { background: var(--pdat-primary-light); color: var(--pdat-primary); padding: 12px 20px; border-radius: 8px; font-weight: 600; text-align: center; border: 1px solid var(--pdat-primary); min-width: 180px; display: flex; flex-direction: column; justify-content: center; font-size: 14px; line-height: 1.4; }

/* Notepad List Area */
.pdat-notepad-bg {
    --np-bg: #eafaf1; --np-border: #c8e6c9; background-color: var(--np-bg); border: 1px solid var(--np-border);
    padding: 24px; border-radius: var(--pdat-radius); margin-bottom: 24px; transition: all 0.3s ease; position: relative;
}
.pdat-notepad-bg.theme-green { --np-bg: #eafaf1; --np-border: #c8e6c9; }
.pdat-notepad-bg.theme-yellow { --np-bg: #fffde7; --np-border: #fff59d; }
.pdat-notepad-bg.theme-blue { --np-bg: #e3f2fd; --np-border: #bbdefb; }
.pdat-notepad-bg.theme-pink { --np-bg: #fce4ec; --np-border: #f8bbd0; }

.pdat-sticky-header {
    position: sticky; top: 0; z-index: 100; background-color: var(--np-bg); padding: 16px 24px 12px 24px;
    margin: -24px -24px 20px -24px; border-bottom: 1px dashed var(--np-border); border-radius: var(--pdat-radius) var(--pdat-radius) 0 0;
    box-shadow: 0 4px 10px -4px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; transition: all 0.3s ease;
}

.pdat-pip-mode .pdat-sticky-left, .pdat-pip-mode .pdat-sticky-right { display: none !important; }
.pdat-pip-mode .pdat-sticky-header { justify-content: center !important; padding: 20px !important; }
.pdat-pip-mode .pdat-sticky-center { margin: 0 auto; transform: scale(1.15); transition: transform 0.3s; }
.pdat-pip-mode #pdat-pip-controls { display: flex !important; }

.pdat-notepad-bg.pdat-collapsed { padding-bottom: 24px !important; }
.pdat-notepad-bg.pdat-collapsed #pdat-todos-container { display: none !important; }
.pdat-notepad-bg.pdat-collapsed .pdat-sticky-header { border-bottom: none; box-shadow: none; margin-bottom: -24px; }

.pdat-todos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: flex-start; }
.pdat-todo-category { font-size: 15px; font-weight: 700; color: var(--pdat-text); background: #ffffff; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--np-border); border-left: 4px solid var(--pdat-primary); box-shadow: 0 2px 4px rgba(0,0,0,0.02); text-transform: uppercase; letter-spacing: 0.5px; }
.pdat-todo-category svg { color: var(--pdat-primary); }
.pdat-todo-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; position: relative; }
.pdat-todo-row:hover .btn-del-todo { opacity: 1; }
.pdat-todo-cb { width: 18px; height: 18px; accent-color: var(--pdat-primary); cursor: pointer; flex-shrink: 0; border-radius: 4px; }
.pdat-todo-input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; color: #1a202c; padding: 4px 0; font-family: inherit; width: 100%; min-width: 0; }
.pdat-todo-input:disabled { background: transparent; color: #a0aec0; cursor: not-allowed; }
.pdat-todo-input[readonly] { cursor: not-allowed; opacity: 0.8; }
.pdat-todo-input::placeholder { color: #a0aec0; }
.pdat-todo-input.done-text { text-decoration: line-through; color: #718096; opacity: 0.7; }
.pdat-todo-input:focus:not([readonly]) { border-bottom: 1px dashed var(--pdat-primary); }
.btn-del-todo { background: transparent; border: none; color: #e53e3e; cursor: pointer; opacity: 0; transition: 0.2s; padding: 4px; display: flex; align-items: center; justify-content: center; }

.pdat-input, .pdat-select, .pdat-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--pdat-border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--pdat-text); transition: 0.2s; background: var(--pdat-card-bg); box-sizing: border-box;}
.pdat-input:focus, .pdat-select:focus, .pdat-textarea:focus { outline: none; border-color: var(--pdat-primary); box-shadow: 0 0 0 3px var(--pdat-primary-light); }
.pdat-checkbox { width: 22px; height: 22px; accent-color: var(--pdat-primary); cursor: pointer; flex-shrink: 0; margin-top: 2px;}

.pdat-section-title { font-size: 18px; font-weight: 600; }
.pdat-btn-primary { background: var(--pdat-primary); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.2s; }
.pdat-btn-primary:hover { background: var(--pdat-primary-hover); }
.pdat-btn-danger { background: #fff; border: 1px solid var(--pdat-danger); color: var(--pdat-danger); }
.pdat-btn-danger:hover { background: var(--pdat-danger); color: white; }

.pdat-save-toast { position: fixed; bottom: 20px; right: 20px; background: var(--pdat-text); color: white; padding: 8px 16px; border-radius: 20px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 9999999; }
.pdat-save-toast.show { opacity: 1; }
.pdat-mb-24 { margin-bottom: 24px; }

/* Modal */
.pdat-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.pdat-modal-overlay.show { opacity: 1; pointer-events: auto; }
.pdat-modal-content { background: var(--pdat-card-bg); width: 90%; max-width: 500px; border-radius: var(--pdat-radius); padding: 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); position: relative; transform: translateY(20px); transition: transform 0.3s; max-height: 90vh; overflow-y: auto; }
.pdat-modal-overlay.show .pdat-modal-content { transform: translateY(0); }
.pdat-modal-close { position: absolute; top: 16px; right: 16px; background: var(--pdat-bg); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--pdat-text-light); }
.pdat-modal-close:hover { background: #e2e8f0; color: var(--pdat-danger); }

/* Charts */
.pdat-chart-container { display: flex; align-items: flex-end; gap: 8px; padding-top: 20px; border-bottom: 1px solid var(--pdat-border); overflow-x: auto; }
.pdat-chart-bar-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.pdat-chart-bar { width: 100%; max-width: 40px; background: var(--pdat-primary); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.5s; }
.pdat-chart-label { font-size: 12px; color: var(--pdat-text-light); }
.pdat-heatmap { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 16px; }
.pdat-heatmap-month { background: var(--pdat-bg); padding: 8px; border-radius: 6px; text-align: center; font-size: 12px; border: 1px solid var(--pdat-border); }

/* --- MOBILE RESPONSIVE CSS --- */
@media (max-width: 768px) { 
    .pdat-root { padding: 12px; }
    .pdat-hero { 
        padding: 60px 12px 20px 12px !important; 
        margin-bottom: 24px !important; 
    }
    .pdat-theme-picker-wrapper { margin-left: 2px !important; padding-left: 6px !important; }
    .pdat-hero-arabic { font-size: 26px !important; line-height: 1.4 !important; margin-bottom: 12px !important; }
    .pdat-hero-quote { font-size: 14px !important; margin-bottom: 6px !important; }
    .pdat-hero-author { font-size: 12px !important; }
    
    /* Date Nav fixes for Mobile */
    .pdat-hero-nav {
        padding: 4px 6px !important;
        gap: 2px !important;
        width: 100%;
        max-width: 320px;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .pdat-hero-nav .date-text { min-width: auto !important; font-size: 12px !important; padding: 0 2px !important; white-space: nowrap; letter-spacing: -0.2px;}
    .pdat-hero-nav button { width: 28px !important; height: 28px !important; padding: 0 !important; flex-shrink: 0; }
    .pdat-hero-nav svg { width: 16px !important; height: 16px !important; }
    .pdat-cal-wrapper { margin-left: 2px !important; padding-left: 6px !important; border-left: 1px solid #e2e8f0; }

    .pdat-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .pdat-date-nav { width: 100%; justify-content: space-between; padding: 6px 8px; }
    
    .pdat-quran-row { flex-direction: column; align-items: stretch; }
    .pdat-quran-row > div:first-child { width: 100%; }
    .pdat-quran-row > div:first-child > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
    .pdat-quran-row > div:first-child > div:last-child span { grid-column: span 2; text-align: center; }
    .pdat-q-sel { width: 100%; min-width: 0; }
    .pdat-quran-live-box { width: 100%; }

    .pdat-notepad-bg { padding: 16px; margin-bottom: 16px; }
    .pdat-sticky-header { 
        margin: -16px -16px 16px -16px; padding: 12px; 
        flex-direction: column !important; align-items: stretch !important; gap: 12px;
    }
    .pdat-sticky-left { display: none; }
    .pdat-sticky-center { min-width: 100% !important; }
    .pdat-sticky-right { flex-direction: row !important; justify-content: space-between; width: 100%; }
    .pdat-sticky-right span { display: none; }

    .pdat-todos-grid { grid-template-columns: 1fr; gap: 20px; }
    .btn-del-todo { opacity: 1 !important; padding: 8px; }

    .pdat-modal-content { padding: 16px; width: 95%; max-height: 90vh; }
    table { font-size: 12px !important; }
    th, td { padding: 8px 6px !important; }
}

@media (max-width: 480px) {
    .pdat-summary-grid { grid-template-columns: 1fr; gap: 12px; }
    .pdat-namaz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pdat-namaz-btn { padding: 10px 4px; font-size: 13px; }
    #pdat-btn-timer-toggle, #pdat-btn-timer-reset { padding: 0 10px; }
}
