#root{max-width:1280px;margin:0 auto;padding:1rem;text-align:center}@media (min-width: 640px){#root{padding:1.5rem}}@media (min-width: 1024px){#root{padding:2rem}}.note-header{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:2rem;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-color)}@media (min-width: 1024px){.note-header{margin-bottom:3rem}}.note-header__title{font-size:1.25rem;margin-bottom:0;text-align:right}@media (min-width: 640px){.note-header__title{font-size:1.5rem}}.note-header__controls--desktop{display:none}@media (min-width: 1024px){.note-header__controls--desktop{display:flex;align-items:center;justify-content:flex-end;gap:.75rem}.note-header__controls--mobile{display:none!important}}.note-header__controls--mobile{display:flex;align-items:center;gap:.5rem;justify-content:flex-end}.theme-toggle--icon-only{padding:.5rem}.theme-toggle--icon-only .theme-toggle__text{display:none}.note-header__settings-wrap{position:relative}.note-header__settings-trigger{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:6px;background:transparent;color:var(--text-700);border:1px solid var(--border-color);cursor:pointer;transition:background .2s}.note-header__settings-trigger:hover{background:var(--bg-color)}.note-header__settings-dropdown{position:absolute;top:calc(100% + .5rem);left:0;min-width:calc(100vw - 2rem);padding:1rem;background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 20px #0000001f;z-index:50;display:flex;flex-direction:column;gap:.75rem}.note-header__settings-dropdown .note-header__search,.note-header__settings-dropdown .note-header__filter,.note-header__settings-dropdown select{width:100%}.note-header__search{padding:.5rem 1rem;border-radius:.5rem;border:1px solid var(--border-color);font-size:.9rem;min-width:140px;width:100%;background:var(--bg-card);color:var(--text-700)}.note-header__search::placeholder{color:var(--text-400)}.theme-toggle{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .75rem;border-radius:6px;background:var(--primary-700);color:#fff;font-size:.9rem;font-weight:600}[data-theme=dark] .theme-toggle{color:var(--text-100)}.note-app{display:flex;flex-direction:column;gap:2rem}@media (min-width: 1024px){.note-app{flex-direction:row;align-items:flex-start}}.note-sidebar{width:100%;flex-shrink:0;display:flex;flex-direction:column;gap:1.5rem}@media (min-width: 1024px){.note-sidebar{width:32%;min-width:260px}}@media (min-width: 1024px){.note-sidebar{width:30%}}.add-new-note{width:100%}.categories-manager{padding:1rem;background:var(--bg-card);border-radius:.75rem;border:1px solid var(--border-color)}.categories-manager h2{font-size:1.1rem;margin-bottom:.75rem}@media (min-width: 640px){.categories-manager h2{font-size:1.25rem}}.categories-manager__form{display:flex;gap:.5rem;margin-bottom:1rem}.categories-manager__form .text-field{flex:1;min-width:0;padding:.6rem .75rem}.categories-manager__form .btn{flex-shrink:0;padding:.6rem 1rem}.categories-manager__list{display:flex;flex-direction:column;gap:.35rem}.categories-manager__empty{color:var(--text-400);font-size:.9rem;padding:.5rem 0}.categories-manager__item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;background:var(--bg-color);border-radius:.5rem}.categories-manager__label{font-size:.95rem;color:var(--text-700);word-break:break-word}.categories-manager__remove{flex-shrink:0;width:1.75rem;height:1.75rem;display:flex;align-items:center;justify-content:center;border-radius:.35rem;font-size:1.25rem;line-height:1;color:var(--rose-500);background:transparent;transition:background .2s}.categories-manager__remove:hover{background:rgba(244,63,94,.15)}.note-container{width:100%;flex:1;min-width:0}@media (min-width: 1024px){.note-container{width:68%}}@media (min-width: 1024px){.note-container{width:65%}}.note-form{gap:1rem;display:grid}.add-new-note h2{font-size:1.1rem;margin-bottom:1rem}@media (min-width: 640px){.add-new-note h2{font-size:1.25rem}}.note-status{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem 1.5rem;color:var(--text-400);margin-bottom:1.5rem}.note-status li{display:flex;align-items:center;gap:.35rem}.note-status span{border-radius:2rem;display:inline-block;background-color:var(--text-400);padding:.2rem .5rem;font-size:.75rem;color:var(--text-100);font-weight:600}.message-empty{padding:2rem 1rem;color:var(--text-400);font-size:1rem;border-radius:.75rem;background:var(--bg-card);border:1px dashed var(--border-color)}.note-list{display:flex;flex-direction:column;gap:1rem}.note-item{padding:1rem;background-color:var(--bg-card);border-radius:.75rem;margin-bottom:0;border:1px solid var(--border-color);animation:noteIn .3s ease}@keyframes noteIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.note-item.note-item--removing{animation:noteOut .25s ease forwards}@keyframes noteOut{to{opacity:0;transform:scale(.95)}}@media (min-width: 640px){.note-item{padding:1.25rem}}.note-item__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding-bottom:.5rem;margin-bottom:.5rem;border-bottom:1px solid var(--border-color)}.note-item__header .content{flex:1;min-width:0}.note-item.completed .title{text-decoration:line-through;opacity:.85}.note-item.completed{opacity:.9}.note-item__header .title{font-size:1rem;color:var(--text-700);margin-bottom:.35rem;font-weight:700;word-break:break-word}@media (min-width: 640px){.note-item__header .title{font-size:1.1rem}}.note-item__header .desc{color:var(--text-400);margin-bottom:0;font-weight:300;font-size:.9rem;white-space:pre-wrap;word-break:break-word}.note-item__tag{margin-left:.25rem;margin-top:.35rem;padding:.25rem 1rem;border-radius:6px;font-size:.75rem;font-weight:500;background:var(--tag-bg);color:var(--tag-text);display:block;width:max-content}.note-item__header .actions{display:flex;gap:.5rem;align-items:center;flex-shrink:0}.note-item__header .actions button{padding:.4rem;border-radius:6px;background:transparent;display:flex;align-items:center;justify-content:center;transition:background .2s}.note-item__header .actions .btn-delete{color:var(--rose-500)}.note-item__header .actions .btn-delete:hover{background:rgba(244,63,94,.15)}.note-item__header .actions .btn-edit{color:var(--primary-600)}.note-item__header .actions .btn-edit:hover{background:rgba(79,70,229,.15)}[data-theme=dark] .note-item__header .actions .btn-delete{color:#f87171;background:rgba(248,113,113,.15)}[data-theme=dark] .note-item__header .actions .btn-delete:hover{background:rgba(248,113,113,.28)}[data-theme=dark] .note-item__header .actions .btn-edit{color:#818cf8;background:rgba(129,140,248,.15)}[data-theme=dark] .note-item__header .actions .btn-edit:hover{background:rgba(129,140,248,.28)}.note-item__footer{color:var(--text-300);font-size:.8rem;margin-top:.25rem}.note-item__edit-form{display:grid;gap:.75rem;text-align:right}.note-item__edit-form .actions-row{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.25rem}.delete-confirm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.delete-confirm-box{background:var(--bg-card);padding:1.5rem;border-radius:1rem;max-width:360px;width:100%;text-align:center;box-shadow:0 10px 40px #00000026}.delete-confirm-box p{text-align:center;margin-bottom:1rem;color:var(--text-700)}.delete-confirm-box .buttons{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem;animation:fadeIn .2s ease}.modal-box{background:var(--bg-card);border-radius:1rem;border:1px solid var(--border-color);box-shadow:0 10px 40px #0003;max-width:480px;width:100%;max-height:90vh;display:flex;flex-direction:column;animation:modalIn .25s ease}@keyframes modalIn{0%{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-box__header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1rem 1.25rem;border-bottom:1px solid var(--border-color);flex-shrink:0}.modal-box__title{font-size:1.15rem;margin:0;color:var(--text-700)}.modal-box__close{display:flex;align-items:center;justify-content:center;padding:.35rem;border-radius:6px;background:transparent;color:var(--text-700);transition:background .2s}.modal-box__close:hover{background:var(--bg-color)}.modal-box__body{padding:1.25rem;overflow-y:auto;flex:1;min-height:0}.modal-box__body .categories-manager>h2,.modal-box__body .add-new-note>h2{display:none}.note-sidebar__mobile-actions{display:flex;flex-direction:column;gap:.75rem}@media (min-width: 1024px){.note-sidebar__mobile-actions{display:none}}.note-sidebar__desktop{display:none;flex-direction:column;gap:1.5rem}@media (min-width: 1024px){.note-sidebar__desktop{display:flex}}.note-sidebar__mobile-actions .btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/vazirmatn-arabic-wght-normal.woff2) format("woff2-variations");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/vazirmatn-latin-ext-wght-normal.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Vazirmatn;font-style:normal;font-display:swap;font-weight:100 900;src:url(/fonts/vazirmatn-latin-wght-normal.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:Vazirmatn,Tahoma,sans-serif;--bg-color: #f3f4f6;--bg-card: #fff;--text-700: #374151;--text-400: #94a3b8;--text-100: #f3f4f6;--text-300: #cbd5e1;--white: #fff;--primary-700: #4338ca;--primary-600: #4f46e5;--primary-100: #e0e7ff;--rose-500: #f43f5e;--border-color: #e5e7eb;--tag-bg: var(--primary-100);--tag-text: var(--primary-700)}[data-theme=dark]{--bg-color: #1f2937;--bg-card: #374151;--text-700: #f9fafb;--text-400: #9ca3af;--text-100: #1f2937;--text-300: #6b7280;--primary-100: #3730a3;--primary-700: #c7d2fe;--border-color: #4b5563;--tag-bg: #4f46e5;--tag-text: #e0e7ff}*{padding:0;margin:0;box-sizing:border-box;list-style:none}body{background-color:var(--bg-color);width:100%;min-height:100vh;transition:background-color .3s ease}input,textarea,select{display:block;outline:none;border:none;font-family:inherit}button{outline:none;border:none;cursor:pointer;font-family:inherit}p{text-align:right}h1,h2{margin-bottom:1.5rem;color:var(--text-700)}input[type=checkbox]{transform:scale(1.5)}select{padding:.5rem 1rem;outline:none;border:1px solid var(--border-color);border-radius:6px;font-weight:700;color:var(--text-700);background:var(--bg-card)}.text-field{width:100%;padding:1rem;border-radius:6px;color:var(--text-700);font-size:1rem;background:var(--bg-card);border:1px solid var(--border-color);height:42px}textarea.text-field{min-height:100px;resize:vertical}.btn{border-radius:6px;padding:.75rem 1.25rem;font-weight:600;transition:transform .15s ease,opacity .2s ease}.btn:active{transform:scale(.98)}.btn--primary{background-color:var(--primary-600);color:#fff;font-size:1rem}.btn--danger{background-color:var(--rose-500);color:#fff}.btn--ghost{background:transparent;color:var(--text-700)}@media (max-width: 768px){body{font-size:15px}}
