@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

.plannerContainer {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Custom Calendar Header Styles */
.custom-calendar-header {
    max-width: 1100px;
    margin: 0 auto 20px auto;
    background: white;
    border-radius: 16px;
    padding: 20px 30px;
}

.calendar-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Date Navigation Container - Center: arrows + date display */
.date-navigation-container,
.calendar-date-nav-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 10px;
    width: auto;
    height: 38px;
    justify-content: center;
}

.date-text-container,
.calendar-date-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
    width: auto;
    height: 38px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.date-range-text,
.calendar-main-date {
    width: auto;
    min-height: 18px;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
    margin: 0;
}

.week-indicator-text,
.calendar-week-indicator {
    min-width: 38px;
    height: 16px;
    font-family: Manrope, Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: -0.02em;
    color: #000000;
    opacity: 0.5;
    flex: none;
    order: 1;
    flex-grow: 0;
    margin: 0;
}

/* Arrow buttons */
.arrow-button-left,
.arrow-button-right,
.calendar-nav-btn {
    width: 24px;
    height: 24px;
    background: #5bb0bd;
    border-radius: 50px;
    border: none;
    flex: none;
    flex-grow: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.arrow-button-left,
.calendar-prev-btn {
    order: 0;
}

.arrow-button-right,
.calendar-next-btn {
    order: 2;
}

.arrow-button-left:hover,
.arrow-button-right:hover,
.calendar-nav-btn:hover {
    background: rgba(91, 176, 189, 0.85);
}

.arrow-button-left .arrow-icon,
.arrow-button-right .arrow-icon,
.calendar-nav-btn .arrow-icon,
.calendar-nav-btn svg {
    position: absolute;
    height: 24px;
    width: 14px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    flex-shrink: 0;
}

.arrow-button-left .arrow-icon path,
.arrow-button-right .arrow-icon path,
.calendar-nav-btn svg path {
    stroke: #ffffff;
    stroke-width: 2;
}

/* Right: View toggles */
.calendar-view-toggles {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    height: 32px;
    background: #f2f2f2;
    border-radius: 80px;
}

.view-toggle-btn.toggle-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    height: 32px;
    border-radius: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn.toggle-button .toggle-button-text {
    font-family: Montserrat, Arial, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #000000;
    opacity: 0.6;
}

.view-toggle-btn.toggle-button[data-toggle='day'] {
    width: 50px;
}

.view-toggle-btn.toggle-button[data-toggle='week'] {
    width: 62px;
}

.view-toggle-btn.toggle-button[data-toggle='month'] {
    width: 68px;
}

.view-toggle-btn.toggle-button[data-toggle='year'] {
    width: 53px;
}

.view-toggle-btn.toggle-button.active {
    height: 32px;
    background: #5bb0bd;
    border-radius: 25px;
    padding: 8px 12px;
}

.view-toggle-btn.toggle-button.active .toggle-button-text {
    color: #ffffff;
    opacity: 1;
}

.view-toggle-btn.toggle-button:hover:not(.active) {
    background: rgba(230, 230, 230, 0.5);
}

.toggle-divider {
    width: 12px;
    height: 0;
    opacity: 0.1;
    border: 1px solid #000000;
    transform: rotate(90deg);
    flex-shrink: 0;
}

/* Responsive styles for custom header */
@media (max-width: 768px) {
    .custom-calendar-header {
        padding: 16px 20px;
    }

    .calendar-header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-date-nav-group,
    .date-navigation-container {
        justify-content: center;
        width: auto;
        min-width: 168px;
    }

    .calendar-view-toggles {
        justify-content: center;
        align-self: center;
        width: auto;
        min-width: 200px;
    }

    .view-toggle-btn.toggle-button .toggle-button-text {
        font-size: 12px;
    }

    .calendar-main-date {
        font-size: 14px;
    }

    .calendar-week-indicator {
        font-size: 11px;
    }

    .calendar-nav-btn {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .calendar-main-date {
        font-size: 13px;
    }

    .calendar-view-toggles {
        width: auto;
        min-width: 180px;
    }

    .view-toggle-btn.toggle-button .toggle-button-text {
        font-size: 11px;
    }

    .calendar-nav-btn {
        width: 24px;
        height: 24px;
    }

    .calendar-nav-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Week Navigation Styles - Hide old navigation since we have custom header */
.week-navigation {
    display: none !important;
}

.date-text {
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* Make calendar headers look clickable */
.fc-col-header-cell {
    transition: all 0.2s;
}

.fc-col-header-cell:not(.current-day):hover {
    background-color: #5bb0bd !important;
    color: white !important;
    cursor: pointer;
    opacity: 0.7;
}

.fc-col-header-cell:not(.current-day):hover .fc-day-header-content,
.fc-col-header-cell:not(.current-day):hover .fc-day-header-content * {
    color: white !important;
}

/* Keep current-day styling even on hover */
.fc-col-header-cell.current-day {
    cursor: pointer;
}

.fc-col-header-cell.current-day:hover {
    opacity: 0.9;
}

#calendar {
    max-width: 1100px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    padding: 20px;
}

/* Thinner, modern scrollbar for calendar and its scrollable areas */
#calendar,
#calendar * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#calendar *::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

#calendar *::-webkit-scrollbar-track {
    background: transparent;
}

#calendar *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#calendar *::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

#calendar *::-webkit-scrollbar-corner {
    background: transparent;
}

/* Hide header toolbar completely */
.fc-header-toolbar {
    display: none !important;
}

/* Hide all-day slot area only in day/week (timeGrid) view - do NOT hide in month view */
.fc-timegrid .fc-daygrid-body {
    display: none !important;
}
 
.fc-timegrid .fc-scrollgrid-section-header .fc-daygrid {
    display: none !important;
}
 
/* Hide the week day headers (thead) in day view only - show them in week view */
.fc-timeGridDay-view .fc-col-header {
    display: none !important;
}
 
.fc-timeGridDay-view .fc-scrollgrid-section.fc-scrollgrid-section-header {
    display: none !important;
}

/* Hide the timegrid divider row */
.fc-scrollgrid-section:has(.fc-timegrid-divider) {
    display: none !important;
}

/* Day header styling - cleaner look */
.fc-col-header-cell {
    background-color: transparent;
    border: none !important;
    padding: 12px 8px;
    text-align: center;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.fc-col-header {
    border: none !important;
}

.fc-timegrid-axis {
    border: none !important;
}

.fc-scrollgrid-sync-inner {
    padding: 6px 0;
}

.fc-col-header-cell:first-child {
    border-radius: 0;
}

.fc-col-header-cell:last-child {
    border-radius: 0;
}

.fc-col-header-cell.fc-day-header {
    font-size: 0.9em;
    font-weight: 600;
}

/* Time grid styling - cleaner lines */
.fc-timegrid-slot {
    border-bottom: none !important;
    height: 125px !important;
}

.fc-timegrid-slot.fc-slot-major {
    border-bottom: none !important;
}

.fc-timegrid-slot-label {
    font-size: 14px;
    color: #6b7280;
    padding: 4px 12px;
    font-weight: 500;
    vertical-align: top;
    padding-top: 0;
}

.fc .fc-timegrid-slot-label {
    vertical-align: top;
}

.fc-direction-ltr .fc-timegrid-slot-label-frame {
    margin-top: -10px;
    text-align: left;
}

.fc-timegrid-slots {
    margin-top: 0px;
    margin-bottom: 8px;
    padding-top: 4px;
}

#calendar .fc-timegrid-slots table {
    margin-top: 6px;
}

/* Event styling - Modern card design */
.fc-event {
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    margin: 2px 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.fc-event:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.fc-event-title {
    font-weight: 600;
    font-size: 15px;
}

/* Category label styling for calendar events */
.fc-event-category-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main title styling when category label is present */
.fc-event-title-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    gap: 4px;
}

.fc-event-category-label + .fc-event-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom event colors using the specified color scheme */
.fc-event.consultation-event {
    background: linear-gradient(135deg, #b8d4f1 0%, #a3c8ee 100%);
    color: #2563eb;
    border: none;
}

.fc-event.note-event {
    background-color: #5bb0bd;
    border-color: #5bb0bd;
    color: white;
}

.fc-event.workout-event {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151 !important;
    border: none !important;
}



.fc-event.recipe-event {
    background: rgba(245, 243, 240, 1);
    color: #000000 !important;
    border: none !important;
}

.fc-event.recipe-event.fc-event-selected,
.fc-event.recipe-event:active,
.fc-event.recipe-event:focus,
.fc-event.recipe-event.clicked {
    border: none !important;
}

/* Notes event styling */
.fc-event.notes-event {
    background-color: #FCEBAD;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
}

.fc-event.notes-event.fc-event-selected,
.fc-event.notes-event:active,
.fc-event.notes-event:focus,
.fc-event.notes-event.clicked {
border: none !important;
}

/* Note card - large (>30 min) */
.fc-note-event-card {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.fc-note-header {
    color: rgba(162, 116, 0, 1);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
}

.fc-note-content {
    color: rgba(16, 21, 44, 1);
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

/* Note card - medium (15-30 min) */
.fc-note-card-medium {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    gap: 2px;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.fc-note-medium-label {
    color: rgba(162, 116, 0, 1);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fc-note-medium-title {
    color: rgba(16, 21, 44, 1);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Note card - compact (<=15 min) */
.fc-note-compact-card {
    padding: 8px 12px;
    display: flex;
    align-items: start;
    height: 100%;
    box-sizing: border-box;
    gap: 2px;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.fc-note-compact-title {
    color: rgba(0, 0, 0, 1);
    font-size: 10px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide time text in workout, recipe, and notes events */
.fc-event.workout-event .fc-event-time,
.fc-event.recipe-event .fc-event-time,
.fc-event.notes-event .fc-event-time {
    display: none !important;
}

/* Allow events to appear side by side in the same time slot */
.fc-timegrid-event-harness {
    margin-right: 2px !important;
}

.fc-timegrid-event-harness:has(.recipe-event),
.fc-timegrid-event-harness:has(.workout-event),
.fc-timegrid-event-harness:has(.notes-event) {
    width: 300px !important;
}

/* Ensure workout, recipe, and notes events have proper title styling */
.fc-event.workout-event .fc-event-title,
.fc-event.recipe-event .fc-event-title,
.fc-event.notes-event .fc-event-title {
    font-weight: 300;
    padding: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    font-size: 14px;
    height: 100%;
}

/* Day calendar event title styling - not centered */
#dayCalendar .fc-event.workout-event .fc-event-title,
#dayCalendar .fc-event.recipe-event .fc-event-title,
#dayCalendar .fc-event.notes-event .fc-event-title {
    text-align: left;
    justify-content: flex-start;
    height: auto;
}

/* Day view specific styling for workout and recipe events */
#dayCalendar .fc-event.workout-event {
    background-color: #eceee3 !important;
    color: #667558 !important;
    border: none !important;
}



#dayCalendar .fc-event.recipe-event {
    background-color: rgba(245, 243, 240, 1) !important;
    color: #000000 !important;
    border: none !important;
}

#dayCalendar .fc-event.recipe-event.fc-event-selected,
#dayCalendar .fc-event.recipe-event:active,
#dayCalendar .fc-event.recipe-event:focus,
#dayCalendar .fc-event.recipe-event.clicked {
    border: none !important;
}

#dayCalendar .fc-event.notes-event {
    background-color: #FCEBAD !important;
    border: none !important;
    border-radius: 8px;
}

#dayCalendar .fc-event.notes-event.fc-event-selected,
#dayCalendar .fc-event.notes-event:active,
#dayCalendar .fc-event.notes-event:focus,
#dayCalendar .fc-event.notes-event.clicked {
    border: none !important;
}

#dayCalendar .fc-event.workout-event .fc-event-time,
#dayCalendar .fc-event.recipe-event .fc-event-time,
#dayCalendar .fc-event.notes-event .fc-event-time {
    display: none !important;
}

/* Recipe card layout inside calendar events (main calendar + day calendar) */
#calendar .fc-event.recipe-event .fc-recipe-event-card,
#dayCalendar .fc-event.recipe-event .fc-recipe-event-card {
    display: flex;
    width: 300px;
    min-width: 300px;
    height: 100%;
    min-height: 0;
}

#calendar .fc-event.recipe-event .fc-recipe-content,
#dayCalendar .fc-event.recipe-event .fc-recipe-content {
    border-radius: 8px;
    background-color: #f5f3f0;
    display: flex;
    width: 300px;
    min-width: 300px;
    min-height: 124px;
    padding-right: 9px;
    align-items: stretch;
    gap: 10px;
    overflow: hidden;
    height: 100%;
    flex: 1;
}

#calendar .fc-event.recipe-event .fc-recipe-image,
#dayCalendar .fc-event.recipe-event .fc-recipe-image {
    width: 121px;
    min-width: 121px;
    height: 124px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
    display: block;
}

#calendar .fc-event.recipe-event .fc-recipe-details,
#dayCalendar .fc-event.recipe-event .fc-recipe-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1 1 0;
    height: 124px;
    min-width: 0;
    max-width: calc(300px - 121px - 10px - 9px);
    padding: 12px 12px 12px 0;
    gap: 2px;
}

#calendar .fc-event.recipe-event .fc-recipe-info,
#dayCalendar .fc-event.recipe-event .fc-recipe-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#calendar .fc-event.recipe-event .fc-recipe-label,
#dayCalendar .fc-event.recipe-event .fc-recipe-label {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    display: block;
    margin: 0;
}

#calendar .fc-event.recipe-event .fc-recipe-title,
#dayCalendar .fc-event.recipe-event .fc-recipe-title {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-transform: capitalize;
    color: #10152c;
    margin: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

#calendar .fc-event.recipe-event .fc-portion-info,
#dayCalendar .fc-event.recipe-event .fc-portion-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

#calendar .fc-event.recipe-event .fc-portion-text,
#dayCalendar .fc-event.recipe-event .fc-portion-text {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    text-transform: capitalize;
    color: #000000;
    margin: 0;
}

#calendar .fc-event.recipe-event .fc-portion-icon,
#dayCalendar .fc-event.recipe-event .fc-portion-icon {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    color: #000000;
}

#calendar .fc-event.recipe-event .fc-event-main,
#calendar .fc-event.recipe-event .fc-event-main-frame,
#dayCalendar .fc-event.recipe-event .fc-event-main,
#dayCalendar .fc-event.recipe-event .fc-event-main-frame {
    overflow: hidden;
    height: 100%;
    border-radius: 8px;
}

/* ===== RECIPE DURATION TIERS ===== */

/* Compact recipe card (≤15min) - title only */
#calendar .fc-event.recipe-event .fc-recipe-compact-card,
#dayCalendar .fc-event.recipe-event .fc-recipe-compact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 2px;
    background: #F5F3F0;
    border-radius: 8px;
    overflow: hidden;
}

#calendar .fc-event.recipe-event .fc-recipe-compact-title,
#dayCalendar .fc-event.recipe-event .fc-recipe-compact-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    align-self: stretch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Medium recipe card (30min) - label + title, no image */
#calendar .fc-event.recipe-event .fc-recipe-card-medium,
#dayCalendar .fc-event.recipe-event .fc-recipe-card-medium {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 2px;
    background: #F5F3F0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

#calendar .fc-event.recipe-event .fc-recipe-medium-label,
#dayCalendar .fc-event.recipe-event .fc-recipe-medium-label {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    margin: 0;
}

#calendar .fc-event.recipe-event .fc-recipe-medium-title,
#dayCalendar .fc-event.recipe-event .fc-recipe-medium-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    text-transform: capitalize;
    color: #10152c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Large recipe card (45min) - image + label + title, no portion */
#calendar .fc-event.recipe-event .fc-recipe-card-large .fc-recipe-content,
#dayCalendar .fc-event.recipe-event .fc-recipe-card-large .fc-recipe-content {
    min-height: auto;
}

#calendar .fc-event.recipe-event .fc-recipe-card-large .fc-recipe-image,
#dayCalendar .fc-event.recipe-event .fc-recipe-card-large .fc-recipe-image {
    height: 100%;
    max-height: 90px;
}

/* ===== WORKOUT DURATION TIERS ===== */

/* Compact workout card (≤15min) - title only */
#calendar .fc-event.workout-event .fc-workout-compact-card,
#dayCalendar .fc-event.workout-event .fc-workout-compact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
    gap: 2px;
    background: #EDEEE3;
    border-radius: 8px;
    overflow: hidden;
}

#calendar .fc-event.workout-event .fc-workout-compact-title,
#dayCalendar .fc-event.workout-event .fc-workout-compact-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    align-self: stretch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Medium workout card (30min) - label + title, no image */
#calendar .fc-event.workout-event .fc-workout-card-medium,
#dayCalendar .fc-event.workout-event .fc-workout-card-medium {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 2px;
    background: #EDEEE3;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

#calendar .fc-event.workout-event .fc-workout-medium-label,
#dayCalendar .fc-event.workout-event .fc-workout-medium-label {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    margin: 0;
}

#calendar .fc-event.workout-event .fc-workout-medium-title,
#dayCalendar .fc-event.workout-event .fc-workout-medium-title {
    font-family: 'Montserrat', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
    text-transform: capitalize;
    color: #10152c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Large workout card (45min) - image + label + title, no duration */
