﻿
.schedule-wizard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.schedule-wizard-step-container {
    display: flex;
    min-height: 500px;
    padding-top: 1rem;
    flex: 1;
}

.appointment-slot-selector {
    max-width: 100%;
    width: 100%;
    padding: 0.4em 0.4em 0.4em 0.4em;
}
.appointment-slot-selector.sticky {
    max-width: 100%;
    padding: 0;
    padding-bottom: 1rem;
}

.day-group {
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.day-group.small {    padding-bottom: 1rem;
    padding: 1em 0.5em 1em 0.5em;
}

.time-button {
}

.scheduler-choices {
    display: flex;
    gap: 1em;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
}

.scheduler-time-button {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .2rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    min-width: 80px;
}
.scheduler-time-button.selected {
    background-color: var(--kendo-info-90);
    color: var(--kendo-primary-20);
    border: 2px solid var(--kendo-info-190));
    font-weight: 600;
}
.scheduler-time-button.disabled,
.scheduler-time-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f0f0f0;
    color: #aaa;
    border-color: #ccc;
}

.scheduler-time-button.disabled-scheduled {
    background-color: darkred;
    color: var(--kendo-success-60);
    border-color: var(--kendo-success-190);
    cursor: not-allowed;
}

.scheduler-time-button.disabled-request {
    background-color: #f8f2dc;
    color: var(--kendo-warning-190);
    border-color: var(--kendo-warning-60);
    cursor: not-allowed;
}

.scheduler-time-button.disabled-limit {
    background-color: #f2f2f2;
    color: var(--kendo-error-190);
    border-color: var(--kendo-error-90);
    cursor: not-allowed;
}

.scheduler-time-button-outline {
    color: #0d6efd;
    border-color: #0d6efd;
}


.scheduler-time-button:hover {
    background-color: var(--kendo-primary-50);
    cursor: pointer;
}

@media (max-width: 600px) {
    .scheduler-time-button {
    }
    .scheduler-time-button-selected {
        flex: 1 1 45%;
    }
}

.slot-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.legend-item {
    display: inline-block;
    /* width: 1rem; */
    /* height: 1rem; */
    padding: .1em .25em .1em 0.25em;
    border-radius: 3px;
}
.legend-item.scheduled { background-color: var(--kendo-success-60); }
.legend-item.pending { background-color: var(--kendo-warning-60); }
.legend-item.limit { background-color: var(--kendo-error-30); }
.legend-item.available { background-color: var(--kendo-info-60); }


.scheduler-week-button {
    text-align: center !important;
    flex-grow: 1 !important;
    margin: 0 !important;
}

.scheduler-calendar-current {
    background-color: var(--kendo-primary-100);
    color: var(--kendo-primary-20);
}

.scheduler-calendar-open {
    background-color: var(--kendo-primary-100);
    color: var(--kendo-primary-10);
    width: 100%;
}


.floating-cart-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
}

.cart-icon {
    background-color: var(--kendo-primary-100, #0078D4);
    color: white;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.floating-cart-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
    border-radius: 999px;
}

.cart-popover {
    position: absolute;
    bottom: 3.5rem;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    width: 250px;
    z-index: 1060;
}

.scheduler-summary {
    display: flex;
}

.summary-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-content {
    padding-left: 0.5rem;
}

.day-header {
    font-weight: 600;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.slot-list {
    list-style-type: none;
    padding-left: 1rem;
    margin-bottom: 0;
}

.slot-item {
    padding: 0.25rem 0;
}

.careplan-card.selectable {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.careplan-card.selectable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}


.cart-container-popover {
    z-index: 997;
    /*max-width: 400px;*/
    /*max-height: 500px;*/
}

.right-cart-anchor {
    position: fixed;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1px;
    z-index: -1;
}

.cart-anchor-wrapper {
    position: relative;
    display: inline-block;
}
.custom-popover {
    background: white;
    border-radius: 8px;
    max-width: 300px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    z-index: 500001;
    padding: 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
}
.custom-popover.show {
    opacity: 1;
    pointer-events: auto;
}

.popover-container {
    max-height: 600px;
    overflow-y: auto;
}

.popover-attached {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    min-width: 300px;
    transform: translate(-50%, 0);
}
.popover-attached.show {
    transform: translate(-50%, 0);
}
.floating-cart-container {
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    z-index: 999;
}

.popover-floating {
    position: fixed;
    bottom: 7rem;
    right: 1rem;
    transform: translateY(0);
}

.scheduler-navigation-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-top: 1rem;
}
.scheduler-navigation-bar-small {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}












.sticky-care-plan-summary {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /*margin-bottom: 1rem;*/
}

.compact-summary-content {
    padding: 12px 16px;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: center;
}

.summary-line-1 {
    /*font-size: 14px;*/
    /*line-height: 1.2;*/
    /*margin-bottom: 4px;*/
    /*white-space: nowrap;*/
    /*overflow: hidden;*/
    /*text-overflow: ellipsis;*/

    font-size: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: center;
    with: 100%;
}

.summary-line-2 {
    display: flex;
    font-size: 12px;
    overflow: hidden;
    justify-content: center;
    with: 100%;
}

.summary-line-1 strong {
    color: #333;
}

.summary-line-2 .text-muted {
    color: #6c757d !important;
}

.appointment-selector-header {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    /*justify-content: space-between;*/
    /*align-items: center;*/
    margin-bottom: 3rem;
}
.appointment-selector-header.sticky {
    position: sticky;
    top: 0;
    z-index: 1500;
    /* background: #ffffff; */
    /* border-bottom: 1px solid #dee2e6; */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); */
    margin-bottom: 0;
    padding: 12px 16px;
    backdrop-filter: blur(1px);
}

.appointment-selector-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    /* backdrop-filter: blur(200px); */
}

.appointment-selector-legend {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.time-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.time-buttons-container.small {
    justify-content: center;
}
.fixed-bottom-button {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fixed-bottom-button:hover {
    background-color: #0056b3;
}

.scheduled-appointment-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.request-appointments-button {
    font-weight: 500;
    font-size: 1rem;
}