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

/* Week Navigation Styles */
.week-navigation {
    max-width: 1100px;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.week-navigation .nav-arrow {
    background: white;
    border: 1px solid #5bb0bd;
    font-size: 24px;
    color: #5bb0bd;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-weight: 600;
}

.week-navigation .nav-arrow:hover {
    background-color: #5bb0bd;
    color: white;
}

.week-range {
    font-family: Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.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;
}

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

/* Hide all-day slot area only */
.fc-daygrid-body {
    display: none !important;
}

.fc-scrollgrid-section-header .fc-daygrid {
    display: none !important;
}

/* Day header styling */
.fc-col-header-cell {
    background-color: #dde4fa;
    border: 1px solid #5bb0bd;
    padding: 8px;
    text-align: center;
    font-weight: 500;
    color: #5bb0bd;
    margin: 2px;
}

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

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

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

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

/* Time grid styling */
.fc-timegrid-slot {
    border-bottom: 1px solid #dde4fa;
    height: 30px;
}

.fc-timegrid-slot.fc-slot-major {
    border-bottom: 2px solid #5bb0bd;
}

.fc-timegrid-slot-label {
    font-size: 0.8em;
    color: #5bb0bd;
    padding: 2px 8px;
    font-weight: 500;
}

/* Event styling */
.fc-event {
    border-radius: 6px;
    border: none;
    font-size: 0.85em;
    font-weight: 500;
    padding: 2px 6px;
    margin: 1px 0;
    box-shadow: 0 1px 3px rgba(91, 176, 189, 0.2);
}

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

/* Category label styling for calendar events */
.fc-event-category-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.85;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    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%;
}

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

/* Custom event colors using the specified color scheme */
.fc-event.consultation-event {
    background-color: #dde4fa;
    border-color: #5bb0bd;
    color: #5bb0bd;
}

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

.fc-event.workout-event {
    background-color: #eceee3 !important;
    color: #667558 !important;
    border: none !important;
}

.fc-event.workout-event.fc-event-selected,
.fc-event.workout-event:active,
.fc-event.workout-event:focus,
.fc-event.workout-event.clicked {
    border: 2px solid #667558 !important;
}

.fc-event.recipe-event {
    background-color: #f5f3f0 !important;
    color: #a49b8c !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: 2px solid #a49b8c !important;
}

/* Notes event styling */
.fc-event.notes-event {
    background-color: #fcebad !important;
    color: #ab8700 !important;
    border: none !important;
}

.fc-event.notes-event.fc-event-selected,
.fc-event.notes-event:active,
.fc-event.notes-event:focus,
.fc-event.notes-event.clicked {
    border: 2px solid #ab8700 !important;
}

/* 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;
}

/* 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.workout-event.fc-event-selected,
#dayCalendar .fc-event.workout-event:active,
#dayCalendar .fc-event.workout-event:focus,
#dayCalendar .fc-event.workout-event.clicked {
    border: 2px solid #667558 !important;
}

#dayCalendar .fc-event.recipe-event {
    background-color: #f5f3f0 !important;
    color: #a49b8c !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: 2px solid #a49b8c !important;
}

#dayCalendar .fc-event.notes-event {
    background-color: #fcebad !important;
    color: #ab8700 !important;
    border: none !important;
}

#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: 2px solid #ab8700 !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;
}

/* Grid styling */
.fc-timegrid-col {
    border-right: 2px solid #dde4fa !important;
}

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

/* Force column borders with more specific selectors */
.fc-timegrid .fc-timegrid-col {
    border-right: 2px solid #dde4fa !important;
}

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

.fc-timegrid-slot {
    border-right: 2px solid #dde4fa !important;
}

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

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

.fc-col-header-cell.fc-day-today {
    background-color: #dde4fa !important;
    color: #5bb0bd !important;
}

/* Current day highlight */
.fc-col-header-cell.current-day {
    background-color: #5bb0bd !important;
    color: white !important;
}

.fc-col-header-cell.fc-day-today.current-day * {
    color: white !important;
}

/* Ensure current day text is white (selected date) */
.fc-col-header-cell.current-day .fc-day-header-content,
.fc-col-header-cell.current-day .fc-day-header-content *,
.fc-col-header-cell.current-day .fc-day-header-content > div {
    color: white !important;
}

/* Ensure all other days have black text */
.fc-col-header-cell:not(.current-day) .fc-day-header-content,
.fc-col-header-cell:not(.current-day) .fc-day-header-content *,
.fc-col-header-cell:not(.current-day) .fc-day-header-content > div {
    color: #000 !important;
}

/* Custom day header content styling */
.fc-col-header-cell .fc-day-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.fc-col-header-cell .fc-day-header-content > div:first-child {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 2px;
}

.fc-col-header-cell .fc-day-header-content > div:last-child {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

/* Grid lines */
.fc-scrollgrid {
    border: 1px solid #dde4fa;
}

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

/* Now indicator */
.fc-timegrid-now-indicator-line {
    border-color: #5bb0bd;
    border-width: 2px;
}

.fc-timegrid-now-indicator-arrow {
    border-color: #5bb0bd;
}

/* 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;
}

/* Event mirror (appears while dragging/selecting) in main calendar */
#calendar .fc-event-mirror.fc-v-event {
    background-color: transparent !important;
    border: none !important;
    display: block !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-content > div:first-child {
        font-size: 13px;
    }

    .fc-col-header-cell .fc-day-header-content > div:last-child {
        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-content > div:first-child {
        font-size: 11px;
    }

    .fc-col-header-cell .fc-day-header-content > div:last-child {
        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: 25px;
    }

    .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: linear-gradient(to right, #ddd 0, #ddd 8px, transparent 8px, transparent 15px);
    background-size: 15px 1px;
    background-repeat: repeat-x;
    background-position: 0 0;
    height: 1px;
    margin-top: -1px;
}

.fc-scrollgrid tbody tr td:first-child,
.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;
}

.fc .fc-scrollgrid {
    border-right-width: unset;
    border-left-width: 0;
    border-top-width: 0;
}

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 .fc-scrollgrid {
    border-right-width: 0 !important;
    border-left-width: 0 !important;
    border-top-width: 0 !important;
}

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

/* 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 {
    width: 55px;
    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;
}

/* 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;
}

.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: 16px;
    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: 16px;
    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.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;
    justify-content: space-between;
    height: 100%;
    padding-top: 10px;
    padding-right: 5px;
}

.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 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 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.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;
}

.title-input {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: none !important;
    background-color: #f0f5ff !important;
    height: 50px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.description-textarea {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    border: none !important;
    background-color: #f0f5ff !important;
    min-height: 80px !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.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 {
    width: 16px;
    height: 16px;
    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: #667558 !important;
    color: white !important;
    border-color: #667558 !important;
}

.flatpickr-day.selected:hover {
    background: #667558 !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;
    justify-content: space-between;
    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 {
        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;
}

.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;
}

/* 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 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: #10cabf;
    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: #10cabf;
    background-color: #f0f9f9;
}

.filter-chip.selected {
    background-color: #10cabf;
    border-color: #10cabf;
    color: #ffffff;
}

.filter-apply-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-apply {
    width: 100%;
    background-color: #10cabf;
    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: #10cabf;
    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: #10cabf;
    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 #10cabf;
    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;
    }

    .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-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-content > div:first-child {
        font-size: 10px;
    }

    .fc-col-header-cell .fc-day-header-content > div:last-child {
        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: 22px;
    }

    .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: 140px !important;
        height: 140px !important;
    }
}
