.calendar-container{background:0 0;flex-direction:column;gap:1rem;padding:1rem;display:flex}.calendar-header-section{-webkit-backdrop-filter:blur(10px);background:linear-gradient(135deg,#ffffffe6 0%,#f8fafcf2 100%);border:1px solid #e2e8f099;border-radius:12px;flex-direction:column;gap:.75rem;padding:.875rem 1rem;display:flex;box-shadow:0 2px 12px #0000000d}@media (min-width:768px){.calendar-header-section{flex-direction:row;justify-content:space-between;align-items:center}}.calendar-header-left{flex-wrap:wrap;align-items:center;gap:1.5rem;display:flex}.calendar-title{color:var(--text-primary);letter-spacing:-.01em;margin:0;font-size:1.125rem;font-weight:600}.view-mode-buttons{background:#e2e8f066;border-radius:10px;gap:.25rem;padding:.25rem;display:flex}.view-mode-buttons .btn{border-radius:8px;min-width:70px;padding:.5rem 1rem;font-size:.8125rem;font-weight:500;transition:all .2s}.view-mode-buttons .btn.btn-primary{color:var(--accent-primary);background:#fff;box-shadow:0 2px 8px #00000014}.calendar-header-right{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.current-date-title{color:var(--text-primary);text-align:center;min-width:180px;margin:0;font-size:1rem;font-weight:600}.today-btn{box-shadow:0 2px 8px #5a7c6540;background:linear-gradient(135deg,var(--accent-primary),var(--accent-secondary))!important;color:#fff!important;border:none!important}.today-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #5a7c6559}.calendar-content{-webkit-backdrop-filter:blur(15px);background:#ffffffb3;border:1px solid #e2e8f080;border-radius:16px;overflow:hidden;box-shadow:0 4px 24px #0000000f}.month-view{background:#fff;border-radius:16px;overflow:hidden}.calendar-grid{border:none;grid-template-columns:repeat(7,1fr);display:grid}.day-header{text-align:center;color:#fff;letter-spacing:.04em;text-transform:uppercase;background:linear-gradient(135deg,var(--accent-primary)0%,var(--accent-secondary)100%);border-right:1px solid #ffffff26;justify-content:center;align-items:center;padding:.625rem .5rem;font-size:.75rem;font-weight:600;display:flex}.day-header:last-of-type{border-right:none}.calendar-day{cursor:pointer;background-color:#fff;border-bottom:1px solid #e2e8f080;border-right:1px solid #e2e8f080;flex-direction:column;height:95px;min-height:95px;padding:.375rem;transition:all .2s;display:flex;position:relative;overflow:hidden}.calendar-day:nth-child(7n+14){border-right:none}.calendar-day:hover{z-index:5;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);transform:translateY(-1px);box-shadow:0 4px 12px #00000014}.calendar-day.today{border:2px solid var(--accent-primary);background:linear-gradient(135deg,#5a7c6514 0%,#5a7c6526 100%)}.calendar-day.today .day-number{background:var(--accent-primary);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;font-size:.75rem;font-weight:700;display:flex}.calendar-day.empty{cursor:default;opacity:.5;background-color:#f8fafc80}.calendar-day.empty:hover{box-shadow:none;background-color:#f8fafc80;transform:none}.calendar-day.client-view{cursor:default}.calendar-day.client-view:hover{box-shadow:none;background-color:#fff;transform:none}.day-number{color:var(--text-primary);flex-shrink:0;align-items:center;min-height:18px;margin-bottom:.125rem;font-size:.75rem;font-weight:600;display:flex}.day-events{flex-direction:column;flex:1;gap:3px;display:flex;overflow:hidden}.event-dot{color:#fff;cursor:pointer;border:1px solid #ffffff26;border-radius:4px;align-items:center;gap:3px;min-height:18px;padding:2px 6px;font-size:.625rem;font-weight:500;transition:all .15s;display:flex;overflow:hidden;box-shadow:0 1px 2px #0000001f}.event-dot:hover{transform:translateY(-1px)scale(1.02);box-shadow:0 3px 8px #0003}.event-icon{opacity:.9;flex-shrink:0;width:10px;height:10px}.event-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-weight:500;overflow:hidden}.event-time-badge{background:#fff3;border-radius:3px;flex-shrink:0;padding:1px 4px;font-size:.5rem;font-weight:600}.event-more{color:var(--text-muted);text-align:center;background:#e2e8f066;border-radius:3px;margin-top:1px;padding:1px 3px;font-size:.5625rem;font-weight:500}.food-log-event,.exercise-log-event{font-size:.6875rem}.food-icon,.exercise-icon{flex-shrink:0;font-size:.75rem}.week-view{background:#fff;border-radius:16px;overflow:hidden}.week-header{background:linear-gradient(135deg,var(--accent-primary)0%,var(--accent-secondary)100%);grid-template-columns:70px repeat(7,1fr);display:grid}.week-time-header{color:#fff;text-align:center;text-transform:uppercase;letter-spacing:.05em;border-right:1px solid #ffffff26;padding:1rem .5rem;font-size:.75rem;font-weight:600}.week-day-header{text-align:center;color:#fff;border-right:1px solid #ffffff26;padding:.75rem .5rem;transition:background-color .2s}.week-day-header:last-child{border-right:none}.week-day-header .day-name{text-transform:uppercase;letter-spacing:.05em;color:#fff;margin-bottom:.25rem;font-size:.75rem;font-weight:600}.week-day-header .day-number{opacity:.9;color:#fff;margin:0;font-size:1.25rem;font-weight:300}.week-body{grid-template-columns:70px repeat(7,1fr);max-height:600px;display:grid;overflow-y:auto}.week-time-slots{background:#f8fafccc;border-right:1px solid #e2e8f080}.time-slot{height:60px;color:var(--text-muted);text-align:center;border-bottom:1px solid #e2e8f04d;justify-content:center;align-items:flex-start;padding:.5rem;font-size:.6875rem;font-weight:500;display:flex}.week-day{cursor:pointer;background-color:#fff;border-right:1px solid #e2e8f04d;transition:background-color .2s;position:relative}.week-day:last-child{border-right:none}.week-day:hover{background:#5a7c6508}.week-day.client-view{cursor:default}.week-day.client-view:hover{background:#fff}.week-day-content{height:100%;position:relative}.week-hour-slot{border-bottom:1px solid #e2e8f033;height:60px;position:relative}.week-event{color:#fff;cursor:pointer;z-index:10;border:1px solid #fff3;border-radius:6px;padding:4px 6px;font-size:.6875rem;transition:all .2s;position:absolute;left:2px;right:2px;overflow:hidden;box-shadow:0 2px 4px #00000026}.week-event:hover{z-index:20;transform:translateY(-1px)scale(1.02);box-shadow:0 4px 12px #0003}.week-event .event-time{opacity:.9;margin-bottom:1px;font-size:.5625rem;font-weight:600}.week-event .event-title{font-weight:500;line-height:1.2}.day-view{background:#fff;border-radius:16px;overflow:hidden}.day-view .day-header{background:linear-gradient(135deg,var(--accent-primary)0%,var(--accent-secondary)100%);color:#fff;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.day-view .day-header h3{color:#fff;margin:0;font-size:1.25rem;font-weight:600}.day-content{grid-template-columns:70px 1fr;max-height:600px;display:grid;overflow-y:auto}.day-time-column{background:#f8fafccc;border-right:1px solid #e2e8f080}.day-hour-row{height:60px;color:var(--text-muted);border-bottom:1px solid #e2e8f033;justify-content:center;align-items:flex-start;padding-top:.25rem;font-size:.6875rem;font-weight:500;display:flex}.day-events-column{background:#fff;position:relative}.day-events-timeline{width:100%;min-height:100%;position:relative}.hour-grid-line{cursor:pointer;border-bottom:1px solid #e2e8f033;height:60px;transition:background-color .2s;position:absolute;left:0;right:0}.hour-grid-line:hover{background:#5a7c650d}.day-event-positioned{color:#fff;cursor:pointer;z-index:10;border:1px solid #fff3;border-radius:8px;flex-direction:column;justify-content:flex-start;padding:8px 12px;transition:all .2s;display:flex;position:absolute;overflow:hidden;box-shadow:0 2px 8px #00000026}.day-event-positioned:hover{z-index:20;transform:scale(1.02);box-shadow:0 6px 20px #0003}.day-event-positioned .event-content{flex:1;min-height:0}.day-event-positioned .event-title{text-overflow:ellipsis;white-space:nowrap;color:#fff;margin-bottom:2px;font-size:.875rem;font-weight:600;overflow:hidden}.day-event-positioned .event-time{opacity:.9;font-size:.75rem;font-weight:500}.day-event-positioned .event-description{opacity:.8;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:4px;font-size:.75rem;display:-webkit-box;overflow:hidden}.day-event-positioned .event-actions{gap:4px;margin-top:4px;display:flex}.event-action-btn{color:#fff;cursor:pointer;background:#fff3;border:none;border-radius:4px;padding:3px 6px;font-size:.6875rem;transition:all .2s}.event-action-btn:hover{background:#ffffff4d;transform:scale(1.05)}.day-food-log-positioned,.day-exercise-log-positioned{color:#fff;cursor:pointer;z-index:10;border:1px solid #fff3;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;font-size:.8125rem;transition:all .2s;display:flex;position:absolute;overflow:hidden;box-shadow:0 2px 6px #0000001f}.day-food-log-positioned:hover,.day-exercise-log-positioned:hover{z-index:20;transform:scale(1.02);box-shadow:0 4px 12px #0000002e}.no-events-timeline{text-align:center;color:var(--text-muted);z-index:5;padding:2rem;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.no-events-timeline h4{color:var(--text-secondary);margin:0 0 .5rem;font-size:1.125rem;font-weight:600}.no-events-timeline p{margin:0 0 1rem;font-size:.875rem}.modal-overlay{-webkit-backdrop-filter:blur(4px);z-index:1000;background:#0f172a99;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:16px;width:100%;max-width:32rem;max-height:90vh;animation:.3s ease-out modalSlideUp;overflow-y:auto;box-shadow:0 25px 60px #00000040}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(20px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-header{background:linear-gradient(135deg,#f8fafc 0%,#fff 100%);border-bottom:1px solid #e2e8f080;border-radius:16px 16px 0 0;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.modal-title{color:var(--text-primary);margin:0;font-size:1.125rem;font-weight:600}.modal-close-btn{cursor:pointer;color:var(--text-muted);background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:.5rem;transition:all .2s;display:flex}.modal-close-btn:hover{color:var(--text-primary);background:#e2e8f080}.modal-form{flex-direction:column;gap:1.25rem;padding:1.5rem;display:flex}.form-grid-3{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}@media (max-width:640px){.form-grid-3{grid-template-columns:1fr}}.form-buttons{border-top:1px solid #e2e8f080;justify-content:flex-end;gap:.75rem;margin-top:.5rem;padding-top:1rem;display:flex}.event-details-content{max-height:70vh;padding:1.5rem;overflow-y:auto}.event-details-title{color:var(--text-primary);margin:0 0 1.5rem;font-size:1.25rem;font-weight:700}.event-info-section{margin-bottom:1.5rem}.event-meta-grid{grid-template-columns:1fr;gap:.75rem;margin-bottom:1.5rem;display:grid}@media (min-width:640px){.event-meta-grid{grid-template-columns:repeat(2,1fr)}}.event-meta-item{background:#f8fafccc;border:1px solid #e2e8f080;border-radius:8px;justify-content:space-between;align-items:center;padding:.75rem;display:flex}.event-meta-label{color:var(--text-muted);font-size:.8125rem;font-weight:500}.event-meta-value{color:var(--text-primary);font-size:.875rem;font-weight:600}.event-type-badge{color:#fff;text-transform:uppercase;letter-spacing:.025em;border-radius:20px;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.event-status-badge{text-transform:uppercase;letter-spacing:.025em;border-radius:20px;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.event-status-badge.completed{color:#15803d;background:#22c55e26;border:1px solid #22c55e4d}.event-status-badge.pending{color:#a16207;background:#fbbf2426;border:1px solid #fbbf244d}.event-section{margin-bottom:1.25rem}.event-section-title{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.03em;margin-bottom:.5rem;font-size:.8125rem;font-weight:600}.event-section-content{color:var(--text-primary);font-size:.9375rem;line-height:1.6}.prescription-section{background:linear-gradient(135deg,#f8fafce6 0%,#f1f5f9f2 100%);border:1px solid #e2e8f099;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem}.prescription-title{color:var(--accent-primary);align-items:center;gap:.5rem;margin:0 0 1rem;font-size:1.0625rem;font-weight:700;display:flex}.prescription-content{flex-direction:column;gap:.75rem;display:flex}.prescription-field{border-bottom:1px solid #e2e8f066;grid-template-columns:1fr 2fr;align-items:start;gap:1rem;padding:.5rem 0;display:grid}.prescription-field:last-child{border-bottom:none}.prescription-label{color:var(--text-secondary);font-size:.8125rem;font-weight:500}.prescription-value{color:var(--text-primary);font-size:.875rem;line-height:1.5}.prescription-notes{background:#5a7c6514;border:1px solid #5a7c6533;border-radius:8px;margin-top:.5rem;padding:1rem}.prescription-notes .prescription-label{color:var(--accent-primary);margin-bottom:.5rem;font-weight:600;display:block}.prescription-notes .prescription-value{color:var(--text-primary);line-height:1.6}.loading-section{text-align:center;color:var(--text-muted);padding:2rem}.event-actions-section{border-top:1px solid #e2e8f080;justify-content:center;padding-top:1.5rem;display:flex}.button-icon{width:16px;height:16px;margin-right:4px}.nav-icon{width:18px;height:18px}.close-icon{width:20px;height:20px}@media (max-width:768px){.calendar-container{gap:1rem;padding:1rem}.calendar-header-section{padding:1rem}.calendar-title{font-size:1.25rem}.current-date-title{min-width:auto;font-size:1rem}.calendar-day{height:90px;min-height:90px;padding:.375rem}.day-number{font-size:.75rem}.event-dot{min-height:18px;padding:2px 6px;font-size:.625rem}.event-icon{width:10px;height:10px}.week-header,.week-body{grid-template-columns:60px repeat(7,1fr)}.day-content{grid-template-columns:60px 1fr;max-height:500px}.time-slot,.day-hour-row{font-size:.625rem}.day-view .day-header{text-align:center;flex-direction:column;gap:1rem;padding:1rem}.day-view .day-header h3{font-size:1.125rem}.modal-content{max-width:calc(100% - 1rem);margin:.5rem}}@media (max-width:480px){.calendar-header-left{flex-direction:column;align-items:flex-start;gap:1rem}.view-mode-buttons .btn{min-width:50px;padding:.375rem .75rem;font-size:.75rem}.calendar-day{height:75px;min-height:75px}.event-dot{padding:2px 4px;font-size:.5625rem}.event-time-badge{display:none}}@media (prefers-reduced-motion:reduce){.calendar-day,.event-dot,.week-event,.day-event-positioned,.modal-content{transition:none;animation:none}}@media (prefers-contrast:high){.calendar-day{border:2px solid #000}.calendar-day.today{border:3px solid #000}.event-dot{border:2px solid #000}}.calendar-day:focus-visible,.event-dot:focus-visible,.modal-close-btn:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}
