*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{direction:rtl}body{font-family:Segoe UI,Tahoma,Arial,sans-serif;background:#f5f5f8;color:#1a1a2e;min-height:100vh;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}#root{max-width:900px;margin:0 auto;padding:20px 16px 40px}::selection{background:#5c6bc0;color:#fff}input::placeholder{color:#999}@media(max-width:600px){#root{padding:20px 8px 32px}.section-title{font-size:18px!important}}.nav{display:flex;gap:0;background:#e8e8f0;border-radius:12px;padding:4px;margin-bottom:24px}.nav-tab{flex:1;padding:10px 8px;border:none;background:transparent;color:#777;font-size:14px;font-weight:600;cursor:pointer;border-radius:10px;transition:all .2s;font-family:inherit;display:flex;flex-direction:column;align-items:center;gap:2px}.nav-icon{font-size:18px}.nav-label{font-size:12px}.nav-tab:hover{color:#444}.nav-tab.active{background:#fff;color:#1a1a2e;box-shadow:0 2px 8px #0000001a}@media(max-width:600px){.nav{border-radius:0;margin:-20px -16px 16px;padding:4px 2px;position:sticky;top:0;z-index:100}.nav-tab{padding:8px 4px;gap:1px}.nav-icon{font-size:20px}.nav-label{font-size:10px}}.calendar{animation:fadeIn .3s ease}.kid-selector{display:flex;gap:8px;margin-bottom:16px}.kid-btn{flex:1;padding:10px 16px;border:2px solid;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}.kid-btn:hover{opacity:.85}.kid-info{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-radius:10px;margin-bottom:16px;border:1px solid #e0e0e8}.kid-info-name{font-size:18px;font-weight:700}.kid-info-age{font-size:14px;color:#777}.kid-info-birthday{font-size:13px;color:#999;margin-right:auto}.kid-info-birthday.soon{color:#e65100;font-weight:600}.week-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:0 4px}.week-nav-btn{background:none;border:1px solid #ddd;border-radius:8px;padding:6px 14px;font-size:13px;font-family:inherit;color:#5c6bc0;cursor:pointer;font-weight:600;transition:all .2s}.week-nav-btn:hover{background:#eef0ff;border-color:#5c6bc0}.week-nav-label{font-size:14px;font-weight:700;color:#444}.header-day{display:block;line-height:1.3}.header-date{display:block;font-size:11px;font-weight:500;color:#999}.today-header .header-date{color:#5c6bc0}.schedule-grid-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}.schedule-grid{min-width:500px;display:grid;grid-template-columns:80px repeat(5,1fr);gap:1px;background:#ddd;border-radius:12px;overflow:hidden;border:1px solid #ddd}.schedule-cell{background:#fff;padding:8px 6px;min-height:42px;display:flex;align-items:center;justify-content:center}.schedule-cell.header{background:#f0f0f5;font-weight:700;font-size:13px;color:#444;min-height:36px}.schedule-cell.header.corner{font-size:12px;color:#888}.schedule-cell.header.today-header{background:#eef0ff;color:#5c6bc0}.time-cell{flex-direction:column;gap:0;font-size:11px;color:#888;font-weight:600;background:#fafafa}.time-separator{font-size:9px;color:#bbb}.subject-cell{cursor:pointer;transition:background .15s;font-size:13px;text-align:center}.subject-cell:hover{background:#f5f5ff!important}.subject-cell.today{background:#f8f8ff}.subject-cell.has-value{font-weight:500;color:#333}.empty-cell{color:transparent}.subject-cell:hover .empty-cell{color:#ccc}.cell-value{font-size:12px;color:#333}.subject-cell.has-change{cursor:pointer}.subject-cell.change-event{background:#fff3e0!important}.subject-cell.change-event.today{background:#ffe0b2!important}.subject-cell.change-substitute{background:#e8f5e9!important}.subject-cell.change-substitute.today{background:#c8e6c9!important}.change-content{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%}.change-text{font-size:10px;font-weight:600;color:#e65100;text-align:center;line-height:1.2;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.change-substitute .change-text{color:#2e7d32}.change-original{font-size:10px;color:#999;text-decoration:line-through;text-align:center}.afternoon-separator-label{background:#f5f0ff!important;font-size:11px;font-weight:700;color:#7c4dff;min-height:24px!important;padding:4px 6px!important}.afternoon-separator{background:#f5f0ff!important;min-height:24px!important;padding:0!important;border-top:2px solid #e0d6ff}.time-cell.afternoon{background:#faf8ff}.cell-text-input{width:100%;padding:4px 6px;border:1px solid #5c6bc0;border-radius:4px;font-size:12px;font-family:inherit;background:#fff;color:#333;outline:none;text-align:center}@media(max-width:600px){.schedule-grid{grid-template-columns:60px repeat(5,1fr);font-size:11px}.schedule-cell.header{font-size:11px;padding:6px 2px}.time-cell,.cell-value{font-size:10px}.kid-selector{gap:4px}.kid-btn{padding:8px;font-size:13px}}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.food-planner{animation:fadeIn .3s ease}.food-grid{display:grid;grid-template-columns:90px repeat(3,1fr);gap:1px;background:#ddd;border-radius:12px;overflow:hidden;border:1px solid #ddd}.food-cell{background:#fff;padding:12px 8px;min-height:50px;display:flex;align-items:center;justify-content:center;text-align:center}.food-cell.header{background:#f0f0f5;font-weight:700;font-size:14px;min-height:40px}.food-cell.header.corner{font-size:12px;color:#888}.kid-col{font-size:15px}.food-cell.day-label{font-weight:600;font-size:13px;color:#555;background:#fafafa}.food-cell.day-label.today{color:#5c6bc0;background:#eef0ff!important;font-weight:700}.food-cell.day-label.shabat{color:#b39ddb;font-style:italic}.food-entry{cursor:pointer;transition:background .15s}.food-entry:hover{background:#f8f8ff!important}.food-entry.today{background:#f5f6ff}.food-value{font-size:14px;color:#333}.food-empty{color:#ccc;font-size:13px}.food-entry:hover .food-empty{color:#aaa}.shabat-cell{background:#faf8ff}.shabat-text{font-size:13px;color:#b39ddb;font-style:italic}.food-input{width:100%;padding:6px 8px;border:1px solid #5c6bc0;border-radius:6px;font-size:13px;font-family:inherit;background:#fff;color:#333;outline:none;text-align:center}@media(max-width:600px){.food-grid{grid-template-columns:70px repeat(3,1fr)}.food-cell{padding:10px 4px;min-height:44px}.food-cell.header{font-size:12px}.food-cell.day-label{font-size:11px}.food-value{font-size:12px}}.exam-list{animation:fadeIn .3s ease}.exam-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.exam-header .section-title{margin-bottom:0}.add-exam-btn{padding:8px 18px;border:1px solid #5c6bc0;border-radius:8px;background:transparent;color:#5c6bc0;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s}.add-exam-btn:hover{background:#5c6bc0;color:#fff}.exam-form{background:#fff;border:1px solid #e0e0e8;border-radius:12px;padding:16px;margin-bottom:20px;display:flex;flex-direction:column;gap:10px}.exam-form-row{display:flex;gap:10px}.exam-form-group{display:flex;flex-direction:column;gap:3px;flex:1}.exam-form-group.flex-2{flex:2}.exam-form-group label{font-size:12px;color:#888;font-weight:600}.exam-form-group input{padding:8px 10px;border:1px solid #d0d0d8;border-radius:6px;font-size:13px;font-family:inherit;background:#fafafa;color:#333;outline:none}.exam-form-group input:focus{border-color:#5c6bc0}.exam-save-btn{padding:10px 20px;border:none;border-radius:8px;background:#5c6bc0;color:#fff;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;align-self:flex-start}.exam-section{margin-bottom:24px}.exam-section-title{font-size:15px;color:#666;margin-bottom:10px;font-weight:600}.exam-section.past{opacity:.5}.no-exams{color:#aaa;text-align:center;padding:32px;font-style:italic}.exam-card{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e0e0e8;border-radius:10px;padding:14px 16px;margin-bottom:8px;transition:box-shadow .2s}.exam-card:hover{box-shadow:0 2px 8px #0000000f}.exam-card.past{background:#fafafa}.exam-date-badge{display:flex;flex-direction:column;align-items:center;min-width:100px;gap:2px}.exam-days-left{font-size:14px;font-weight:700;color:#e53935}.exam-date-text{font-size:11px;color:#999}.exam-details{display:flex;flex-direction:column;gap:2px;flex:1}.exam-subject{font-size:17px;font-weight:700;color:#333}.exam-meta{font-size:12px;color:#888}.exam-notes{font-size:12px;color:#aaa;font-style:italic}.exam-attachment{font-size:12px;color:#5c6bc0;text-decoration:none;font-weight:500;transition:color .2s}.exam-attachment:hover{color:#3949ab;text-decoration:underline}.exam-actions{display:flex;gap:4px;align-items:center}.exam-edit-btn{background:none;border:none;font-size:14px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:all .2s}.exam-edit-btn:hover{background:#f0f0ff}.exam-delete{background:none;border:none;color:#ccc;font-size:16px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:all .2s}.exam-delete:hover{background:#fff0f0;color:#e53935}.exam-card.editing{padding:16px}.exam-edit-form{width:100%;display:flex;flex-direction:column;gap:10px}.exam-edit-actions{display:flex;gap:8px}.exam-cancel-btn{padding:8px 16px;border:1px solid #ccc;border-radius:8px;background:transparent;color:#666;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s}.exam-cancel-btn:hover{background:#f0f0f0}@media(max-width:600px){.exam-form-row{flex-direction:column}.exam-header{flex-direction:column;gap:8px;align-items:flex-start}.exam-card{flex-direction:column;align-items:flex-start;gap:8px}.exam-date-badge{flex-direction:row;gap:8px}}.funday{animation:fadeIn .3s ease}.funday-kid-selector{display:flex;gap:8px;margin-bottom:16px}.funday-kid-btn{flex:1;padding:10px 8px;border:2px solid;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:2px}.funday-kid-btn:hover{opacity:.85}.funday-kid-name{font-size:15px}.funday-kid-day{font-size:11px;font-weight:500;opacity:.8}.funday-time-card{background:#fff;border:1px solid #e0e0e8;border-right:4px solid;border-radius:12px;padding:16px 20px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between}.funday-time-header{display:flex;flex-direction:column;gap:2px}.funday-time-day{font-size:18px;font-weight:700;color:#333}.funday-time-hours{font-size:14px;color:#888;font-weight:500}.funday-today-badge{background:linear-gradient(135deg,#ff6b35,#ff9800);color:#fff;padding:6px 16px;border-radius:20px;font-size:14px;font-weight:700;animation:pulse 2s infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.funday-section{margin-bottom:24px}.funday-section-title{font-size:16px;font-weight:700;color:#444;margin-bottom:12px}.funday-week-label{font-size:12px;color:#999;display:block;margin-top:-8px;margin-bottom:12px}.funday-regular-list{display:flex;flex-direction:column;gap:8px}.funday-regular-item{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e0e0e8;border-radius:10px;padding:12px 16px;font-size:15px;color:#444}.funday-regular-emoji{font-size:20px}.funday-rec-group{margin-bottom:16px}.funday-rec-type{font-size:14px;font-weight:600;color:#666;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #eee}.funday-rec-card{background:#fff;border:1px solid #e0e0e8;border-radius:10px;padding:14px 16px;margin-bottom:8px;transition:box-shadow .2s}.funday-rec-card:hover{box-shadow:0 2px 8px #0000000f}.funday-rec-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.funday-rec-title{font-size:16px;font-weight:700;color:#333}.funday-rec-rating{font-size:13px;font-weight:600;color:#ff9800;background:#fff8e1;padding:2px 8px;border-radius:12px}.funday-rec-desc{font-size:13px;color:#666;margin:0 0 8px;line-height:1.5}.funday-rec-meta{display:inline-block;font-size:12px;color:#888;margin-left:12px;margin-bottom:4px}.funday-rec-link{display:inline-block;font-size:13px;color:#5c6bc0;text-decoration:none;font-weight:600;margin-top:4px}.funday-rec-link:hover{text-decoration:underline}.funday-empty{text-align:center;padding:32px;color:#999;font-size:14px;background:#fafafa;border-radius:12px;border:1px dashed #ddd}@media(max-width:600px){.funday-kid-selector{gap:6px}.funday-kid-btn{padding:8px 4px;font-size:13px}.funday-time-card{flex-direction:column;align-items:flex-start;gap:8px}}.shabbat{animation:fadeIn .3s ease}.shabbat-day-section{margin-bottom:28px}.shabbat-day-title{font-size:18px;font-weight:700;color:#333;margin:0 0 14px;display:flex;align-items:center;gap:8px;padding-bottom:8px;border-bottom:2px solid #eee}.shabbat-day-emoji{font-size:22px}.shabbat-week-label{display:block;font-size:13px;color:#7c4dff;font-weight:600;margin-bottom:16px}.shabbat-list{display:flex;flex-direction:column;gap:12px}.shabbat-card{background:#fff;border:1px solid #e0e0e8;border-radius:12px;padding:16px;transition:box-shadow .2s;border-right:4px solid #ccc}.shabbat-card:hover{box-shadow:0 2px 10px #0000000f}.shabbat-card-hike{border-right-color:#4caf50}.shabbat-card-cafe{border-right-color:#795548}.shabbat-card-movie{border-right-color:#5c6bc0}.shabbat-card-event{border-right-color:#ff9800}.shabbat-card-wild{border-right-color:#e91e63}.shabbat-card-restaurant{border-right-color:#e65100}.shabbat-card-dessert{border-right-color:#ec407a}.shabbat-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.shabbat-card-type{font-size:12px;font-weight:600;color:#888;text-transform:uppercase}.shabbat-card-rating{font-size:13px;font-weight:600;color:#ff9800;background:#fff8e1;padding:2px 8px;border-radius:12px}.shabbat-card-title{font-size:18px;font-weight:700;color:#333;margin:0 0 6px}.shabbat-card-desc{font-size:14px;color:#555;line-height:1.6;margin:0 0 10px}.shabbat-card-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:#777;margin-bottom:6px}.shabbat-card-link{display:inline-block;font-size:13px;color:#5c6bc0;text-decoration:none;font-weight:600;margin-top:4px}.shabbat-card-link:hover{text-decoration:underline}.shabbat-empty{text-align:center;padding:40px;color:#999;font-size:15px;background:#fafafa;border-radius:12px;border:1px dashed #ddd}@media(max-width:600px){.shabbat-card-meta{flex-direction:column;gap:4px}}.exam-banner{margin-bottom:16px;border-radius:12px;overflow:hidden;border:1px solid #e0e0e8;background:#fff;animation:fadeIn .3s ease}.exam-banner-title{padding:10px 16px;font-weight:700;font-size:15px;background:#f8f0f0;color:#c62828;border-bottom:1px solid #e0e0e8}.exam-banner-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #f0f0f0}.exam-banner-item:last-child{border-bottom:none}.exam-banner-item.today{background:#fff3e0}.exam-banner-item.urgent{background:#fef8f0}.exam-banner-left{display:flex;flex-direction:column;gap:2px}.exam-banner-subject{font-weight:600;font-size:15px;color:#333}.exam-banner-kid{font-size:13px;font-weight:500}.exam-banner-right{display:flex;align-items:center;gap:8px}.exam-banner-days{font-weight:700;font-size:14px;color:#555}.today-badge{color:#e65100;font-size:15px}.urgent-badge{color:#ef6c00}.exam-banner-date{font-size:12px;color:#999}.exam-banner-dismiss{background:none;border:none;color:#bbb;font-size:16px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:all .2s}.exam-banner-dismiss:hover{background:#f0f0f0;color:#e53935}@media(max-width:600px){.exam-banner-subject{font-size:14px}}.schedule-change-banner{margin-bottom:16px;border-radius:12px;overflow:hidden;border:1px solid #e0e0e8;background:#fff;animation:fadeIn .3s ease}.schedule-change-banner-title{padding:10px 16px;font-weight:700;font-size:15px;background:#f0f4ff;color:#1565c0;border-bottom:1px solid #e0e0e8}.schedule-change-item{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid #f0f0f0;gap:8px}.schedule-change-item:last-child{border-bottom:none}.schedule-change-left{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.schedule-change-day{font-weight:600;font-size:14px;color:#333}.schedule-change-detail{font-size:13px;color:#666;display:flex;align-items:center;gap:4px;flex-wrap:wrap}.schedule-change-old{text-decoration:line-through;color:#e53935}.schedule-change-arrow{color:#999}.schedule-change-new{color:#2e7d32;font-weight:500}.schedule-change-dismiss{background:none;border:none;color:#bbb;font-size:16px;cursor:pointer;padding:4px 8px;border-radius:6px;transition:all .2s;flex-shrink:0}.schedule-change-dismiss:hover{background:#f0f0f0;color:#1565c0}@media(max-width:600px){.schedule-change-day{font-size:13px}}.app-header{text-align:center;margin-bottom:24px}.app-header h1{font-size:28px;background:linear-gradient(135deg,#5c6bc0,#7e57c2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}@media(max-width:600px){.app-header{margin-bottom:16px}.app-header h1{font-size:22px}}