#calendar .fc-event.workout-event .fc-workout-card-large .fc-workout-content,
#dayCalendar .fc-event.workout-event .fc-workout-card-large .fc-workout-content {
    min-height: auto;
}

#calendar .fc-event.workout-event .fc-workout-card-large .fc-workout-image,
#dayCalendar .fc-event.workout-event .fc-workout-card-large .fc-workout-image {
    height: 100%;
    max-height: 90px;
}

/* Workout card layout inside calendar events (same pattern as recipe card) */
#calendar .fc-event.workout-event .fc-workout-event-card,
#dayCalendar .fc-event.workout-event .fc-workout-event-card {
    display: flex;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    height: 100%;
    min-height: 0;
}

#calendar .fc-event.workout-event .fc-workout-content,
#dayCalendar .fc-event.workout-event .fc-workout-content {
    border-radius: 8px;
    background-color: rgba(236, 238, 227, 1);
    display: flex;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    min-height: 124px;
    padding-right: 9px;
    align-items: stretch;
    gap: 10px;
    overflow: hidden;
    height: 100%;
    flex: 1;
}

#calendar .fc-event.workout-event .fc-workout-image,
#dayCalendar .fc-event.workout-event .fc-workout-image {
    width: 124px;
    min-width: 124px;
    height: 124px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
    display: block;
}

#calendar .fc-event.workout-event .fc-workout-details,
#dayCalendar .fc-event.workout-event .fc-workout-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
    min-width: 0;
    padding: 12px 12px 12px 0;
    gap: 8px;
}

#calendar .fc-event.workout-event .fc-workout-info,
#dayCalendar .fc-event.workout-event .fc-workout-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#calendar .fc-event.workout-event .fc-workout-label,
#dayCalendar .fc-event.workout-event .fc-workout-label {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    display: block;
    margin: 0;
}

#calendar .fc-event.workout-event .fc-workout-title,
#dayCalendar .fc-event.workout-event .fc-workout-title {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-transform: capitalize;
    color: #10152c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

#calendar .fc-event.workout-event .fc-workout-duration-section,
#dayCalendar .fc-event.workout-event .fc-workout-duration-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

#calendar .fc-event.workout-event .fc-workout-clock-icon,
#dayCalendar .fc-event.workout-event .fc-workout-clock-icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    color: #000000;
}

#calendar .fc-event.workout-event .fc-workout-duration,
#dayCalendar .fc-event.workout-event .fc-workout-duration {
    font-family:
        Montserrat,
        -apple-system,
        sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    margin: 0;
}

#calendar .fc-event.workout-event .fc-event-main,
#calendar .fc-event.workout-event .fc-event-main-frame,
#dayCalendar .fc-event.workout-event .fc-event-main,
#dayCalendar .fc-event.workout-event .fc-event-main-frame {
    overflow: hidden;
    height: 100%;
    border-radius: 8px;
}

/* Grid styling - Cleaner look */
/* Week view compact event pills */
.fc-timeGridWeek-view .fc-week-pill {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    width: 100%;
    height: 33px;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
}

.fc-timeGridWeek-view .fc-week-pill-title {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Week view event — override FullCalendar's inline width, fix height to 33px (compact pill) */
.fc-timeGridWeek-view .fc-timegrid-event-harness {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    height: 33px !important;
    bottom: auto !important;
    overflow: hidden !important;
}

.fc-timeGridWeek-view .fc-event {
    height: 33px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Overlap group: allow the first harness's fc-event to grow and show all stacked pills */
.fc-timeGridWeek-view .fc-timegrid-event-harness.fc-overlap-group .fc-event {
    height: auto !important;
    max-height: 100%;
    overflow: hidden !important;
}

.fc-timeGridWeek-view .fc-event-main {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

/* Stacked pill container rendered inside an overlap group harness */
.fc-week-overlap-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Re-enable pointer events so per-pill mouseenter/click listeners fire */
.fc-week-overlap-group .fc-week-pill {
    pointer-events: auto;
    cursor: pointer;
}

.fc-week-overlap-group .fc-week-pill--more {
    cursor: pointer;
}

/* "+N More" overflow indicator pill */
.fc-week-pill--more {
    background: #E5E5E4 !important;
    cursor: default;
}

.fc-week-pill--more .fc-week-pill-title {
    color: #555555;
}

/* ── Week-view hover tooltip ──────────────────────────────────────────────── */
#weekEventHoverTooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    display: none;
    width: 300px;
    min-width: 300px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
    border-radius: 8px;
    overflow: visible;
}

#weekEventHoverTooltip.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Invisible bridge between pill and card — keeps tooltip open when cursor crosses the gap */
#weekEventHoverTooltip .week-tooltip-bridge {
    position: absolute;
    background: transparent;
    cursor: default;
}

#weekEventHoverTooltip .week-tooltip-content {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* The recipe / workout / note card HTML rendered inside the tooltip reuses the
   same class names as the day calendar — scope them to the tooltip so the
   existing day-calendar selectors don't fight us. */
#weekEventHoverTooltip .fc-recipe-event-card,
#weekEventHoverTooltip .fc-recipe-content {
    width: 300px;
    min-width: 300px;
    min-height: 124px;
    border-radius: 8px;
    background-color: #f5f3f0;
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding-right: 9px;
    overflow: hidden;
    height: 124px;
}

#weekEventHoverTooltip .fc-recipe-image {
    width: 121px;
    min-width: 121px;
    height: 124px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
    display: block;
}

#weekEventHoverTooltip .fc-recipe-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1 1 0;
    height: 124px;
    min-width: 0;
    padding: 12px 12px 12px 0;
    gap: 2px;
}

#weekEventHoverTooltip .fc-recipe-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

#weekEventHoverTooltip .fc-recipe-label {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    display: block;
}

#weekEventHoverTooltip .fc-recipe-title {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    text-transform: capitalize;
    color: #10152c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

#weekEventHoverTooltip .fc-portion-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

#weekEventHoverTooltip .fc-portion-text {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
}

#weekEventHoverTooltip .fc-workout-event-card {
    width: 300px;
    min-width: 300px;
    height: 124px;
    border-radius: 8px;
    overflow: hidden;
}

#weekEventHoverTooltip .fc-workout-content {
    background-color: #eceee3;
    border-radius: 8px;
    display: flex;
    width: 300px;
    min-width: 300px;
    height: 124px;
    align-items: stretch;
    gap: 10px;
    padding-right: 9px;
    overflow: hidden;
}

#weekEventHoverTooltip .fc-workout-image {
    width: 121px;
    min-width: 121px;
    height: 124px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
    display: block;
}

#weekEventHoverTooltip .fc-workout-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1 1 0;
    height: 124px;
    min-width: 0;
    padding: 12px 12px 12px 0;
    gap: 2px;
}

#weekEventHoverTooltip .fc-workout-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

#weekEventHoverTooltip .fc-workout-label {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #667558;
    display: block;
}

#weekEventHoverTooltip .fc-workout-title {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #10152c;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

#weekEventHoverTooltip .fc-workout-duration-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

#weekEventHoverTooltip .fc-workout-clock-icon {
    flex-shrink: 0;
    color: #667558;
}

#weekEventHoverTooltip .fc-workout-duration {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #667558;
}

#weekEventHoverTooltip .fc-note-event-card {
    background: #FCEBAD;
    border-radius: 8px;
    padding: 14px 16px;
    width: 300px;
    min-width: 300px;
    min-height: 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#weekEventHoverTooltip .fc-note-header {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8B6914;
}

#weekEventHoverTooltip .fc-note-content {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #10152c;
    margin: 0;
    word-break: break-word;
}

#weekEventHoverTooltip .fc-note-hover-desc {
    font-family: Montserrat, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 15px;
    color: #5a4a1e;
    margin: 0;
    opacity: 0.8;
    word-break: break-word;
}

/* "+N More" hover — full cards stacked vertically, scroll when more than 3 */
#weekEventHoverTooltip .week-hover-more-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

#weekEventHoverTooltip .week-hover-more-stack::-webkit-scrollbar {
    width: 6px;
}

#weekEventHoverTooltip .week-hover-more-stack::-webkit-scrollbar-track {
    background: transparent;
}

#weekEventHoverTooltip .week-hover-more-stack::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
}

#weekEventHoverTooltip .week-hover-more-stack::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

#weekEventHoverTooltip .week-tooltip-more-card {
    cursor: pointer;
}

/* Column borders — week view only */
.fc-timeGridWeek-view .fc-timegrid-col {
    border-right: 1px solid #f3f4f6 !important;
}

.fc-timeGridWeek-view .fc-timegrid-col:first-child {
    border-left: 1px solid #f3f4f6 !important;
}

.fc-timeGridWeek-view .fc-timegrid-col:last-child {
    border-right: none !important;
}

.fc-timegrid-slot {
    border-right: 1px solid #f3f4f6 !important;
    height: 125px !important;
    border-bottom: none !important;
}

.fc-timegrid-slot:last-child {
    border-right: none !important;
}

#calendar .fc-timegrid-body {
    border-top: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Day view: horizontal scroll when many items in a slot overflow */
#calendar .fc-timeGridDay-view .fc-timegrid-body {
    overflow-x: auto;
}

/* Give the first slot its own top border (same as every other slot) so 12:00 AM lines up correctly */
.fc-timegrid-slots tbody tr:first-child td.fc-timegrid-slot-lane {
    border-top: 1px solid #e0e0e0 !important;
}

/* Remove duplicate top border from event column (FullCalendar default) – firstLane already provides it */
.fc-timegrid-cols .fc-timegrid-col:not(.fc-timegrid-axis) {
    border-top: none !important;
}

/* 12:00 AM only: align line next to time */
.fc-timegrid-slots tbody tr:first-child .fc-timegrid-slot-label-frame {
    margin-top: -10px !important;
}
.fc-timegrid-slots tbody tr:first-child .fc-timegrid-slot-label-cushion {
    margin-top: -25px;
}

/* Remove default today highlighting */
.fc-day-today {
    background-color: transparent !important;
}

.fc-col-header-cell.fc-day-today {
    background-color: transparent !important;
}

/* Current day highlight — bottom border only; circle handled by .fc-day-today */
.fc-col-header-cell.current-day {
    background-color: transparent !important;
    border-bottom: 3px solid #5bb0bd !important;
    color: inherit !important;
}

/* Custom day header content — Figma: row, center, gap 5px */
.fc-col-header-cell .fc-day-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px;
    height: 42px;
    box-sizing: border-box;
}

