/*
 Theme Name: To-Do Personal Pro
 Theme URI: https://example.com/todo-personal-pro
 Author: DigiFlip
 Description: ثيم مهام شخصي مع تسجيل/إنشاء حساب، مودال إضافة مهمة، تقويم شهري، وأزرار إتمام/إلغاء الإتمام، وتحسينات للجوال و iOS/PWA.
 Version: 3.4.0
 Requires at least: 6.6
 Requires PHP: 8.2
 License: GPL-2.0-or-later
 Text Domain: todo_premium
*/
:root{--primary:#0F62FE;--accent:#22C55E;--bg:#0B1220;--card:#0F172A;--border:#1F2937;--text:#e5e7eb}
@media (prefers-color-scheme: light){:root{--bg:#ffffff;--card:#ffffff;--border:#E5E7EB;--text:#0f172a}}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.6}
a{color:#93c5fd;text-decoration:none} a:hover{text-decoration:underline}
.container{max-width:1200px;margin:0 auto;padding:16px}
.site-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px}
.site-top .btn{background:#111827;color:#fff;border:1px solid #1f2937;border-radius:10px;padding:8px 12px;margin-inline-start:8px;display:inline-block}
.hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#0F62FE,#111827);border-radius:20px;padding:18px 20px;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.hero h1{margin:0;font-size:26px;color:#fff}
.actions .btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);padding:10px 14px;border-radius:12px;color:#fff;margin-inline-start:8px}
.columns{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:12px;box-shadow:0 6px 20px rgba(0,0,0,.15)}
.section h3{margin:0 0 8px 0}
.task{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.02);margin-top:8px}
.task.is-done{background:rgba(22,163,74,.15);border-color:#16a34a}
.complete-btn{margin-inline-start:auto;background:transparent;border:1px solid #334155;color:#e2e8f0;border-radius:10px;padding:6px 10px;cursor:pointer;transition:all .2s}
.complete-btn:hover{background:#10b981;color:#062e1a;border-color:#10b981}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;margin-inline-start:8px;font-weight:600}
.badge.high{background:rgba(239,68,68,.15);color:#fecaca;border:1px solid rgba(239,68,68,.35)}
.badge.med{background:rgba(250,204,21,.15);color:#fde68a;border:1px solid rgba(250,204,21,.35)}
.badge.low{background:rgba(59,130,246,.15);color:#bfdbfe;border:1px solid rgba(59,130,246,.35)}
.empty{padding:12px;border:1px dashed var(--border);border-radius:12px;color:#9ca3af}
.month-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:8px}
.month-grid .cell{min-height:110px;border:1px solid var(--border);border-radius:12px;padding:8px;background:rgba(255,255,255,.02)}
.month-grid .dow{font-weight:700;text-align:center;opacity:.8;background:transparent;border:none}
.month-title{font-weight:700;font-size:18px}
.footer-hint{text-align:center;color:#9ca3af;margin-top:16px;font-size:14px}
.account-hero{background:linear-gradient(135deg,#0F62FE,#111827);color:#fff;border-radius:20px;padding:24px;margin:16px 0;text-align:center;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:12px}
.auth-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px}
.auth-card h2{margin-top:0}
.auth-card input,.auth-card .button{width:100%;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#0b1324;color:#e5e7eb;margin:6px 0}
.auth-card .button{background:#0F62FE;color:#fff;border-color:#0F62FE}
.tpp-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:flex-end;justify-content:center;z-index:9999}
.tpp-sheet{width:100%;max-width:520px;background:var(--card);border:1px solid var(--border);border-top-left-radius:16px;border-top-right-radius:16px;padding:16px;box-shadow:0 -10px 30px rgba(0,0,0,.35)}
.tpp-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tpp-field{margin-top:8px}
.tpp-field input,.tpp-field select,.tpp-field textarea{width:100%;padding:10px;border-radius:10px;border:1px solid var(--border);background:#0b1324;color:#e5e7eb}
.tpp-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
.tpp-btn{padding:10px 14px;border-radius:12px;border:1px solid #334155;background:#111827;color:#e5e7eb;cursor:pointer}
.tpp-btn.primary{background:#22C55E;border-color:#22C55E;color:#062e1a}
@media (max-width:900px){.columns{grid-template-columns:1fr}.hero{flex-direction:column;gap:8px}.auth-grid{grid-template-columns:1fr}.month-wrap{overflow-x:auto}.month-grid{min-width:720px}}