/* Weekday abbreviation */
.fc-day-header-weekday {
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
    letter-spacing: -0.02em;
    color: #000000;
    width: 30px;
    height: 16px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Day number circle */
.fc-day-header-number {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Day number text */
.fc-day-header-number span {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 13px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #868686;
}

/* Today — black circle, white number */
.fc-day-today .fc-day-header-number {

}

.fc-day-today .fc-day-header-number span {

}

/* Grid lines - Cleaner borders (single source of truth to avoid vertical seam) */
/* Override FullCalendar theme so we control all borders – prevents cascade chaos */
.fc-theme-standard .fc-scrollgrid {
    border: none !important;
}

.fc table {
    border-collapse: separate;
    border-spacing: 0px;
}

.fc .fc-scrollgrid {
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    overflow: hidden;
}

/* Kill internal seam between time column and lanes – day view only (main calendar has .fc-timeGridDay-view when Day is selected) */
.fc-timeGridDay-view .fc-theme-standard .fc-scrollgrid-section > td {
    border: none !important;
}

.fc-timeGridDay-view .fc-scrollgrid td {
    border-right: none !important;
    border-left: none !important;
}

.fc-scrollgrid-section > * {
    border-color: #f3f4f6;
}

/* Now indicator - Red line with rounded label */
.fc-timegrid-now-indicator-line {
    border-color: #ef4444;
    border-width: 2px;
    position: relative;
}

/* Day view: allow the now indicator line to overflow its column container when
   the calendar expands horizontally to accommodate overlapping events */
.fc-timeGridDay-view .fc-timegrid-now-indicator-container {
    overflow: visible !important;
}

/* Week view: stretch the now indicator line across all day columns (Mon–Sun) */
.fc-timeGridWeek-view .fc-timegrid-now-indicator-container {
    overflow: visible !important;
}

.fc-timeGridWeek-view .fc-timegrid-now-indicator-line {
    width: calc(700% + 6px) !important;
}

/* Shift the line based on which day column it's in (1st col = time axis, 2nd = Mon, etc.) */
.fc-timeGridWeek-view .fc-timegrid-col:nth-child(2) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 0%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(3) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 14.29%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(4) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 28.57%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(5) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 42.86%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(6) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 57.14%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(7) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 71.43%;
}

.fc-timeGridWeek-view .fc-timegrid-col:nth-child(8) .fc-timegrid-now-indicator-line {
    --fc-now-indicator-shift: 85.71%;
}

.fc-timeGridWeek-view .fc-timegrid-col .fc-timegrid-now-indicator-line {
    transform: translateX(calc(-1 * var(--fc-now-indicator-shift, 0%)));
}

/* Now indicator arrow - styled as a time badge pill in the time axis area */
.fc .fc-timegrid-now-indicator-arrow {
    border: none !important;
    background: #ef4444;
    color: #FFF;
    padding: 4px 8px;
    border-radius: 20px;
    font-family: Arial;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-align: right;
    white-space: nowrap;
    z-index: 10;
    margin-top: 0px;
    transform: translateY(-50%);
    width: auto;
    left: 4px !important;
    right: auto !important;
    margin-left: -2px;
}

.fc-timegrid-now-indicator-arrow::before {
    content: attr(data-time);
}

/* Selection styling for main calendar */
#calendar .fc-highlight {
    background-color: white !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Selection mirror styling for main calendar */
#calendar .fc-timegrid-slot.fc-highlight {
    background-color: transparent !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Selection background area in main calendar */
#calendar .fc-timegrid-bg .fc-highlight {
    background-color: white !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Active selection (drag) styling for main calendar */
#calendar .fc-timegrid-col .fc-highlight {
    background-color: white !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Selection mirror during drag for main calendar */
#calendar .fc-timegrid-slot.fc-select-mirror {
    background-color: white !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Wrapper constrains mirror to actual card size during drag */
.fc-event-mirror-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.fc-event-mirror-wrapper .fc-event-mirror {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
}

.fc-event-mirror-wrapper .fc-event-mirror .fc-event-main,
.fc-event-mirror-wrapper .fc-event-mirror .fc-event-main-frame {
    overflow: hidden !important;
    min-height: 0 !important;
}

/* Event mirror (appears while dragging/selecting) - match card size 300px */
.fc-event-mirror {
    display: block !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
    font-size: 14px !important;
}

.fc-event-mirror .fc-recipe-event-card,
.fc-event-mirror .fc-workout-event-card,
.fc-event-mirror .fc-event-main-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Mirror inner content - type-specific to match recipe/workout/note cards */

/* Recipe mirror - image 121px, content constrained */
.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-event-card {
    display: flex !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-content {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    flex: 1 1 0 !important;
    border-radius: 8px !important;
    background-color: #f5f3f0 !important;
    gap: 10px !important;
    padding-right: 9px !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-image {
    width: 121px !important;
    min-width: 121px !important;
    max-width: 121px !important;
    height: 100% !important;
    max-height: 124px !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0 !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-details {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px 12px 12px 0 !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    font-size: 14px !important;
    line-height: 17px !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-label {
    font-size: 10px !important;
    line-height: 12px !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-portion-text {
    font-size: 10px !important;
    line-height: 12px !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-compact-card,
.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-card-medium {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-compact-title,
.fc-event-mirror-wrapper.mirror-recipe .fc-event-mirror .fc-recipe-medium-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Workout mirror - image 124px, content constrained */
.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-event-card {
    display: flex !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-content {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    flex: 1 1 0 !important;
    border-radius: 8px !important;
    background-color: rgba(236, 238, 227, 1) !important;
    gap: 10px !important;
    padding-right: 9px !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-image {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    height: 100% !important;
    max-height: 124px !important;
    object-fit: cover !important;
    object-position: center !important;
    flex-shrink: 0 !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-details {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 12px 12px 0 !important;
    gap: 8px !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    font-size: 14px !important;
    line-height: 17px !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-label {
    font-size: 10px !important;
    line-height: 12px !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-duration {
    font-size: 10px !important;
    line-height: 12px !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-compact-card,
.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-card-medium {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-compact-title,
.fc-event-mirror-wrapper.mirror-workout .fc-event-mirror .fc-workout-medium-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Note mirror - no image, header + content */
.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-event-card,
.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-card-medium,
.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-compact-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 8px 12px !important;
    gap: 2px !important;
}

.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-content {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
}

.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-medium-title,
.fc-event-mirror-wrapper.mirror-note .fc-event-mirror .fc-note-compact-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #calendar {
        max-width: 100%;
        font-size: 0.85em;
    }

    .fc-col-header-cell {
        padding: 3px 2px;
        font-size: 0.75em;
    }

    .fc-col-header-cell .fc-day-header-weekday {
        font-size: 10px;
    }

    .fc-col-header-cell .fc-day-header-number {
        width: 24px;
        height: 24px;
    }

    .fc-col-header-cell .fc-day-header-number span {
        font-size: 10px;
    }

    .fc-event {
        font-size: 0.7em;
        padding: 1px 3px;
    }

    .fc-event-category-label {
        font-size: 8px;
    }

    .fc-event-category-label + .fc-event-title {
        font-size: 10px;
    }

    .fc-event.workout-event .fc-event-title,
    .fc-event.recipe-event .fc-event-title,
    .fc-event.notes-event .fc-event-title {
        font-size: 11px;
        padding: 2px;
    }

    .week-navigation {
        padding: 0 5px;
        margin-bottom: 10px;
    }

    .week-navigation .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
        padding: 4px 8px;
    }

    .week-range {
        font-size: 13px;
        margin: 0 8px;
    }

    .date-text {
        font-size: 13px;
    }

    .fc-timegrid-slot-label-cushion {
        font-size: 10px !important;
    }

    .plannerContainer {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Responsive for smaller mobile screens */
@media (max-width: 480px) {
    #calendar {
        font-size: 0.75em;
    }

    .fc-col-header-cell {
        padding: 2px 1px;
    }

    .fc-col-header-cell .fc-day-header-weekday {
        font-size: 9px;
    }

    .fc-col-header-cell .fc-day-header-number {
        width: 20px;
        height: 20px;
    }

    .fc-col-header-cell .fc-day-header-number span {
        font-size: 9px;
    }

    .fc-event {
        font-size: 0.65em;
        padding: 1px 2px;
    }

    .fc-event-category-label {
        font-size: 7px;
    }

    .fc-event-category-label + .fc-event-title {
        font-size: 9px;
    }

    .fc-event.workout-event .fc-event-title,
    .fc-event.recipe-event .fc-event-title,
    .fc-event.notes-event .fc-event-title {
        font-size: 10px;
        padding: 1px;
    }

    .week-navigation .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
        padding: 4px;
    }

    .week-range {
        font-size: 12px;
        margin: 0 5px;
    }

    .date-text {
        font-size: 12px;
    }

    .fc-timegrid-slot {
        height: 125px;
    }

    .fc-timegrid-slot-label-cushion {
        font-size: 9px !important;
    }

    .plannerContainer {
        margin-top: 5px;
        margin-bottom: 5px;
    }
}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > table {
    border-radius: 10px;
}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > table > tbody > tr:nth-child(2) > td {
    display: none;
}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > table > tbody > tr:nth-child(1) {
    display: none;
}

#calendar > div.fc-view-harness.fc-view-harness-passive > div > table > thead > tr > th {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.fc .fc-timegrid-slot-minor {
    border-top: none;
    background-image: none;
    background-size: 0;
    background-repeat: no-repeat;
    background-position: 0 0;
    height: 0;
    margin-top: 0;
    display: none;
}

.fc-timeGridDay-view .fc-scrollgrid tbody tr td:first-child,
.fc-timeGridDay-view .fc-scrollgrid thead tr th:first-child {
    border: none !important;
}

/* Apply ONLY in Week view */
.fc-timeGridWeek-view .fc-scrollgrid tbody tr td:first-child,
.fc-timeGridWeek-view .fc-scrollgrid thead tr th:first-child {
    border: none !important;
}

.fc-scrollgrid tbody tr td:first-child.fc-timegrid-slot-minor {
    background: none !important;
    background-image: none !important;
}

.fc-timegrid-slot-label-cushion.fc-scrollgrid-shrink-cushion {
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 12px !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    text-align: right !important;
}

/* Multiple selectors to target time labels */
.fc-timegrid-slot-label-cushion.fc-scrollgrid-shrink-cushion,
.fc-timegrid-slot-label-cushion,
.fc-scrollgrid-shrink-cushion {
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 12px !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    text-align: right !important;
    color: #000;
}


thead tr th:nth-child(2) {
    border-radius: 10px 0px 0px 0px;
}

/* Day View Inline Styles */
.day-view-inline {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 600px;
}

.day-view-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 500px;
}

.day-view-left {
    flex: 3;
    padding: 20px;
    overflow-y: auto;
    border-radius: 12px;
    margin: 10px;
    border: 2px solid #e0e0e0;
    height: 780px;
}

.day-view-right {
    flex: 2;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    margin: 10px;
    border: 2px solid #e0e0e0;
    height: 780px;
}

/* When recipe-edit-screen or workout-edit-screen is present, prevent day-view-right from scrolling */
.day-view-right:has(.recipe-edit-screen),
.day-view-right.has-recipe-edit,
.day-view-right:has(.workout-edit-screen),
.day-view-right.has-workout-edit {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Day Calendar Styles */
.day-calendar-container {
    height: calc(100% - 120px);
    margin-top: 20px;
    display: flex;
    gap: 10px;
    overflow-y: auto;
}

#dayCalendar {
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hide the weekday header row in day view */
#dayCalendar .fc-col-header-cell {
    display: none !important;
}

#dayCalendar .fc-timegrid-body {
    margin-top: 0 !important;
}

/* Hide FullCalendar's built-in time labels - using external labels instead */
#dayCalendar .fc-timegrid-slot-label-cushion {
    display: none !important;
}

#dayCalendar .fc-timegrid-slot-label {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

#dayCalendar .fc-timegrid-axis {
    width: 0 !important;
    min-width: 0 !important;
}

/* Set slot height and spacing */
#dayCalendar .fc-timegrid-slot {
    height: 40px !important;
    margin-bottom: 0px !important;
    border-bottom: 1px dashed #e0e0e0 !important;
}

/* Alternative approach: Target every 4th row in the table structure */
#dayCalendar .fc-timegrid-slots table tbody tr:nth-child(4n) .fc-timegrid-slot {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Selected time slot styling */
#dayCalendar .fc-timegrid-slot.fc-highlight {
    background-color: transparent !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Selection mirror styling */
#dayCalendar .fc-timegrid-slot.fc-select-mirror {
    background-color: transparent !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Highlighted selection area */
#dayCalendar .fc-highlight {
    background-color: transparent !important;
    border: 2px dashed #5bb0bd !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
}

/* Make event background transparent */
#dayCalendar .fc-v-event {
    background-color: transparent !important;
    border: none !important;
    display: block;
}

#dayCalendar.fc-theme-standard td,
#dayCalendar.fc-theme-standard th {
    border: none;
}

/* Empty calendar slot hover effect - "Add to Calendar" overlay */
#dayCalendar .fc-timegrid-slot,
#calendar .fc-timegrid-slot {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

#dayCalendar .fc-timegrid-slot.fc-timegrid-slot-label,
#calendar .fc-timegrid-slot.fc-timegrid-slot-label {
    cursor: default;
}

/* Slot needs positioning context so overlay is placed relative to it (week view: one slot per row spans all columns) */
.fc-timegrid-slot-lane.has-quarter-overlay {
    position: relative;
    overflow: visible;
    z-index: 10; /* stack above fc-timegrid-col-events so overlay is visible over recipe/workout cards in day view */
}

/* When overlay is active, raise fc-timegrid-slots above fc-timegrid-cols (events layer) so overlay is visible over recipe/workout cards */
.fc-timegrid-slots.has-quarter-overlay-active {
    position: relative;
    z-index: 20;
}

/* Quarter-hour overlay block - "Click to Add New Item" snaps to 15-min segments */
.slot-quarter-overlay {
    position: absolute;
    left: 8px;
    right: 8px;
    background: rgba(183, 220, 255, 0.4);
    border-radius: 10px;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centered text label inside overlay — vertically and horizontally centered in the blue block */
.slot-quarter-overlay-text {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    color: rgba(0, 0, 0, 1);
    pointer-events: none;
    z-index: 2;
}

/* When text is placed in slot (split overlay case), position at percentage and center with transform */
.slot-quarter-overlay-text.slot-quarter-overlay-text--in-slot {
    position: absolute;
    left: 8px;
    right: 8px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
}

/* Temporary quarter-time label shown on the left time axis during hover */
.fc-quarter-time-label {
    position: absolute;
    left: 0;
    right: 0;
    text-align: left;
    padding: 0px 4px;
    width: max-content;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    color: rgba(0, 0, 0, 1);
    pointer-events: none;
    z-index: 2;
    transform: translateY(-50%);
}

/* Highlight the corresponding 15-min label on the left side */
.day-calendar-label.quarter-highlight {
    color: #5BB0BD !important;
    font-weight: 600 !important;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

/* Ensure overlay doesn't block events */
#dayCalendar .fc-timegrid-event-harness,
#calendar .fc-timegrid-event-harness {
    pointer-events: auto;
}

/* Add Item Panel Styles */
.add-item-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    margin-bottom: 20px;
}

.add-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.add-item-header h3 {
    margin: 0;
    font-family: Arial;
    font-weight: 600;
    font-style: Bold;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #333;
}

.add-item-buttons {
    display: flex;
    gap: 10px;
}

.btn-add,
.btn-discard {
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add {
    height: 44px;
    background-color: #5bb0bd;
    color: white;
    border-radius: 8px;
    padding: 0 12px;
    opacity: 0.3;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-add:not(:disabled) {
    opacity: 1;
}

.btn-add:not(:disabled):hover {
    opacity: 0.9;
}

.btn-discard {
    font-family: Arial;
    font-weight: 700;
    font-style: Bold;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -1%;
    background: white;
    color: #ff555d;
    border: 1px solid #ff555d;
    border-radius: 6px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-discard:hover {
    background-color: #ff555d;
    color: white;
}

/* Goals Planner V2 - Close Button */
.btn-close-goals {
    font-family: Arial;
    font-weight: 700;
    font-style: Bold;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: -1%;
    background: white;
    color: rgba(255, 85, 93, 1);
    border: 2px solid rgba(255, 85, 93, 1);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-goals:hover {
    background-color: rgba(255, 85, 93, 1);
    color: white;
}

/* Goals Panel - Unique class names to avoid conflicts with main planner */
.goals-tab-btn {
    padding: 12px 20px 20px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #b3b3b3;
    position: relative;
    transition: all 0.2s;
}

.goals-tab-btn.active {
    color: #000000;
    font-weight: 600;
}

.goals-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 16px);
    height: 5px;
    background-color: #10152c;
    border-radius: 30px;
    opacity: 1;
    border-radius: 30px 30px 0px 0px;
}

.goals-tab-btn:hover {
    color: #000000;
}

.goals-recipe-tab {
    padding: 8px 16px;
    border: 1px solid #deeff3;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #10152c;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 15px;
    flex-shrink: 0;
    white-space: nowrap;
}

.goals-recipe-tab.active {
    background: #10152c;
    color: white;
}

.goals-recipe-tab:hover {
    background: #deeff3;
    color: #000000;
}

/* Date Time Picker Styles */
.datetime-picker {
    margin-bottom: 20px;
}

.datetime-row {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.datetime-row::-webkit-scrollbar {
    display: none;
}

.time-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.time-display {
    background-color: #f0f5ff;
    color: #000000;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
    font-size: 14px;
    flex-shrink: 0;
}

.time-separator {
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}

.selected-date-display {
    background-color: #f0f5ff;
    color: #000000;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Horizontal Date Picker Styles */
.horizontal-date-picker {
    padding: 15px 50px;
    margin-bottom: 15px;
    position: relative;
}

/* Scroll indicator gradient for mobile */
@media (max-width: 768px) {
    .horizontal-date-picker::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 80%;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .horizontal-date-picker.has-scroll::after {
        opacity: 1;
    }
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 24px;
    color: #4b5d3a;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.nav-arrow:hover {
    background-color: #f0f0f0;
    color: #2d3a2a;
}

.date-display {
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}

.today-text {
    color: #a6c099;
    font-weight: 500;
}

.date-text {
    color: #000000;
    font-weight: 500;
}

.day-strip {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.day-strip::-webkit-scrollbar {
    display: none;
}

.day-cell {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

/* Ensure adequate touch target on mobile */
@media (max-width: 768px) {
    .day-cell {
        min-width: 40px;
        min-height: 40px;
        padding: 6px 4px;
    }
}

@media (max-width: 480px) {
    .day-cell {
        min-width: 36px;
        min-height: 36px;
        padding: 5px 3px;
    }
}

@media (max-width: 375px) {
    .day-cell {
        min-width: 32px;
        min-height: 32px;
        padding: 4px 2px;
    }
}

.day-cell:hover {
    background-color: #f8f9ff;
}

.day-cell.selected {
    background-color: #5bb0bd;
    color: white;
    border-radius: 9999px;
}

.day-cell.past-date {
    pointer-events: none;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Ensure selected state is visible even on past dates (if applicable) */
.day-cell.selected.past-date {
    opacity: 0.7;
}

.day-cell.today {
    position: relative;
}

.day-name {
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #a0a0a0;
}

.day-cell.selected .day-name {
    color: rgba(255, 255, 255, 0.9);
}

.day-number {
    font-size: 14px;
    font-weight: 500;
    color: #a0a0a0;
}

.day-cell.selected .day-number {
    color: white;
    font-weight: 600;
}

.time-picker-row {
    display: flex;
    gap: 10px;
}

.time-picker-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.time-picker-btn:hover {
    border-color: #5bb0bd;
    background-color: #f8f9ff;
}

/* Category Tabs Styles */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 15px;
}

.tab-btn {
    padding: 12px 20px 20px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #b3b3b3;
    position: relative;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #000000;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 16px);
    height: 5px;
    background-color: #10152c;
    border-radius: 30px;
    opacity: 1;
    border-radius: 30px 30px 0px 0px;
}

.tab-btn:hover {
    color: #000000;
}

.add-note-btn {
    margin-left: auto;
    padding: 8px;
    border-radius: 10px;
    background: #fff3ca;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
    width: 70px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.add-note-btn:hover {
    background-color: #ffe894;
}

.add-note-btn.active {
    background-color: #ffda4f;
}

/* Search Section Styles */
.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
    z-index: 1;
}

/* Day view search - search box and filter on same row (matches add-new-item design) */
.day-view-search {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.day-view-search .search-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.day-view-search .search-input-container,
.day-view-search .search-bar {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 7px;
    height: 42px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 0;
}

.day-view-search .search-icon {
    position: static;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transform: none;
}

.day-view-search .star-icon {
    position: static;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transform: none;
}

.day-view-search .search-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0 !important;
    background: none;
}

.day-view-search .search-button,
.day-view-search .filter-btn {
    flex: none;
    height: 42px;
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: none;
}

.day-view-search .filter-icon {
    width: 16px;
    height: 16px;
}

.search-bar {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 40px !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #5bb0bd;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.star-icon {
    position: absolute;
    left: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 3;
}

.filter-btn {
    padding: 12px;
    border: 1px solid #5bb0bd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.filter-btn:hover {
    background-color: #f0f5ff;
    color: white;
}

/* Expanded Search Screen Styles */
.search-screen {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.search-screen-input-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-screen-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
    margin: 8px 0;
}

.search-screen-bar {
    position: relative;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(221, 228, 250, 0.8);
    box-shadow: 0 16px 48px rgba(16, 21, 44, 0.05);
}

.search-screen-input-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 40px;
    gap: 10px;
}

.search-screen-bar .search-input {
    min-height: 40px;
    height: 40px;
    padding: 0 !important;
    font-size: 15px !important;
    background: transparent;
    color: #10152c;
    border: none;
    box-shadow: none;
    flex: 1;
    resize: none;
    overflow-y: auto;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    vertical-align: top;
}

.search-screen .search-input,
.search-screen .search-input:focus,
.search-screen .search-input:active {
    border: none !important;
    box-shadow: none !important;
    outline: none;
    background: transparent;
}

.search-screen-bar .star-icon {
    position: static;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-screen-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.search-prompt-display {
    display: none;
    padding: 0 16px;
    font-size: 15px !important;
    line-height: 1.5;
    color: #10152c;
    font-weight: normal;
    white-space: pre-wrap;
    cursor: text;
    flex: 1;
    min-height: 52px;
    align-items: center;
}

.search-ai-status {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    width: 100%;
    position: relative;
}

.search-ai-status-stars {
    position: relative;
    width: 88px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-ai-status-star {
    position: absolute;
}

.search-ai-status-star-1 {
    top: 0;
    right: 12px;
    width: 44px;
    height: 44px;
    color: #9d50bb;
    animation:
        star1Scale 1s ease-in-out infinite alternate,
        star1Color 1.2s ease-in-out infinite alternate;
}

.search-ai-status-star-2 {
    top: -10px;
    left: 20px;
    width: 33px;
    height: 33px;
    color: #ff5f6d;
    animation:
        star2Scale 2s ease-in-out infinite alternate,
        star2Color 1.2s ease-in-out infinite alternate;
}

@keyframes star1Scale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
}

@keyframes star2Scale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.3);
    }
}

@keyframes star1Color {
    0% {
        color: #9d50bb;
    }
    100% {
        color: #ff5f6d;
    }
}

@keyframes star2Color {
    0% {
        color: #ff5f6d;
    }
    100% {
        color: #9d50bb;
    }
}

.search-ai-status-icon {
    width: 72px;
    height: 72px;
}

.search-ai-status-text {
    font-weight: 600;
    text-align: center;
}

.search-ai-status-text.primary {
    font-size: 18px;
}

.search-ai-status-text.secondary {
    font-size: 14px;
    font-weight: 500;
}

.gradient-text {
    background: linear-gradient(90deg, #ff4c4c 0%, #ff9500 27.88%, #a400c1 65.38%, #0015fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(90deg, #ff5f6d 0%, #9d50bb 50%, #ff5f6d 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.add-health-data-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    background: #f0f5ff;
    color: #000000;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    height: 40px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.add-health-data-btn:hover {
    background: #e4ecff;
}

.add-health-data-btn:active {
    transform: scale(0.98);
}

.info-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.info-pill:hover {
    background: rgba(0, 0, 0, 0.05);
}

.info-pill img {
    width: 18px;
    height: 18px;
}

.add-health-data-label {
    font-size: 13px;
    color: #000000;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

/* Health Info Modal Styles */
.health-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.health-info-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.health-info-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.health-info-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

@media (max-width: 768px) {
    .health-info-dialog {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }

    .add-health-data-btn {
        padding: 8px 12px;
        font-size: 12px;
        height: 36px;
    }

    .add-health-data-label {
        font-size: 12px;
    }
}

.search-screen-icon-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-image-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-image-input {
    display: none;
}

.search-image-upload .image-upload-btn {
    display: inline-flex;
}

.search-image-preview {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 80px;
    overflow: visible;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f0f5ff;
}

.search-image-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 80px;
}

.remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 1;
    padding: 2px;
    background-color: #f3d5df;
    border-radius: 500px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: auto;
    height: auto;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #000;
}

.remove-image-btn img {
    width: 8px;
    height: 8px;
    display: block;
}

.search-icon-button {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(91, 176, 189, 0.35);
    border-radius: 80px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.search-icon-button:hover {
    box-shadow: 0 10px 20px rgba(16, 21, 44, 0.08);
}

.search-screen-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-tip-card {
    background: #dde4fa;
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    align-self: stretch;
}

.search-tip-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.search-ai-results {
    display: none;
    flex-direction: column;
    gap: 24px;
    align-self: stretch;
    width: 100%;
}

.search-ai-results.is-visible {
    display: flex;
}

.search-ai-results-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-results-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ai-result-item {
    padding-bottom: 15px;
}

.ai-recipe-tabs {
    justify-content: flex-start;
}

.ai-recipe-card.recipe-card {
    padding: 8px;
    background: rgba(240, 245, 255, 1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ai-recipe-card .recipe-image-container {
    border-radius: 8px;
    overflow: hidden;
}

.ai-recipe-card .recipe-info {
    gap: 12px;
    padding-top: 4px;
}

.ai-recipe-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-recipe-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 221, 115, 1) 0%, rgba(250, 170, 49, 1) 100%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 1);
}

.ai-recipe-item-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid #cee8e1;
    color: rgba(61, 171, 94, 1);
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.ai-item-icon {
    width: 16px;
    height: 16px;
}

.ai-recipe-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ai-recipe-actions .action-btn {
    border-color: #cee7eb;
}

.ai-recipe-actions .ai-recipe-item-count {
    margin-right: 8px;
}

.ai-reason-card {
    background: rgba(221, 228, 250, 1);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-reason-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ai-reason-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    color: #10152c;
}

.ai-reason-icon {
    width: 20px;
    height: 20px;
}

.ai-reason-toggle {
    border: none;
    background: #ffffff;
    color: #10152c;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.ai-reason-toggle:hover {
    background: #f0f3ff;
}

.ai-reason-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-added-pill {
    align-self: flex-start;
    padding: 3px 12px 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    background: linear-gradient(90deg, #ff4c4c 0%, #ff9500 27.88%, #a400c1 65.38%, #0015fc 100%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-added-icon {
    width: 14px;
    height: 14px;
}

.ai-reason-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(16, 21, 44, 0.8);
}

.ai-reason-card.collapsed .ai-reason-body {
    display: none;
}

.ai-reason-card.collapsed .ai-reason-toggle {
    color: #5bb0bd;
}

/* Top 10 Badge */
.ai-top-ten-badge {
    align-self: flex-start;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffd700 0%, #ffa500 100%);
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    line-height: 1;
    z-index: 9;
    display: inline-block;
}

/* AI Load More Button */
.ai-load-more {
    text-align: center;
    padding: 20px;
}

.ai-load-more-btn {
    background-color: #5bb0bd;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: Montserrat, sans-serif;
}

.ai-load-more-btn:hover {
    background-color: #4a9fa8;
}

.ai-load-more-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Matched Ingredients Row */
.recipe-matched-ingredients-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

/* Matched Ingredients Button */
.ai-matched-ingredients-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #c9e9d3;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
    font-family: Montserrat, sans-serif;
}

.ai-matched-ingredients-btn:hover {
    background-color: rgba(201, 233, 211, 0.1);
    border-color: #a8d5b8;
}

.ai-matched-icon {
    width: 11px;
    height: 9px;
    display: block;
}

.ai-matched-count {
    font-size: 10px;
    font-weight: 600;
    color: #5bb0bd;
    line-height: 1;
}

/* Matched Ingredients Modal */
.matched-ingredients-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.matched-ingredients-modal[aria-hidden='true'] {
    display: none;
}

.matched-ingredients-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.matched-ingredients-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.matched-ingredients-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.matched-ingredients-modal-title {
    font-family: Montserrat, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #10152c;
    margin: 0;
    flex: 1;
}

.matched-ingredients-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #10152c;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.matched-ingredients-modal-close:hover {
    color: #5bb0bd;
}

.matched-ingredients-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.matched-ingredients-modal-subtitle {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(16, 21, 44, 0.6);
    margin-bottom: 15px;
}

.matched-ingredients-list {
    max-height: 200px;
    overflow-y: auto;
}

.matched-ingredient-item {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #10152c;
    margin-bottom: 8px;
    padding-left: 10px;
    line-height: 1.6;
}

.matched-ingredients-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

.matched-ingredients-modal-done {
    background: #5bb0bd;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.matched-ingredients-modal-done:hover {
    background: #4a9ba8;
}

.search-tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-tip-label {
    font-weight: 700;
    color: #10152c;
    font-size: 14px;
}

.search-tip-text {
    margin: 0;
    color: #10152c;
    line-height: 1.5;
    font-size: 14px;
}

.search-tip-dismiss {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
}

.search-tip-dismiss img {
    width: 11px;
    height: 11px;
}

.search-screen-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.day-view-right .search-screen-footer {
    padding: 0;
    margin: 0 -20px -20px;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(16, 21, 44, 0.08);
    padding: 15px;
}

.search-footer-text {
    flex: 1;
    font-size: 14px;
    color: rgba(16, 21, 44, 0.7);
}

.search-footer-filter-btn {
    min-width: 120px;
    gap: 8px;
    font-weight: 600;
    padding: 14px 20px;
    height: auto;
    color: #5bb0bd !important;
}

/* Recipe Tabs Styles */
.recipe-tabs {
    display: flex;
    gap: 5px;
    min-height: 40px !important;
}

/* Recipe tabs container */
.recipe-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #dde4fa transparent;
}

.recipe-tabs::-webkit-scrollbar {
    height: 6px;
}

.recipe-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-tabs::-webkit-scrollbar-thumb {
    background: #dde4fa;
    border-radius: 3px;
}

.recipe-tabs::-webkit-scrollbar-thumb:hover {
    background: #5bb0bd;
}

.recipe-tab {
    padding: 8px 16px;
    border: 1px solid #deeff3;
    background: white;
    cursor: pointer;
    font-weight: 500;
    color: #10152c;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 15px;
    flex-shrink: 0;
    white-space: nowrap;
}

.recipe-tab.active {
    background: #10152c;
    color: white;
}

.recipe-tab:hover {
    background: #deeff3;
    color: #000000;
}

/* Recipe List Styles */
.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
    max-height: 200rem;
    margin-top: 10px !important;
}

.recipe-list::-webkit-scrollbar {
    width: 6px;
}

.recipe-list::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-list::-webkit-scrollbar-thumb {
    background: #dde4fa;
    border-radius: 3px;
}

.recipe-list::-webkit-scrollbar-thumb:hover {
    background: #5bb0bd;
}

/* Recipe Image Container */
.recipe-image-container {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.recipe-list .recipe-image-container {
    min-width: 140px;
    max-width: 240px;
}

.recipe-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card {
    display: flex;
    gap: 15px;
    padding: 5px;
    border-radius: 10px;
    background: #f0f5ff;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 160px;
    min-width: 325px;
    align-items: flex-start;
}

.recipe-card:hover {
    box-shadow: 0 4px 12px rgba(91, 176, 189, 0.15);
    border-color: #5bb0bd;
}

.recipe-card .recipe-title,
.modal-recipe-card .recipe-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-card.selected {
    border-color: #5bb0bd;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
    box-shadow: 0 4px 12px rgba(91, 176, 189, 0.25);
}

.recipe-image {
    position: relative;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.recipe-emoji {
    font-size: 2em;
}

.recipe-rating,
.recipe-time {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.recipe-rating {
    top: 8px;
    left: 8px;
    background: white;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #10152c;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-rating img {
    width: 12px;
    height: 12px;
}

.recipe-time {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #00b5ad;
    padding: 4px 8px;
    border-radius: 45px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-time img {
    width: 12px;
    height: 12px;
}

.recipe-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.recipe-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    align-self: flex-end;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cee7eb;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
}

.action-btn img {
    width: 16px;
    height: 16px;
}

/* Favorite Icon Container Styles */
.favorite-icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cee7eb;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    overflow: visible;
    text-transform: none;
    -webkit-appearance: button;
}

.favorite-icon-btn:hover {
    transform: scale(1.05);
}

.favorite-icon-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(56%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
        contrast(100%);
    opacity: 0.6;
}

.favorite-icon-container.favorited .favorite-icon-btn {
    background-color: #e2676c;
    border-color: #e2676c;
}

.favorite-icon-container.favorited .favorite-icon-btn img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
        contrast(100%);
    opacity: 1;
}

/* Workout loading state */
.workout-details-loading {
    text-align: center;
    padding: 20px;
}

/* Workout Card Styles */
.workout-card {
    margin-bottom: 12px;
}

.workout-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.workout-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workout-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 5px;
    z-index: 9;
}

.workout-rating {
    background: white;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #10152c;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workout-rating img {
    width: 12px;
    height: 12px;
}

.workout-duration {
    background: #5bb0bd;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workout-duration img {
    width: 12px;
    height: 12px;
}

.workout-title-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.workout-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.play-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn img {
    width: 30px;
    height: 30px;
}

.add-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid #5bb0bd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1;
}

.add-btn:hover {
    background: #f0f5ff;
    transform: scale(1.05);
}

.add-btn img {
    width: 20px;
    height: 20px;
}

.note-form,
.drawer-note-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-char-counter {
    align-self: flex-end;
    font-size: 11px;
    color: #999;
    line-height: 1;
}

.note-char-counter--limit {
    color: #e53935;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

/* Note form title and description - Frame 1618875374 design specs */
.title-input,
.description-textarea {
    box-sizing: border-box;
    padding: 20px;
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #000;
    background: white;
    transition: border-color 0.2s;
}

/* Modal note inputs - match Frame 1618875374 design specs */
.form-input.modal-note-title-input,
.form-textarea.modal-note-description-textarea {
    box-sizing: border-box;
    padding: 20px;
    width: 100%;
    min-height: 60px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
}

.form-textarea.modal-note-description-textarea {
    min-height: 203px;
    resize: vertical;
}

.description-textarea {
    min-height: 203px;
    resize: vertical;
}

.title-input:focus,
.description-textarea:focus {
    outline: none;
    border-color: #5bb0bd;
}

.form-input.modal-note-title-input:focus,
.form-textarea.modal-note-description-textarea:focus {
    outline: none;
    border-color: rgba(91, 176, 189, 1);
    box-shadow: 0 0 0 1px rgba(91, 176, 189, 1);
}

.title-input::placeholder,
.description-textarea::placeholder {
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: rgba(0, 0, 0, 0.5);
}

.form-input.modal-note-title-input::placeholder,
.form-textarea.modal-note-description-textarea::placeholder {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: rgba(0, 0, 0, 0.5);
}

.title-input::-webkit-input-placeholder,
.description-textarea::-webkit-input-placeholder {
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.form-input.modal-note-title-input::-webkit-input-placeholder,
.form-textarea.modal-note-description-textarea::-webkit-input-placeholder {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.title-input::-moz-placeholder,
.description-textarea::-moz-placeholder {
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.form-input.modal-note-title-input::-moz-placeholder,
.form-textarea.modal-note-description-textarea::-moz-placeholder {
    font-family: 'Montserrat', -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #5bb0bd;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.repeat-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.repeat-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.repeat-icon,
.expand-icon {
    width: 16px;
    height: 16px;
}

.repeat-duration {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeat-duration-label {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: #333;
}

.done-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* Custom Selector Styles */
.custom-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.custom-select {
    background: #f0f5ff;
    cursor: pointer;
    border: none;
    width: 100%;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.custom-select:hover {
    background: #e8f0ff;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.custom-select.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    display: none;
    padding: 8px !important;
    position: absolute;
    width: 100%;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    background-color: #fff;
    border-radius: 17px;
    box-sizing: border-box;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    bottom: 100%;
    margin-bottom: 8px;
}

.custom-select-options.open {
    display: block;
}

.custom-select-option {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.custom-select-option:hover {
    background-color: #e8f0ff;
}

.custom-select-option .text {
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    color: #10152c;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}

/* Custom Repeat Section */
.custom-repeat-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.custom-repeat-label {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: #333;
}

.custom-repeat-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.custom-number-select,
.custom-unit-select {
    flex: 1;
    min-width: 120px;
}

/* Repeat End Section */
.repeat-end-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.repeat-end-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repeat-end-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f0f5ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.repeat-end-option:hover {
    background-color: #e8f0ff;
}

.repeat-end-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.repeat-end-text {
    flex: 1;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333;
}

.radio-button {
    position: relative;
    flex-shrink: 0;
}

.radio-button input[type='radio'] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-button label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #a6c099;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.radio-button input[type='radio']:checked + label {
    border-color: #667558;
    background-color: white;
}

.radio-button input[type='radio']:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #667558;
}

/* Calendar Container */
.calendar-container {
    margin-top: -12px !important;
    padding: 3px 16px 16px 16px !important;
    background-color: #f0f5ff !important;
    border-radius: 0px 0px 10px 10px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.calendar-container[style*='display: none'] {
    display: none !important;
}

.calendar-container[style*='display: flex'] {
    display: flex !important;
}

/* Occurrences Input Container */
.occurrences-input-container {
    margin-top: -13px;
    padding: 10px 16px;
    background: #f0f5ff;
    border-radius: 0px 0px 10px 10px;
}

.occurrences-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background-color: #ffffff;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    height: 40px !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.occurrences-input::-webkit-outer-spin-button,
.occurrences-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.occurrences-input:focus {
    outline: none;
    border-color: #5bb0bd;
}

.occurrences-input::placeholder {
    color: #999;
}

/* Select Days Section */
.select-days-section {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.select-days-label {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: #333;
    margin-bottom: 12px;
    display: block;
}

.days-container {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: 8px !important;
    flex-wrap: nowrap !important;
}

.day-button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: #f0f5ff !important;
    color: #666 !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.day-button:hover {
    background-color: #e0e0e0 !important;
    color: #333 !important;
}

.day-button.selected {
    background-color: #667558 !important;
    color: #ffffff !important;
}

.day-button.selected:hover {
    background-color: #5a6b4a !important;
    color: #ffffff !important;
}

/* Monthly Options Section */
.monthly-options-section {
    margin-top: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.monthly-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monthly-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #f0f5ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.monthly-option:hover {
    background-color: #e8f0ff;
}

.monthly-option-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.monthly-option-text {
    flex: 1;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #333;
}

.monthly-option .radio-button {
    position: relative;
    flex-shrink: 0;
}

.monthly-option .radio-button input[type='radio'] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.monthly-option .radio-button label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #a6c099;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.monthly-option .radio-button input[type='radio']:checked + label {
    border-color: #667558;
    background-color: white;
}

.monthly-option .radio-button input[type='radio']:checked + label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #667558;
}

#end-date-picker {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

#end-date-picker:focus {
    outline: none;
    border-color: #5bb0bd;
}

/* Inline Calendar Styling */
.calendar-container .flatpickr-calendar {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    background: #f0f5ff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    font-family: Montserrat, sans-serif !important;
    z-index: 99999 !important;
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: auto !important;
}

.flatpickr-months {
    background: #f0f5ff !important;
}

.flatpickr-current-month {
    font-family: Montserrat, sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 100% !important;
    letter-spacing: 0px !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    display: none !important;
}

.flatpickr-current-month .numInputWrapper {
    display: none !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    display: none !important;
}

/* Custom month/year display */
.flatpickr-current-month::after {
    content: attr(data-month-year);
    font-family: Montserrat, sans-serif !important;
    font-weight: 600 !important;
    font-style: SemiBold !important;
    font-size: 14px !important;
    line-height: 100% !important;
    letter-spacing: 0px !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: #000000 !important;
}

.flatpickr-weekdays {
    background: #f0f5ff !important;
}

.flatpickr-weekday {
    color: #000000 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}

.flatpickr-weekday:nth-child(1),
.flatpickr-weekday:nth-child(7) {
    color: #fb3748 !important;
}

.flatpickr-days {
    background: #f0f5ff !important;
}

.dayContainer {
    background: #f0f5ff !important;
}

.flatpickr-day {
    color: #000000 !important;
    border: none !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    border-radius: 50% !important;
    transition: all 0.2s !important;
}

.flatpickr-day:nth-child(7n),
.flatpickr-day:nth-child(7n-6) {
    color: #fb3748 !important;
}

.flatpickr-day:hover {
    background: #e8f0ff !important;
    color: #333 !important;
}

.flatpickr-day.selected {
    background: rgba(91, 176, 189, 1) !important;
    color: white !important;
    border-color: rgba(91, 176, 189, 1) !important;
}

.flatpickr-day.selected:hover {
    background: rgba(91, 176, 189, 1) !important;
    color: white !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #ccc !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f0f0f0 !important;
    color: #999 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #000000 !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #5bb0bd !important;
}

.done-btn {
    padding: 12px 24px;
    border: 1px solid #5bb0bd;
    background: white;
    color: #5bb0bd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.done-btn:hover:not(:disabled) {
    background: #5bb0bd;
    color: white;
}

.done-btn:disabled {
    background: white;
    color: #5bb0bd;
    border-color: #5bb0bd;
    cursor: not-allowed;
    opacity: 0.4;
}

.notify-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-btn {
    padding: 8px 16px;
    border: none !important;
    background: #f0f5ff;
    color: #333;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-btn:hover,
.notification-btn.active {
    background: #5bb0bd;
    color: white;
    border-color: #5bb0bd;
}

/* Responsive Design for Day View */
@media (max-width: 1024px) {
    .day-view-inline {
        min-height: 500px;
    }

    .day-view-content {
        flex-direction: column;
        min-height: 400px;
    }

    .day-view-left,
    .day-view-right {
        flex: none;
        min-height: 200px;
        padding: 15px;
        height: auto;
    }

    .day-view-left {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        margin: 5px;
    }

    .day-view-right {
        margin: 5px;
    }

    .day-calendar-container {
        height: calc(100% - 100px);
        margin-top: 15px;
    }

    .horizontal-date-picker {
        margin-bottom: 15px;
        padding: 12px 40px;
    }

    .add-item-header h3 {
        font-size: 16px;
    }

    .recipe-tabs {
        gap: 6px;
    }

    .recipe-tab {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .day-view-left,
    .day-view-right {
        padding: 12px;
        margin: 5px;
    }

    .datetime-picker {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .horizontal-date-picker {
        padding: 12px 30px;
        margin-bottom: 12px;
    }

    .date-picker-header {
        margin-bottom: 8px;
    }

    .date-picker-header {
        margin-bottom: 10px;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .date-display {
        font-size: 13px;
    }

    .day-strip {
        gap: 4px;
        justify-content: flex-start;
    }

    .day-cell {
        padding: 6px 4px;
        min-width: 40px;
        flex-shrink: 0;
    }

    .day-cell.past-date {
        min-width: 40px;
    }

    .day-name {
        font-size: 9px;
    }

    .day-number {
        font-size: 12px;
    }

    .day-calendar-container {
        height: calc(100% - 70px);
        margin-top: 8px;
    }

    .horizontal-date-picker {
        margin-bottom: 8px;
        padding: 8px 20px;
    }

    .category-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .tab-btn {
        padding: 10px 16px 16px 16px;
        font-size: 13px;
    }

    .add-note-btn {
        width: 60px;
        height: 40px;
    }

    .recipe-card {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 8px;
    }

    .recipe-image {
        width: 100%;
        height: 120px;
    }

    .recipe-image-container {
        width: 100% !important;
        height: 140px !important;
    }

    .recipe-title {
        font-size: 0.9em;
    }

    .recipe-info {
        padding-top: 8px;
        padding-right: 0;
    }

    .btn-add {
        width: 48px;
        height: 38px;
        font-size: 13px;
    }

    .btn-discard {
        font-size: 12px;
        padding: 6px 10px;
    }

    .add-item-header h3 {
        font-size: 15px;
    }

    .search-section {
        flex-direction: column;
        gap: 8px;
    }

    .search-input {
        font-size: 13px;
        padding: 10px 36px 10px 36px !important;
    }

    .day-calendar-label {
        font-size: 10px;
    }

    .day-calendar-label:nth-child(4n + 1) {
        font-size: 11px;
    }

    .datetime-row {
        gap: 3px;
    }

    .time-group {
        gap: 3px;
    }

    .time-display {
        font-size: 13px;
        padding: 6px 10px;
        min-width: 70px;
        flex-shrink: 0;
    }

    .selected-date-display {
        font-size: 13px;
        padding: 6px 12px;
        flex-shrink: 0;
    }

    .time-separator {
        font-size: 14px;
        flex-shrink: 0;
    }

    .form-label {
        font-size: 13px;
    }

    .title-input,
    .description-textarea {
        font-size: 13px !important;
    }

    .repeat-duration-label {
        font-size: 14px;
    }

    .custom-select {
        font-size: 13px;
        padding: 10px 12px;
    }

    .workout-card .workout-image-container {
        height: 160px;
    }

    .workout-badges {
        gap: 4px;
    }

    .workout-rating,
    .workout-duration {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* day-calendar-labels styles */
.day-calendar-labels {
    display: flex;
    flex-direction: column;
    min-width: 65px;
    margin-top: 0;
    padding-right: 8px;
}

.day-calendar-label {
    font-size: 11px;
    font-weight: 400;
    color: #cccccc;
    text-align: right;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    transform: translateY(-8px);
    flex-shrink: 0;
    box-sizing: border-box;
    padding-top: 3px !important;
}

/* First item and every 4th item (1st, 5th, 9th, 13th, etc.) */
.day-calendar-label:nth-child(4n + 1) {
    color: #000000;
    font-size: 13px;
}

.gradient-wrapper {
    background: linear-gradient(90deg, #ff4c4c 0%, #ff9500 28%, #a400c1 65%, #0015fc 100%);
    padding: 1px; /* Changed from 3px for thinner border */
    border-radius: 9px; /* Adjusted accordingly */
}

.gradient-input {
    width: 100%;
    padding: 12px 16px;
    background: #2a2a2a;
    color: white;
    border: none;
    border-radius: 8px !important;
}

/* Recipe Add Screen Styles */
.recipe-add-screen,
.workout-add-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-add-content,
.workout-add-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    overflow-y: auto;
}

.recipe-add-header,
.workout-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.recipe-add-header h3,
.workout-add-header h3 {
    margin: 0;
    font-family: Arial;
    font-weight: 700;
    font-style: Bold;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #333;
}

.recipe-add-buttons,
.workout-add-buttons {
    display: flex;
    gap: 10px;
}

/* Recipe Selected Card Styles */
.recipe-selected-card {
    display: flex;
    gap: 15px;
    padding: 5px;
    border-radius: 10px;
    background: #f0f5ff;
    transition: all 0.2s;
    cursor: pointer;
    min-height: 160px;
    align-items: flex-start;
}

/* Workout Selected Card Styles */
.workout-selected-card {
    margin-bottom: 12px;
}

.recipe-selected-card .recipe-image {
    flex-shrink: 0;
}

.recipe-selected-card .recipe-image-container {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.recipe-selected-card .recipe-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-selected-card .recipe-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 10px;
    padding-right: 5px;
}

.recipe-selected-card .recipe-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Portions Section Styles */
.portions-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portions-label {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: #333;
}

.portions-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 8px;
    border: 1px solid #69adb7;
    width: fit-content;
}

.portions-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #69adb7;
    color: white;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portions-btn:hover {
    background: #4a9ba8;
    transform: scale(1.05);
}

.portions-btn:active {
    transform: scale(0.95);
}

.portions-btn.minus {
    border-radius: 7px 0px 0px 7px;
}

.portions-btn.plus {
    border-radius: 0px 7px 7px 0px;
}

.portions-count {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 0 8px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}

/* Responsive Design for Recipe Add Screen */
@media (max-width: 768px) {
    .recipe-selected-card {
        flex-direction: column;
        text-align: center;
        padding: 8px;
    }

    .recipe-selected-card .recipe-image-container {
        width: 100%;
        height: 140px;
        margin: 0 auto;
    }

    .recipe-selected-card .recipe-title {
        font-size: 0.85em;
    }

    .portions-selector {
        align-self: center;
    }

    .portions-label {
        font-size: 14px;
    }

    .portions-count {
        font-size: 14px;
    }

    .recipe-add-header,
    .workout-add-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .recipe-add-header h3,
    .workout-add-header h3 {
        font-size: 16px;
    }

    .recipe-add-buttons,
    .workout-add-buttons {
        justify-content: center;
    }
}

/* Additional responsive styles for smaller screens */
@media (max-width: 480px) {
    .day-view-left,
    .day-view-right {
        padding: 10px;
        margin: 3px;
    }

    .datetime-picker {
        margin-bottom: 12px;
    }

    .horizontal-date-picker {
        padding: 10px 20px;
        margin-bottom: 10px;
    }

    .date-picker-header {
        margin-bottom: 6px;
    }

    .nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .date-display {
        font-size: 12px;
    }

    .day-strip {
        gap: 3px;
        justify-content: flex-start;
        padding-bottom: 3px;
    }

    .day-cell {
        padding: 5px 3px;
        min-width: 36px;
        flex-shrink: 0;
    }

    .day-cell.past-date {
        min-width: 36px;
    }

    .day-name {
        font-size: 8px;
    }

    .day-number {
        font-size: 11px;
    }

    .category-tabs {
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 12px 12px 12px;
        font-size: 12px;
    }

    .add-note-btn {
        width: 55px;
        height: 38px;
    }

    .add-item-header h3 {
        font-size: 14px;
    }

    .btn-add {
        width: 45px;
        height: 36px;
    }

    .btn-discard {
        font-size: 11px;
        padding: 5px 8px;
    }

    .search-input {
        font-size: 12px;
        padding: 8px 32px 8px 32px !important;
    }

    .recipe-tabs {
        gap: 4px;
    }

    .recipe-tab {
        font-size: 12px;
        padding: 6px 10px;
    }

    .recipe-card {
        padding: 6px;
    }

    .recipe-title {
        font-size: 0.8em;
    }

    .recipe-rating,
    .recipe-time {
        font-size: 10px;
        padding: 3px 6px;
    }

    .action-btn {
        width: 28px;
        height: 28px;
    }

    .action-btn img {
        width: 14px;
        height: 14px;
    }

    .workout-card .workout-image-container {
        height: 140px;
    }

    .workout-title-overlay {
        font-size: 16px;
    }

    .datetime-row {
        gap: 3px;
    }

    .time-group {
        gap: 2px;
    }

    .time-display {
        font-size: 12px;
        padding: 5px 8px;
        min-width: 65px;
        flex-shrink: 0;
    }

    .selected-date-display {
        font-size: 12px;
        padding: 5px 10px;
        flex-shrink: 0;
    }

    .time-separator {
        font-size: 13px;
        flex-shrink: 0;
    }

    .form-label {
        font-size: 12px;
    }

    .title-input,
    .description-textarea {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }

    .repeat-duration-label {
        font-size: 13px;
    }

    .custom-select {
        font-size: 12px;
        padding: 8px 10px;
    }

    .custom-select-option .text {
        font-size: 13px;
    }

    .day-button {
        width: 36px !important;
        height: 36px !important;
        font-size: 12px !important;
    }

    .notification-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .recipe-selected-card .recipe-image-container {
        height: 120px;
    }

    .recipe-selected-card .recipe-title {
        font-size: 0.8em;
    }

    .portions-label {
        font-size: 13px;
    }

    .portions-count {
        font-size: 13px;
    }

    .portions-btn {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .recipe-details-header,
    .workout-details-header {
        padding: 12px 0px;
    }

    .recipe-details-title,
    .workout-details-title {
        font-size: 16px;
    }

    .btn-back {
        width: 36px;
        height: 36px;
    }

    .filter-modal-title {
        font-size: 16px;
    }

    .filter-section-title {
        font-size: 14px;
    }

    .filter-chip {
        font-size: 12px;
        padding: 6px 12px;
    }

    .search-screen-bar {
        min-height: 56px;
        padding: 12px 16px;
    }

    .search-screen-bar .search-input {
        font-size: 14px;
    }

    .add-health-data-btn {
        font-size: 12px;
        padding: 8px 12px;
        height: 36px;
    }

    .search-icon-button {
        width: 46px;
        height: 46px;
    }

    .ai-recipe-card .recipe-title,
    .drawer-ai-card .recipe-title {
        font-size: 0.85em;
    }

    .ai-reason-title {
        font-size: 14px;
    }

    .ai-reason-text {
        font-size: 13px;
    }
}
/* Only target harnesses within the same parent that overlap */
.fc-timegrid-col-events {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

/* Day view: allow transformed harnesses (repositioned across columns) to extend without clipping */
#dayCalendar .fc-timegrid-cols,
#dayCalendar .fc-timegrid-col-events {
    overflow: visible !important;
}

.fc-timegrid-event-harness {
    position: absolute !important;
}

/* Single event - full width */
.fc-timegrid-col-events:has(.fc-timegrid-event-harness:only-child) .fc-timegrid-event-harness {
    width: 100% !important;
    left: 0 !important;
}

/* Single fixed-width event (recipe/workout/notes) - cap at 300px, never stretch full column */
.fc-timegrid-col-events:has(.fc-timegrid-event-harness:only-child) .fc-timegrid-event-harness:has(.recipe-event),
.fc-timegrid-col-events:has(.fc-timegrid-event-harness:only-child) .fc-timegrid-event-harness:has(.workout-event),
.fc-timegrid-col-events:has(.fc-timegrid-event-harness:only-child) .fc-timegrid-event-harness:has(.notes-event) {
    width: 300px !important;
}

/* Two events at same time - needs JS for accurate detection */

/* Note Edit Screen Styles */
.note-edit-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-edit-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.note-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
}

.note-edit-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-update {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #cee7eb;
    color: #5bb0bd;
    min-height: 45px;
}

.btn-update:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-update:not(:disabled):hover {
    opacity: 0.8;
}

.btn-delete,
.btn-cancel {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-height: 45px;
    min-width: 45px;
}

.btn-delete {
    background-color: #ffdddf;
}

.btn-delete:hover {
    background-color: #ffc6ca;
}

.btn-cancel {
    background-color: #cfd0d6;
}

.btn-delete img,
.btn-cancel img {
    width: 16px;
    height: 16px;
}

/* Note edit screen bottom action buttons */
.note-edit-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    padding-bottom: 16px;
}

.btn-save-changes {
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #b0b0b0;
    color: #ffffff;
    min-height: 48px;
}

.btn-save-changes:not(:disabled) {
    background-color: #5bb0bd;
}

.btn-save-changes:not(:disabled):hover {
    background-color: #4a9daa;
}

.btn-save-changes:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.note-delete-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    flex: none;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #ff555d;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.note-delete-btn:hover {
    background-color: rgba(255, 85, 93, 0.08);
}

.note-delete-btn .delete-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Note edit screen datetime display styling */
.note-edit-screen .selected-date-display,
.note-edit-screen .time-display {
    background-color: #deeff3 !important;
}

/* Workout Edit Screen Styles */
.workout-edit-screen {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workout-edit-content {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.workout-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.workout-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
}

.workout-edit-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Recipe Edit Screen Styles */
.recipe-edit-screen {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recipe-edit-content {
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.recipe-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.recipe-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
}

.recipe-edit-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Workout and Recipe edit screen datetime display styling */
.workout-edit-screen .selected-date-display,
.workout-edit-screen .time-display,
.recipe-edit-screen .selected-date-display,
.recipe-edit-screen .time-display {
    background-color: #deeff3 !important;
}

/* Add borders under sections in edit screens */
.note-edit-screen .datetime-picker,
.workout-edit-screen .datetime-picker,
.recipe-edit-screen .datetime-picker {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.note-edit-screen .repeat-section,
.workout-edit-screen .repeat-section,
.recipe-edit-screen .repeat-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.note-edit-screen .notify-section,
.workout-edit-screen .notify-section,
.recipe-edit-screen .notify-section {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Position dropdown below in edit screens */
.note-edit-screen .custom-select-options,
.workout-edit-screen .custom-select-options,
.recipe-edit-screen .custom-select-options {
    bottom: auto !important;
}

/* Recipe Details Header Styles */
.recipe-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background-color: #d0d0d0;
}

.btn-back img {
    width: 16px;
    height: 16px;
}

.recipe-details-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    padding: 10px 5px;
    flex: 1;
}

/* Workout Details Header Styles */
.workout-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.workout-details-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    flex: 1;
    padding: 10px 5px;
}

/* Recipe Details Section Styles */
.recipe-details-section {
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: visible;
    flex-shrink: 0;
    max-height: none;
    width: 100%;
}

/* Make recipe-details-section scrollable when directly in add-item-panel (not in edit-content) */
.add-item-panel > .recipe-details-section {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 100px);
    height: 100%;
}

/* Filter Modal Styles */
.filter-modal {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.btn-cancel {
    background: none;
    border: none;
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
}

.filter-modal-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    flex: 1;
    position: relative;
}

.filter-modal-title::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #000000;
}

.btn-clear {
    background: none;
    border: none;
    color: #ff555d;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
}

.filter-modal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}

.search-input-container {
    margin-bottom: 20px;
}

.filter-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f8f8f8;
    outline: none;
}

.filter-search-input:focus {
    border-color: var(--bs-primary);
    background-color: #ffffff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--bs-primary);
    background-color: #f0f9f9;
}

.filter-chip.selected {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.filter-apply-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-apply {
    width: 100%;
    background-color: var(--bs-primary);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #0eb5a8;
}

.recipe-image-container {
    position: relative;
    width: 100%;
}

.recipe-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.recipe-image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-add-to-planner {
    background-color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
    border: 1px solid #5bb0bd;
}

.btn-add-to-planner:hover {
    background-color: #fff;
}

.btn-add-to-planner img {
    width: 18px;
    height: 18px;
}

.btn-favorite {
    background-color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid #5bb0bd;
}

.btn-favorite:hover {
    background-color: #fff;
}

.btn-favorite img {
    width: 10px;
    height: 10px;
}

.recipe-description {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0px;
    text-align: left;
}

/* Recipe Nutritional Value Section */
.recipe-nutritional-value {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.nutritional-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nutritional-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.nutritional-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
}

.nutritional-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.nutritional-label {
    color: #666666;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.nutritional-value {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
}

/* Recipe Tags Section */
.recipe-tags {
    margin-top: 15px;
}

.tags-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #e0e0e0;
    color: #333333;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
}

/* Recipe Ingredients Section */
.recipe-ingredients {
    margin-top: 15px;
}

.ingredients-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ingredient-item {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* Recipe Sauce Section */
.recipe-sauce {
    margin-top: 15px;
}

.sauce-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.sauce-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sauce-item {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* Recipe Toppings Section */
.recipe-toppings {
    margin-top: 15px;
}

.toppings-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.toppings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topping-item {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* Recipe Directions Section */
.recipe-directions {
    margin-top: 15px;
}

.directions-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.directions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.direction-item {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* Recipe Notes Section */
.recipe-notes {
    margin-top: 15px;
}

.notes-title {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-item {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
}

/* Workout Details Section Styles */
.workout-details-section {
    margin-top: 20px;
    flex-shrink: 0;
    max-height: none;
    width: 100%;
}

/* Make workout-details-section scrollable when directly in add-item-panel (not in edit-content) */
.add-item-panel > .workout-details-section {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 100px);
    height: 100%;
}

.workout-details-title {
    color: #000000;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0px;
}

.workout-video-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.workout-video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.workout-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.workout-video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.workout-main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    bottom: 20px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-button {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-button img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.video-duration {
    color: white;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
}

.video-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.progress-bar {
    flex: 1;
    height: 100%;
    background-color: #000;
}

.progress-arrow {
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.progress-arrow img {
    width: 12px;
    height: 12px;
    filter: invert(1);
}

.workout-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 10px;
}

.workout-right-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-workout-duration {
    background-color: var(--bs-primary);
    border: none;
    border-radius: 20px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.btn-workout-duration img {
    width: 14px;
    height: 14px;
}

.workout-schedule {
    margin-bottom: 15px;
}

.schedule-info {
    background-color: rgba(16, 202, 191, 0.05);
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.edit-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.workout-description {
    color: #333333;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0px;
    text-align: left;
}

/* Workout Tags Section Styles */
.workout-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.workout-tag {
    display: inline-block;
    background-color: rgba(16, 202, 191, 0.1);
    color: var(--bs-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(16, 202, 191, 0.3);
}

/* Workout Metadata Section Styles */
.workout-metadata {
    background-color: rgba(16, 202, 191, 0.05);
    border: 1px solid var(--bs-primary);
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-label {
    color: #10152c;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0px;
}

.metadata-value {
    color: #a7a6a7;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0px;
    text-align: right;
}

/* Ingredients List Styles */
.search-ingredients-container {
    border-radius: 12px;
}

.search-ingredients-title {
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #10152c;
    margin-bottom: 16px;
}

.search-ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.search-ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f0f5ff;
    border-radius: 8px;
    transition: all 0.2s;
}

.search-ingredient-item:hover {
    background: #e0e9ff;
}

.search-ingredient-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-ingredient-name {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #10152c;
}

.search-ingredient-details {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #adb2c0;
    margin-top: 4px;
}

.search-ingredient-edit-container {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-ingredient-name-input,
.search-ingredient-quantity-input,
.search-ingredient-format-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #10152c;
    background: #ffffff;
}

.search-ingredient-name-input {
    flex: 2;
}

.search-ingredient-quantity-input,
.search-ingredient-format-input {
    flex: 1;
    max-width: 80px;
}

.search-ingredient-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.search-ingredient-edit-btn,
.search-ingredient-delete-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.search-ingredient-save-btn,
.search-ingredient-cancel-btn {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-ingredient-edit-btn:hover {
    background: #f0f0f0;
}

.search-ingredient-delete-btn {
    background: transparent;
}

.search-ingredient-delete-btn:hover {
    background: #ffe0e0;
}

.search-ingredient-save-btn {
    background: #cbd0b8;
    border-radius: 20px;
    padding: 8px;
    margin-right: 10px;
}

.search-ingredient-save-btn:hover {
    background: #b5bc9f;
}

.search-ingredient-cancel-btn {
    background: #f3d5df;
    border-radius: 20px;
    padding: 8px;
}

.search-ingredient-cancel-btn:hover {
    background: #e6c4d0;
}

.search-ingredient-edit-btn img,
.search-ingredient-delete-btn img {
    width: 16px;
    height: 16px;
}

.search-ingredient-save-btn img {
    width: 12px;
    height: 12px;
    /* Check icon should be primary color - the SVG should already have the correct color */
}

.search-ingredient-cancel-btn img {
    width: 12px;
    height: 12px;
    /* Color the cancel icon to red (#FF0000) to match React Native */
    filter: brightness(0) saturate(100%) invert(14%) sepia(94%) saturate(7151%) hue-rotate(353deg) brightness(1);
}

/* Find Recipes Button */
.search-find-recipes-footer {
    padding: 16px 0;
    margin-top: 16px;
}

.find-recipes-btn {
    width: 100%;
    padding: 14px 24px;
    background: #5bb0bd;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.find-recipes-btn:hover {
    background: #4a9ba8;
}

.find-recipes-btn:active {
    transform: scale(0.98);
}

/* Edit Schedule Modal Styles */
.edit-schedule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.edit-schedule-modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.edit-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.edit-schedule-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.edit-schedule-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-delete-schedule,
.btn-close-schedule {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-delete-schedule:hover {
    background-color: #fee;
}

.btn-close-schedule:hover {
    background-color: #f3f4f6;
}

.btn-delete-schedule img,
.btn-close-schedule img {
    width: 20px;
    height: 20px;
}

.edit-schedule-content {
    padding: 24px;
}

.workout-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.workout-thumbnail .thumbnail-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.workout-thumbnail .workout-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 16px;
}

.workout-thumbnail .workout-title-overlay {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.workout-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f0f9fb;
    border-radius: 12px;
    margin-bottom: 24px;
}

.workout-preview .duration-icon {
    width: 20px;
    height: 20px;
}

.workout-preview .duration-text {
    font-size: 14px;
    font-weight: 600;
    color: #2c7a89;
}

.schedule-section {
    margin-bottom: 24px;
}

.schedule-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.schedule-date-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.schedule-date-display:hover {
    background: #f3f4f6;
}

.selected-schedule-date {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.edit-date-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.date-picker-container {
    margin-top: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

#edit-schedule-calendar {
    width: 100%;
}

.time-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.time-slot:hover {
    background: #f3f4f6;
}

.time-slot-value {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
}

.edit-time-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.btn-proceed-update {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5bb0bd 0%, #4a9aa6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    margin-top: 24px;
}

.btn-proceed-update:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 176, 189, 0.3);
}

.btn-proceed-update:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .edit-schedule-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }
}

/* Time Picker Modal Styles */
.time-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.time-picker-modal {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.time-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.time-picker-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.btn-close-time-picker {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-close-time-picker:hover {
    background-color: #f3f4f6;
}

.btn-close-time-picker img {
    width: 20px;
    height: 20px;
}

.time-picker-list {
    overflow-y: auto;
    padding: 8px;
    max-height: 500px;
}

.time-option {
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-size: 15px;
    color: #374151;
    text-align: center;
    margin-bottom: 4px;
}

.time-option:hover {
    background-color: #f3f4f6;
}

.time-option.selected {
    background: linear-gradient(135deg, #5bb0bd 0%, #4a9aa6 100%);
    color: white;
    font-weight: 600;
}

/* Mobile responsive for time picker */
@media (max-width: 640px) {
    .time-picker-modal {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        top: auto;
    }

    .time-picker-overlay {
        align-items: flex-end;
    }
}

/* Additional responsive styles for modals and forms */
@media (max-width: 768px) {
    .recipe-details-header .recipe-title {
        font-size: 16px;
    }

    .note-edit-screen .note-title,
    .workout-edit-screen .workout-title,
    .recipe-edit-screen .recipe-title {
        font-size: 16px;
    }

    .btn-update {
        font-size: 13px;
        padding: 6px 12px;
        min-height: 40px;
    }

    .btn-delete,
    .btn-cancel {
        min-height: 40px;
        min-width: 40px;
    }

    .btn-save-changes {
        font-size: 14px;
        padding: 12px 24px;
        min-height: 44px;
    }

    .edit-schedule-header h3 {
        font-size: 16px;
    }

    .schedule-label {
        font-size: 13px;
    }

    .selected-schedule-date,
    .time-slot-value {
        font-size: 14px;
    }

    .btn-proceed-update {
        font-size: 14px;
        padding: 14px;
    }

    .time-picker-header h4 {
        font-size: 16px;
    }

    .time-option {
        padding: 14px 16px;
        font-size: 14px;
    }

    .matched-ingredients-modal-title {
        font-size: 16px;
    }

    .matched-ingredients-modal-subtitle {
        font-size: 11px;
    }

    .matched-ingredient-item {
        font-size: 11px;
    }

    .matched-ingredients-modal-done {
        font-size: 13px;
        padding: 8px 20px;
    }

    .search-tip-label,
    .search-tip-text {
        font-size: 13px;
    }

    .search-footer-text {
        font-size: 13px;
    }

    .search-footer-filter-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .recipe-description,
    .workout-description {
        font-size: 13px;
    }

    .nutritional-title {
        font-size: 14px;
    }

    .nutritional-label,
    .nutritional-value {
        font-size: 13px;
    }

    .tags-title,
    .ingredients-title,
    .directions-title,
    .notes-title {
        font-size: 14px;
    }

    .tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .ingredient-item,
    .direction-item,
    .note-item {
        font-size: 13px;
    }

    .workout-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .metadata-label,
    .metadata-value {
        font-size: 13px;
    }

    .search-ingredients-title {
        font-size: 14px;
    }

    .search-ingredient-name {
        font-size: 14px;
    }

    .search-ingredient-details {
        font-size: 12px;
    }

    .find-recipes-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .recipe-details-header .recipe-title {
        font-size: 14px;
    }

    .note-edit-screen .note-title,
    .workout-edit-screen .workout-title,
    .recipe-edit-screen .recipe-title {
        font-size: 14px;
    }

    .btn-update {
        font-size: 12px;
        padding: 6px 10px;
        min-height: 38px;
    }

    .btn-delete,
    .btn-cancel {
        min-height: 38px;
        min-width: 38px;
    }

    .btn-save-changes {
        font-size: 13px;
        padding: 10px 20px;
        min-height: 40px;
    }

    .btn-delete img,
    .btn-cancel img {
        width: 14px;
        height: 14px;
    }

    .edit-schedule-header h3 {
        font-size: 14px;
    }

    .schedule-label {
        font-size: 12px;
    }

    .selected-schedule-date,
    .time-slot-value {
        font-size: 13px;
    }

    .btn-proceed-update {
        font-size: 13px;
        padding: 12px;
    }

    .time-picker-header h4 {
        font-size: 14px;
    }

    .time-option {
        padding: 12px 14px;
        font-size: 13px;
    }

    .matched-ingredients-modal-title {
        font-size: 14px;
    }

    .matched-ingredients-modal-subtitle {
        font-size: 10px;
    }

    .matched-ingredient-item {
        font-size: 10px;
    }

    .matched-ingredients-modal-done {
        font-size: 12px;
        padding: 8px 16px;
    }

    .search-tip-label,
    .search-tip-text {
        font-size: 12px;
    }

    .search-footer-text {
        font-size: 12px;
    }

    .search-footer-filter-btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    .recipe-description,
    .workout-description {
        font-size: 12px;
    }

    .nutritional-title {
        font-size: 13px;
    }

    .nutritional-label,
    .nutritional-value {
        font-size: 12px;
    }

    .tags-title,
    .ingredients-title,
    .directions-title,
    .notes-title {
        font-size: 13px;
    }

    .tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .ingredient-item,
    .direction-item,
    .note-item {
        font-size: 12px;
    }

    .workout-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .metadata-label,
    .metadata-value {
        font-size: 12px;
    }

    .search-ingredients-title {
        font-size: 13px;
    }

    .search-ingredient-name {
        font-size: 13px;
    }

    .search-ingredient-details {
        font-size: 11px;
    }

    .find-recipes-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .filter-modal-header {
        padding: 12px 16px;
    }

    .btn-cancel,
    .btn-clear {
        font-size: 14px;
    }

    .filter-modal-title {
        font-size: 14px;
    }

    .filter-modal-content {
        padding: 16px;
    }

    .filter-section-title {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .filter-search-input {
        font-size: 14px;
        padding: 10px 12px;
    }

    .filter-chip {
        font-size: 11px;
        padding: 6px 10px;
    }

    .btn-apply {
        font-size: 14px;
        padding: 14px;
    }

    .recipe-details-header,
    .workout-details-header {
        padding: 10px 0px;
    }

    .recipe-details-title,
    .workout-details-title {
        font-size: 14px;
    }

    .btn-back {
        width: 32px;
        height: 32px;
    }

    .btn-back img {
        width: 14px;
        height: 14px;
    }

    .btn-add-to-planner {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-add-to-planner img {
        width: 16px;
        height: 16px;
    }

    .workout-main-image,
    .recipe-main-image {
        height: 160px;
    }

    .schedule-info {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-workout-duration {
        font-size: 11px;
        padding: 5px 8px;
    }

    .video-duration {
        font-size: 12px;
    }

    .play-button {
        width: 40px;
        height: 40px;
    }

    .play-button img {
        width: 16px;
        height: 16px;
    }
}

/* Extra small mobile screens */
@media (max-width: 375px) {
    .week-navigation .nav-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .week-range {
        font-size: 11px;
        margin: 0 4px;
    }

    .date-text {
        font-size: 11px;
    }

    .fc-col-header-cell {
        padding: 2px 0;
    }

    .fc-col-header-cell .fc-day-header-weekday {
        font-size: 9px;
    }

    .fc-col-header-cell .fc-day-header-number {
        width: 18px;
        height: 18px;
    }

    .fc-col-header-cell .fc-day-header-number span {
        font-size: 8px;
    }

    .fc-event {
        font-size: 0.6em;
    }

    .fc-event-category-label {
        font-size: 6px;
    }

    .fc-event-category-label + .fc-event-title {
        font-size: 8px;
    }

    .fc-timegrid-slot {
        height: 125px;
    }

    .fc-timegrid-slot-label-cushion {
        font-size: 8px !important;
    }

    .day-view-left,
    .day-view-right {
        padding: 8px;
    }

    .horizontal-date-picker {
        padding: 8px 15px;
        margin-bottom: 8px;
    }

    .date-picker-header {
        margin-bottom: 5px;
    }

    .day-strip {
        gap: 2px;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .day-cell {
        padding: 4px 2px;
        min-width: 32px;
        flex-shrink: 0;
    }

    .day-cell.past-date {
        min-width: 32px;
    }

    .day-name {
        font-size: 7px;
    }

    .day-number {
        font-size: 10px;
    }

    .datetime-picker {
        margin-bottom: 10px;
    }

    .tab-btn {
        padding: 6px 10px 10px 10px;
        font-size: 11px;
    }

    .add-note-btn {
        width: 50px;
        height: 36px;
    }

    .add-item-header h3 {
        font-size: 13px;
    }

    .btn-add {
        width: 42px;
        height: 34px;
    }

    .btn-discard {
        font-size: 10px;
        padding: 4px 6px;
    }

    .recipe-tab {
        font-size: 11px;
        padding: 5px 8px;
    }

    .recipe-image-container {
        min-width: 100px !important;
        height: 100px !important;
    }

    .recipe-title {
        font-size: 0.75em;
    }

    .recipe-selected-card .recipe-title {
        font-size: 0.75em;
    }

    .recipe-details-header .recipe-title {
        font-size: 13px;
    }

    .recipe-rating,
    .recipe-time {
        font-size: 9px;
        padding: 2px 4px;
    }

    .action-btn {
        width: 26px;
        height: 26px;
    }

    .action-btn img {
        width: 12px;
        height: 12px;
    }

    .search-input {
        font-size: 11px;
        padding: 6px 28px 6px 28px !important;
    }

    .search-icon,
    .filter-icon {
        width: 14px;
        height: 14px;
    }

    .datetime-row {
        gap: 2px;
    }

    .time-group {
        gap: 2px;
    }

    .time-display {
        font-size: 11px;
        padding: 5px 6px;
        min-width: 60px;
        flex-shrink: 0;
    }

    .selected-date-display {
        font-size: 11px;
        padding: 5px 8px;
        flex-shrink: 0;
    }

    .time-separator {
        font-size: 12px;
        flex-shrink: 0;
    }

    .form-label {
        font-size: 11px;
    }

    .title-input,
    .description-textarea {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }

    .custom-select {
        font-size: 11px;
        padding: 7px 8px;
    }

    .day-button {
        width: 32px !important;
        height: 32px !important;
        font-size: 11px !important;
    }

    .notification-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .portions-btn {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .portions-count {
        font-size: 12px;
    }

    .day-calendar-label {
        font-size: 9px;
        min-width: 55px;
    }

    .day-calendar-label:nth-child(4n + 1) {
        font-size: 10px;
    }
}

/* Landscape mode for tablets */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .day-view-content {
        flex-direction: row;
    }

    .day-view-left {
        border-right: 2px solid #e0e0e0;
        border-bottom: none;
    }

    .recipe-card,
    .recipe-selected-card {
        flex-direction: row;
        text-align: left;
    }

    .recipe-image-container {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Add Item Drawer (Side Panel) Styles */
/* Overlay top is set dynamically via JS to align with the bottom of .bannerEval */
/* Overlay left matches sidebar width (excludes sidebar from dimming); uses same var as #sideBar */
.add-item-drawer-overlay {
    --add-item-drawer-overlay-left: var(--layout2-sidebar-width, 265px);
    position: fixed;
    top: var(--add-item-drawer-overlay-top, 0px);
    left: var(--add-item-drawer-overlay-left);
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 10000;
}

@media (max-width: 991px) {
    .add-item-drawer-overlay {
        --add-item-drawer-overlay-left: 0;
        padding: 0 20px;
    }
}

.recipe-planner-drawer {
    border-radius: 8px 0 0 8px;
    background-color: #fff;
    display: flex;
    flex: 1;
    min-width: 359px;
    width: 800px;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100vh;
    padding-top: 16px;
    flex-direction: column;
    overflow: hidden;
    align-items: stretch;
    justify-content: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.drawer-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 40px 100px;
    color: #000;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px 16px;
}

.header-content {
    display: flex;
    min-width: 240px;
    flex-direction: column;
    align-items: stretch;
    width: 252px;
    margin: auto 0;
}

.drawer-title,
.modal-title {
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.date-time-info {
    display: flex;
    margin-top: 4px;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 400;
    flex-wrap: wrap;
}

.date-time-text {
    margin: auto 0;
}

.calendar-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 16px;
    flex-shrink: 0;
}

.edit-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: auto 0;
}

.edit-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 16px;
    flex-shrink: 0;
}

/* Inline datetime selector */
.datetime-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 4px;
    font: 500 11px/1.6 Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.dt-sel-date-container,
.dt-sel-time-container {
    border-radius: 21px;
    background-color: rgba(91, 176, 189, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    cursor: pointer;
    user-select: none;
}

.dt-sel-date-container {
    min-width: 110px;
}

.dt-sel-time-container {
    min-width: 80px;
}

.dt-sel-date-text,
.dt-sel-time-text {
    flex: 1;
    margin: auto 0;
    white-space: nowrap;
}

.dt-sel-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 16px;
    flex-shrink: 0;
    margin-left: 4px;
}

.dt-sel-confirm-btn,
.dt-sel-cancel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.dt-sel-action-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Drawer time picker overlay */
.dt-sel-time-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-sel-time-picker-modal {
    background: #fff;
    border-radius: 12px;
    width: 280px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dt-sel-time-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.dt-sel-time-picker-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.dt-sel-time-picker-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    color: #666;
}

.dt-sel-time-picker-list {
    overflow-y: auto;
    padding: 8px 0;
}

.dt-sel-time-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.15s;
}

.dt-sel-time-option:hover {
    background-color: rgba(91, 176, 189, 0.1);
}

.dt-sel-time-option.selected {
    background-color: rgba(91, 176, 189, 0.2);
    font-weight: 600;
    color: #5bb0bd;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 24px;
    flex-shrink: 0;
}

/* Drawer category navigation - scoped to avoid conflicts with search section */
.recipe-planner-drawer .add-item-drawer-list-view > .category-navigation,
.recipe-planner-drawer > .category-navigation {
    display: flex;
    margin-top: 12px;
    align-items: flex-start;
    gap: 8px;
    color: #000;
    flex-wrap: wrap;
    padding: 0 20px;
    font:
        400 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .category-navigation .category-tab {
    border-radius: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.recipe-planner-drawer .category-navigation .category-tab.active {
    color: #5bb0bd;
    font-weight: 600;
    border: 2px solid #5bb0bd;
}

/* Upcoming feature tabs - disabled, grayed out */
.recipe-planner-drawer .category-navigation .category-tab.upcoming-feature,
.recipe-planner-drawer .category-navigation .category-tab:disabled {
    opacity: 0.5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Add item drawer search - scoped under drawer, separate from category-navigation */
.recipe-planner-drawer .add-item-drawer-list-view > .add-item-drawer-search,
.recipe-planner-drawer > .add-item-drawer-search {
    overflow-x: auto;
    display: flex;
    padding-top: 10px !important;
    margin-top: 12px;
    margin-bottom: 0;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 8px;
}

/* Search box and filter on same row - full path to avoid affecting category-navigation */
.recipe-planner-drawer .add-item-drawer-search .search-form {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

/* Search input container - Frame 1618874300 design specs */
.recipe-planner-drawer .add-item-drawer-search .search-input-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 7px;
    isolation: isolate;
    height: 42px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #ff4c4c 0%, #ff9500 28%, #a400c1 65%, #0015fc 100%) border-box;
    border: 1.3px solid transparent;
    border-radius: 8px;
    flex: none;
    flex-grow: 1;
    min-width: 0;
    position: relative;
}

.recipe-planner-drawer .add-item-drawer-search .search-icon {
    width: 24px;
    height: 24px;
    flex: none;
    flex-grow: 0;
    position: absolute;
    object-fit: contain;
    object-position: center;
    z-index: 2;
}

.recipe-planner-drawer .add-item-drawer-search .search-input,
.recipe-planner-drawer .add-item-drawer-search .modal-search-input.search-input {
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #10152c;
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    padding: 0 0 0 36px !important;
    z-index: 1;
}

.recipe-planner-drawer .add-item-drawer-search .search-input::placeholder,
.recipe-planner-drawer .add-item-drawer-search .modal-search-input.search-input::placeholder {
    color: #10152c;
    opacity: 0.3;
}

.recipe-planner-drawer .add-item-drawer-search .search-button,
.drawer-ai-input-row-wrapper .drawer-ai-filter-btn {
    box-sizing: border-box;
    flex: none;
    flex-shrink: 0;
    display: flex;
    height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: none;
    cursor: pointer;
}

.recipe-planner-drawer .add-item-drawer-search .filter-icon,
.drawer-ai-input-row-wrapper .drawer-ai-filter-btn .filter-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

/* Filter tabs - separate from add-item-drawer-search, sibling element */
.recipe-planner-drawer .add-item-drawer-filter-tabs {
    display: flex;
    margin-top: 8px;
    padding: 0 20px 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    text-align: center;
    justify-content: flex-start;
    font:
        300 12px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-planner-drawer .add-item-drawer-filter-tabs .filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0 8px 8px;
}

.recipe-planner-drawer .add-item-drawer-filter-tabs .filter-tab.active {
    border-color: #000;
    border-bottom-width: 1px;
    font-weight: 600;
}

/* Recipe Filter Panel (drawer dropdown) — prefixed rcpf- to avoid collisions */
.rcpf-wrap {
    position: relative;
    padding: 0 20px;
    height: 0;
}

.rcpf-panel {
    position: absolute;
    max-height: calc(100vh - 300px);
    top: -65px;
    left: 15px;
    right: 0;
    z-index: 100;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 68px rgba(0, 0, 0, 0.25);
    display: flex;
    max-width: 766px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    margin-top: 0;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    overflow-y: auto;
}

.rcpf-header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 40px 100px;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.rcpf-search-row {
    align-self: stretch;
    display: flex;
    min-width: 240px;
    align-items: center;
    gap: 12px;
    margin: auto 0;
    font-size: 12px;
    line-height: 1.6;
}

.rcpf-search-label {
    color: #000;
    font-weight: 500;
    white-space: nowrap;
}

.rcpf-search-box {
    box-sizing: border-box;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 8px;
    color: #000;
    font-weight: 300;
    width: 200px;
    padding: 7px 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.rcpf-panel .rcpf-search-input {
    width: 100% !important;
    flex: 1;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px !important;
    color: inherit;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.rcpf-panel .rcpf-search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.rcpf-panel .rcpf-search-input:focus {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.rcpf-close-btn {
    border-radius: 8px;
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.rcpf-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rcpf-close-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.rcpf-divider {
    min-height: 1px;
    margin-top: 12px;
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.rcpf-sections {
    display: flex;
    margin-top: 12px;
    align-items: flex-start;
    gap: 10px;
    justify-content: flex-start;
}

.rcpf-col {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    width: 141px;
    flex: 0 0 auto;
}

.rcpf-col--narrow {
    width: 130px;
}

.rcpf-col-title {
    color: #000;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.rcpf-checks {
    margin-top: 12px;
    width: 100%;
}

.rcpf-check-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.rcpf-check-row:first-child {
    margin-top: 0;
}

.rcpf-panel .rcpf-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 3px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    border: 1px solid #a8a8a8 !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative !important;
    flex-shrink: 0;
    vertical-align: middle !important;
    opacity: 1 !important;
}

.rcpf-panel .rcpf-checkbox:checked {
    background-color: #5bb0bd !important;
    border-color: #5bb0bd !important;
}

.rcpf-panel .rcpf-checkbox:checked::after {
    content: '' !important;
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 1 !important;
}

.rcpf-panel .rcpf-label {
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    padding-left: 0 !important;
    display: inline !important;
}

.rcpf-footer {
    position: sticky;
    bottom: -15px;
    align-self: flex-start;
    display: flex;
    margin-top: auto;
    padding: 12px 0 16px;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background-color: #fff;
}

.rcpf-apply-btn {
    border-radius: 8px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.rcpf-apply-btn:hover {
    background-color: #51a6b3;
}

.rcpf-apply-btn:active {
    background-color: #479ca9;
}

.rcpf-clear-btn {
    border-radius: 8px;
    background-color: transparent;
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    color: #000;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.rcpf-clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rcpf-clear-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* ── Workout drawer filter panel (wkpf-*) ─────────────────────────────────── */

.wkpf-wrap {
    position: relative;
    padding: 0 20px;
    height: 0;
}

.wkpf-panel {
    position: absolute;
    max-height: calc(100vh - 300px);
    top: -60px;
    left: 15px;
    right: 0;
    z-index: 100;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 68px rgba(0, 0, 0, 0.25);
    display: flex;
    max-width: 766px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    margin-top: 0;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    overflow-y: auto;
}

.wkpf-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.wkpf-close-btn {
    border-radius: 8px;
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.wkpf-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.wkpf-close-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.wkpf-divider {
    min-height: 1px;
    margin-top: 12px;
    width: 100%;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.wkpf-sections {
    display: flex;
    margin-top: 12px;
    align-items: flex-start;
    gap: 10px;
    justify-content: flex-start;
    overflow-y: visible;
}

.wkpf-col {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    width: 141px;
    flex: 0 0 auto;
}

.wkpf-col-title {
    color: #000;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.wkpf-checks {
    margin-top: 12px;
    width: 100%;
}

.wkpf-check-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.wkpf-check-row:first-child {
    margin-top: 0;
}

.wkpf-panel .wkpf-checkbox {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 3px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    border: 1px solid #a8a8a8 !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative !important;
    flex-shrink: 0;
    vertical-align: middle !important;
    opacity: 1 !important;
}

.wkpf-panel .wkpf-checkbox:checked {
    background-color: #5bb0bd !important;
    border-color: #5bb0bd !important;
}

.wkpf-panel .wkpf-checkbox:checked::after {
    content: '' !important;
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 1 !important;
}

.wkpf-panel .wkpf-label {
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    padding-left: 0 !important;
    display: inline !important;
}

.wkpf-footer {
    position: sticky;
    bottom: -15px;
    display: flex;
    padding: 12px 0 16px;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background-color: #fff;

    margin-top: auto;
}

.wkpf-apply-btn {
    border-radius: 8px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.wkpf-apply-btn:hover {
    background-color: #51a6b3;
}

.wkpf-apply-btn:active {
    background-color: #479ca9;
}

.wkpf-clear-btn {
    border-radius: 8px;
    background-color: transparent;
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    color: #000;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wkpf-clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.wkpf-clear-btn:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.add-item-drawer-content.recipes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-items: start;
    gap: 16px;
    padding: 0 16px 24px;
}

.recipes-column .drawer-empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 120px;
}

/* Center empty states in workout drawer (no history, no favorites, no recommended) */
.drawer-workout-column .drawer-empty-message,
#modalWorkoutGrid .drawer-empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 120px;
}

.recipes-column {
    min-width: 240px;
    flex: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}

.recipe-card {
    border-radius: 8px;
    background-color: #f0f5ff;
    display: flex;
    flex-direction: row;
    height: 150px;
    min-height: 150px;
    width: 100%;
    max-width: 374px;
    align-items: stretch;
    overflow: hidden;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding: 0;
    gap: 0;
}

.recipe-card:first-child {
    margin-top: 0;
}

.recipe-image-container {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 0;
    overflow: hidden;
}

.recipe-image {
    object-fit: cover;
    width: 150px;
    height: 150px;
    z-index: 0;
    flex-shrink: 0;
    border-radius: 0;
}

/* Recipe card rating - scoped to override global .star-icon (position: absolute for search bar) */
.recipe-card .rating-badge {
    border-radius: 64px;
    background-color: #fff;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
    left: 10px;
    top: 10px;
    padding: 4px 6px;
}

.recipe-card .star-icon {
    position: static;
    display: flex;
    width: 12px;
    flex-shrink: 0;
    height: 12px;
    margin: auto 0;
    background-color: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.recipe-card .rating-value {
    color: #10152c;
    margin: auto 0;
    font-size: 12px;
    font-weight: 400;
}

.recipe-content {
    flex: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.recipe-info {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    font-family:
        Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
}

.recipe-title {
    color: #10152c;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin: 0;
}

.recipe-timing {
    display: flex;
    margin-top: 6px;
    flex-direction: column;
    align-items: stretch;
    font-size: 10px;
    color: #000;
    font-weight: 400;
}

.timing-item {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    margin-bottom: 0px;
}

.timing-item:last-child {
    margin-bottom: 0;
}

.timing-label {
    margin: auto 0;
}

.timing-value {
    margin: auto 0;
}

.recipe-actions {
    display: flex;
    margin-top: 0;
    width: 100%;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding-top: 0;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-icon {
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #cee7eb;
    border-radius: 17px;
    object-fit: contain;
    object-position: center;
    flex: none;
    flex-grow: 0;
    cursor: pointer;
}

.action-icon[data-action='favorite'].favorited {
    background: #E2676C;
    border-color: #E2676C;
}

.action-icon[data-action='add-to-recommend'].recommended {
    background: #5BB0BD;
    border-color: #5BB0BD;
}

.recipe-card .add-button {
    margin-left: 0;
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: #fff;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 6px 8px;
    font:
        500 10px Montserrat,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.recipe-card .add-button:hover {
    background-color: #4a9ba8;
}

.add-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 17px;
    flex-shrink: 0;
}

.drawer-load-more-btn,
.modal-load-more-btn {
    padding: 12px 24px;
    border: 2px solid #5bb0bd;
    background: white;
    color: #5bb0bd;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-load-more-btn:hover,
.modal-load-more-btn:hover {
    background-color: #5bb0bd;
    color: white;
}

/* ============================
   Drawer AI Search Screen
   ============================ */

.drawer-ai-search-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.drawer-ai-search-screen.has-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Completed search bar — shown after AI search completes in drawer */
.drawer-ai-search-screen .drawer-ai-completed-search {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.drawer-ai-completed-search .search-input-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    gap: 7px;
    isolation: isolate;
    height: 42px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(90deg, #ff4c4c 0%, #ff9500 28%, #a400c1 65%, #0015fc 100%) border-box;
    border: 1.3px solid transparent;
    border-radius: 8px;
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: text;
}

.drawer-ai-completed-search .search-icon {
    width: 24px;
    height: 24px;
    flex: none;
    position: absolute;
    object-fit: contain;
    object-position: center;
    z-index: 2;
}

.drawer-ai-completed-search .search-input {
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 15px !important;
    line-height: 17px;
    color: #10152c;
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    padding: 0 0 0 36px !important;
    z-index: 1;
    cursor: default;
}

.drawer-ai-completed-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    z-index: 2;
    margin-left: auto;
}

.drawer-ai-completed-clear-btn img {
    width: 18px;
    height: 18px;
}

.drawer-ai-completed-search .search-button {
    box-sizing: border-box;
    flex: none;
    flex-shrink: 0;
    display: flex;
    height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: none;
    cursor: pointer;
}

.drawer-ai-completed-search .filter-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

/* AI input box + filter button in the same row */
.drawer-ai-input-row-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.drawer-ai-input-row-wrapper .drawer-ai-input-box {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.drawer-ai-input-row-wrapper .drawer-ai-filter-btn {
    flex-shrink: 0;
    margin-top: 3px;
}

/* AI Input Box — sits in place of the original search bar */
.drawer-ai-input-box {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 0;
}

.drawer-ai-input-box .ai-glow-layer {
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    height: 94px;
    pointer-events: none;
    z-index: 0;
}

.drawer-ai-input-box .ai-glow-blob {
    position: absolute;
    top: 0;
    height: 100%;
    opacity: 0.4;
    filter: blur(17px);
    border-radius: 8px;
}

.drawer-ai-input-box .ai-glow-blob.red {
    left: 0;
    width: 38.8%;
    background: #ff4c4c;
}

.drawer-ai-input-box .ai-glow-blob.orange {
    left: 19.9%;
    width: 39.4%;
    background: #ff9500;
}

.drawer-ai-input-box .ai-glow-blob.purple {
    left: 40.7%;
    width: 38.8%;
    background: #a400c1;
}

.drawer-ai-input-box .ai-glow-blob.blue {
    left: 60.9%;
    width: 39.1%;
    background: #0015fc;
}

.drawer-ai-input-box .ai-input-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-ai-input-row {
    display: flex;
    gap: 4px;
    width: 100%;
}

.drawer-ai-input-row .ai-search-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.drawer-ai-input-row .ai-search-textarea,
.drawer-ai-input-row .ai-search-textarea:focus {
    flex: 1;
    min-height: 28px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 15px !important;
    line-height: 1.5;
    color: #10152c;
    resize: none;
    padding: 0;
    overflow-y: hidden;
    word-wrap: break-word;
    white-space: pre-wrap;
    -webkit-appearance: none;
    appearance: none;
}

.drawer-ai-input-row .ai-search-textarea::placeholder {
    color: #10152c;
    opacity: 0.2;
    font-style: normal;
}

.drawer-ai-input-row .ai-prompt-display {
    display: none;
    flex: 1;
    font-family: Arial, sans-serif;
    font-size: 15px !important;
    line-height: 1.5;
    color: #10152c;
    padding: 4px 0;
    cursor: text;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.drawer-ai-input-row .ai-clear-btn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: none;
}

.drawer-ai-input-row .ai-clear-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drawer-ai-input-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.drawer-ai-input-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.drawer-ai-health-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 4px 8px;
    background: #f0f5ff;
    border-radius: 42px;
    border: none;
    cursor: pointer;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
}

.drawer-ai-health-pill .health-info-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.drawer-ai-icon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-ai-image-upload {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.drawer-ai-photo-btn {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 9px 0 1px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: none;
    cursor: pointer;
    gap: 0;
    white-space: nowrap;
}

.drawer-ai-photo-btn .photo-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.drawer-ai-photo-btn .photo-icon-wrap img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.drawer-ai-photo-btn .photo-label {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #000;
}

.drawer-ai-photo-btn .photo-file-input,
.drawer-ai-image-upload .photo-file-input {
    display: none;
}

.drawer-ai-photo-btn-icon-only {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 40px;
    border-color: #deeff2;
}

.drawer-ai-photo-btn-icon-only .photo-icon-wrap {
    width: 36px;
    height: 36px;
}

.drawer-ai-photo-btn-icon-only .photo-icon-wrap img {
    width: 30px;
    height: 30px;
}

.drawer-ai-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 40px;
    border: 1px solid #deeff2;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}

.drawer-ai-mic-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Drawer AI Status (Analysing Prompt) */
.drawer-ai-status {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 0 40px;
    width: 100%;
}

.drawer-ai-status.is-visible {
    display: flex;
}

.drawer-ai-status-stars {
    position: relative;
    width: 88px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-ai-status-star {
    position: absolute;
}

.drawer-ai-status-star-1 {
    top: 0;
    right: 12px;
    width: 44px;
    height: 44px;
    color: #0015fc;
    animation:
        drawerStar1Scale 1s ease-in-out infinite alternate,
        drawerStar1Color 1.2s ease-in-out infinite alternate;
}

.drawer-ai-status-star-2 {
    top: -10px;
    left: 20px;
    width: 33px;
    height: 33px;
    color: #0015fc;
    animation:
        drawerStar2Scale 2s ease-in-out infinite alternate,
        drawerStar2Color 1.2s ease-in-out infinite alternate;
}

@keyframes drawerStar1Scale {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); }
}

@keyframes drawerStar2Scale {
    0% { transform: scale(1); }
    100% { transform: scale(0.3); }
}

@keyframes drawerStar1Color {
    0% { color: #0015fc; }
    100% { color: #a400c1; }
}

@keyframes drawerStar2Color {
    0% { color: #a400c1; }
    100% { color: #0015fc; }
}

.drawer-ai-status-text {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(90deg, #ff4c4c 0%, #ff9500 27.88%, #a400c1 65.38%, #0015fc 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: drawerGradientShift 2s ease-in-out infinite;
}

@keyframes drawerGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Drawer AI Results Container */
.drawer-ai-results {
    display: none;
    flex-direction: column;
    padding: 0 16px;
    width: 100%;
}

.drawer-ai-results.is-visible {
    display: flex;
}

.drawer-ai-results .ai-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.drawer-ai-results .drawer-ai-result-item {
    break-inside: avoid;
    margin-bottom: 16px;
}

.drawer-ai-card {
    border-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #f0f5ff;
    display: flex;
    flex-direction: row;
    height: 150px;
    min-height: 150px;
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    overflow: hidden;
    justify-content: flex-start;
    margin-bottom: 0;
    padding: 0;
    gap: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.drawer-ai-card:hover {
    box-shadow: 0 4px 12px rgba(91, 176, 189, 0.15);
}

.drawer-ai-card .recipe-image-container {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.drawer-ai-card .recipe-image-container img {
    object-fit: cover;
    width: 150px;
    height: 150px;
    z-index: 0;
    flex-shrink: 0;
    border-radius: 0;
}

.drawer-ai-card .recipe-rating {
    border-radius: 64px;
    background-color: #fff;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: center;
    left: 10px;
    top: 10px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 400;
    color: #10152c;
}

.drawer-ai-card .recipe-rating img {
    width: 12px;
    height: 12px;
}

.drawer-ai-card .recipe-info {
    flex: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 0;
    font-family: Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.drawer-ai-card .recipe-title {
    color: #10152c;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin: 0;
}

.drawer-ai-card .recipe-timing {
    display: flex;
    margin-top: 8px;
    flex-direction: column;
    align-items: stretch;
    font-size: 10px;
    color: #000;
    font-weight: 400;
}

.drawer-ai-card .timing-item {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    margin-bottom: 4px;
}

.drawer-ai-card .timing-item:last-child {
    margin-bottom: 0;
}

.drawer-ai-card-actions {
    display: flex;
    margin-top: 0;
    width: 100%;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding-top: 0;
}

.drawer-ai-card-actions .action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-ai-card-actions .action-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #cee7eb;
    background: #ffffff;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.drawer-ai-card-actions .action-btn:hover {
    transform: scale(1.05);
}

.drawer-ai-card-actions .action-btn img {
    width: 14px;
    height: 14px;
}

.drawer-ai-card .add-button {
    margin-left: 0;
    border-radius: 17px;
    background-color: #5bb0bd;
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    color: #fff;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 6px 8px;
    font: 500 10px Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.drawer-ai-card .add-button:hover {
    background-color: #4a9ba8;
}

.drawer-ai-card .add-icon {
    aspect-ratio: 1;
    object-fit: contain;
    width: 17px;
    flex-shrink: 0;
}

.drawer-ai-results .ai-reason-card {
    font-family: Montserrat, sans-serif;
}

.drawer-ai-results .ai-reason-title {
    font-size: 12px;
}

.drawer-ai-results .ai-reason-icon {
    width: 12px;
    height: 12px;
}

.drawer-ai-results .ai-reason-toggle {
    font-size: 11px;
    padding: 2.5px 12.5px;
    border-radius: 8px;
}

.drawer-ai-results .ai-reason-text {
    font-size: 12px;
    line-height: 1.6;
}

.drawer-ai-results .ai-reason-card {
    padding: 12px;
    gap: 8px;
}

.drawer-ai-results .ai-added-pill {
    font-size: 10px;
    padding: 2px 8px 2px 5px;
    border-radius: 5px;
}

.drawer-ai-results .ai-added-icon {
    width: 12px;
    height: 12px;
}

/* Drawer filter tabs in AI mode — hidden until results load */
.drawer-ai-filter-tabs {
    display: none;
    padding: 0 20px 8px;
    align-items: stretch;
    color: #000;
    white-space: nowrap;
    justify-content: flex-start;
    font: 300 12px Montserrat, -apple-system, Roboto, Helvetica, sans-serif;
}

.drawer-ai-filter-tabs .filter-tab {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    padding: 0 8px 8px;
}

.drawer-ai-filter-tabs .filter-tab.active {
    border-color: #000;
    border-bottom-width: 1px;
    font-weight: 600;
}

/* Animation for AI input box appearing */
@keyframes drawerAiInputSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drawer-ai-input-box {
    animation: drawerAiInputSlideIn 0.3s ease-out;
}

/* Image preview in AI input */
.drawer-ai-image-preview {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.drawer-ai-image-preview.is-visible {
    display: flex;
}

.drawer-ai-image-preview img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.drawer-ai-image-preview .remove-preview-btn {
    width: 16px;
    height: 16px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.drawer-ai-image-preview .remove-preview-btn img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Sentinel for infinite scroll in recipe drawer - invisible, minimal height */
.drawer-infinite-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

/* Loading more indicator for drawer AI search infinite scroll */
.drawer-ai-loading-more {
    text-align: center;
    padding: 16px 20px;
    color: #888;
    font-size: 13px;
    font-family: Montserrat, sans-serif;
    width: 100%;
}

/* Sentinel for infinite scroll in workout list - invisible, minimal height */
.workout-infinite-sentinel {
    height: 1px;
    width: 100%;
    visibility: hidden;
    pointer-events: none;
}

/* Responsive styles for drawer */
@media (max-width: 768px) {
    .add-item-drawer-overlay {
        padding: 0;
    }

    .recipe-planner-drawer {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .add-item-drawer-content.recipes-grid {
        grid-template-columns: 1fr;
    }

    .recipe-planner-drawer .category-navigation {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .recipe-planner-drawer .category-navigation .category-tab {
        white-space: nowrap;
    }
}
.fc-dayGridMonth-view .fc-col-header-cell {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    padding: 12px 0;
  }
  
  .fc-dayGridMonth-view .fc-col-header-cell-cushion {
    text-decoration: none;
  }
  


.fc .fc-daygrid-day-frame {
    padding: 8px;
  }
  
  .fc-theme-standard td,
  .fc-theme-standard th {
    border: 1px solid #e6e6e6;
  }
  
  /* Scrollgrid border controlled globally above – no duplicate here */

  .fc .fc-daygrid-day {
    background: #fff;
    height: 140px;
    vertical-align: top;
  }

  .fc .fc-day-header-content:nth-child(2) {
    display: none;
    }
  
  
  .fc .fc-daygrid-day-number {
    font-weight: 600;
    font-size: 16px;
    padding: 6px 8px;
    color: #111;
  }

  .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: #5BB0BD;
    color: #fff;
    width: 25px;
    font-size: 11px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fc-daygrid-day.fc-day-other {
    background: #fafafa;
  }
  
  .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
    color: #bbb;
  }

  .fc-dayGridMonth-view .fc-daygrid-event {
    border: none;
    border-radius: 8px;
    padding: 0;
    margin-top: 2px;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fc-dayGridMonth-view .fc-event-main {
    padding: 0;
    width: 100%;
  }

  /* "+N More" pill — match week view fc-week-pill--more */
  .fc-dayGridMonth-view .fc-daygrid-more-link.fc-week-pill {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    width: 100%;
    height: 33px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 2px;
    text-decoration: none;
    cursor: pointer;
  }

  .fc-dayGridMonth-view .fc-daygrid-more-link .fc-week-pill-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #555555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .fc-toolbar-title {
    font-size: 28px;
    font-weight: 700;
  }
  
  .fc-col-header-cell {
    font-weight: 500;
    font-size: 14px;
    color: #666;
    padding: 12px 0;
  }

  /* ===== Month Compact Event Pill (matches week view pill style) ===== */

  .fc-dayGridMonth-view .month-pill {
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px;
    height: 28px;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
  }

  .fc-dayGridMonth-view .month-pill-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 10px;
    line-height: 12px;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fc-timeGridDay-view .fc-day-header-content > div:first-child {
    display: none;
  }
    
  /* ===================================
   CLEAN MONTH VIEW – FINAL VERSION
   =================================== */

/* Rounded outer wrapper */
.fc-dayGridMonth-view .fc-scrollgrid {
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
  }
  
  /* Keep default table layout */
  .fc-dayGridMonth-view table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px;
  }
  


  .fc-dayGridMonth-view .fc-col-header-cell {
    border: none !important;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: #fff;
  }
  
  /* Month body cell borders */
  .fc-dayGridMonth-view .fc-daygrid-day {
    border: 1px solid #eeeeee;
    height: 150px;
    vertical-align: top;
    background: #fff;
  }
  
  /* Remove double outer borders (clean edges) */
  /* .fc-dayGridMonth-view .fc-daygrid-day:first-child {
    border-left: none;
  } */
  
  .fc-dayGridMonth-view .fc-daygrid-day:last-child {
    border-right: none;
  }
  
  .fc-dayGridMonth-view .fc-daygrid-body tr:first-child .fc-daygrid-day {
    border-top: 1px solid #E0E0E0;
  }
  
  .fc-dayGridMonth-view .fc-daygrid-body tr:last-child .fc-daygrid-day {
    border-bottom: none;
  }
  
  /* Day number - calendar day small */
  .fc-dayGridMonth-view .fc-daygrid-day-frame {
    position: relative;
  }

  .fc-dayGridMonth-view .fc-daygrid-day-top {
    min-height: 32px;
    flex-direction: inherit;
  }

  .fc-dayGridMonth-view .fc-daygrid-day-number {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #111;
    flex: none;
    flex-grow: 0;
  }

  /* Today circle */
  .fc-dayGridMonth-view .fc-day-today .fc-daygrid-day-number {
    position: absolute;
    left: 4px;
    top: 3px;
    width: 24px;
    height: 24px;
    background: #5BB0BD;
    border-radius: 99px;
    color: #FFFFFF;
    z-index: 1;
  }
  
  /* Other month days */
  .fc-dayGridMonth-view .fc-day-other {
    background: #fafafa;
  }
  
  .fc-dayGridMonth-view .fc-day-other .fc-daygrid-day-number {
    color: #bbb;
  }
  
}

/* Toast notifications - ensure they appear above all overlays, drawers, modals, flatpickr calendars */
body .ui.toast-container,
.ui.toast-container {
  position: fixed !important;
  z-index: 2147483647 !important;
  top: auto !important;
  bottom: 1rem !important;
  right: 1rem !important;
  left: auto !important;
}
body .ui.toast-container .toast-box,
.ui.toast-container .toast-box {
  position: relative !important;
  z-index: 2147483647 !important;
}
body .ui.toast-container .ui.toast,
.ui.toast-container .ui.toast {
  position: relative !important;
  z-index: 2147483647 !important;
}


.wd-description-section{
    border-radius: 4px;
    background-color: rgba(240, 245, 255, 1);
    min-width: 240px;
    flex: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    padding: 8px 12px;
    margin-top: 10px;
    margin-left: 16px;
    margin-right: 16px;

}

/* ============================================================
   YEAR VIEW
   ============================================================ */

/* In year view and month view, remove gap between date and week indicator (single line) */
.plannerContainer.year-view-active .date-text-container,
.plannerContainer.year-view-active .calendar-date-info,
.plannerContainer.month-view-active .date-text-container,
.plannerContainer.month-view-active .calendar-date-info {
    gap: 0;
}

#yearViewContainer {
    display: none;
    width: 100%;
    background: #fff;
    padding: 16px 0;
    box-sizing: border-box;
}

.year-view-loading {
    text-align: center;
    padding: 48px;
    font-family: 'Montserrat', sans-serif;
    color: #999;
    font-size: 14px;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.year-month {
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px 10px;
    box-sizing: border-box;
}

.year-month-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #5BB0BD;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.year-weekday-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.year-weekday-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #999;
    text-align: center;
    padding: 2px 0;
}

.year-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px 0;
}

.year-day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2px 0;
    cursor: pointer;
    border-radius: 6px;
    min-height: 32px;
}

.year-day-cell:hover:not(.year-day-other) {
    background: #f0f9fa;
}

.year-day-cell.year-day-other {
    cursor: default;
    pointer-events: none;
}

.year-day-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #111;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.year-day-today .year-day-number {
    background: #5BB0BD;
    color: #fff;
}

.year-day-other .year-day-number {
    color: #ccc;
}

.year-event-dots {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.year-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 900px) {
    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on small screens */
@media (max-width: 500px) {
    .year-grid {
        grid-template-columns: 1fr;
    }
}