html, body {
    height: 100%; 
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
}
body {
    display: flex;
    flex-direction: column;
}
.navbar {
    flex-shrink: 0;
}
.footer {
    flex-shrink: 0;
}
.chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}
.sidebar {
    width: 100%;
    max-width: 450px;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    padding: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}
.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}
.therapist-name {
    font-weight: 600;
    font-size: 1.1rem;

}
.schedule-box {
    background-color: #f2f2f2;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.calendar-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
}
.time-list {
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.time-slot {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.time-slot:last-child {
    border-bottom: none;
}
.time-slot:hover {
    background-color: #e8f7ff;
}            
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.chat-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}
.chat-empty {
    text-align: center;
    color: #999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.chat-empty i {
    font-size: 3rem;
    color: #ccc;
}
.message-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #ddd;
    flex-shrink: 0; /* Prevent input from shrinking */
    background-color: #fff; /* Ensure background is solid */
}
.message-input input {
    flex: 1;
    border: 0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    background-color: #f2f2f2; /* Light background for input */
}
.message-input button {
    background-color: #28a9e0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: .8rem 1.5rem;
}

/* Custom Calendar Styles (for dynamic rendering) */
.custom-calendar-table td {
    padding: 13px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}
@media only screen and (min-width: 768px) and (max-width: 815px)  {
        
        .custom-calendar-table td{padding:26px!important;}
    }
.custom-calendar-table td.selected {
    background-color: #28a9e0;
    color: white;
}
.custom-calendar-table td.inactive {
    color: #ccc;
    cursor: not-allowed;
}
.custom-calendar-table td.current-day { /* Added style for current day */
    background-color: #e0f2f7; /* Light blue for current day */
    font-weight: bold;
}
.custom-calendar-table td.current-day.selected { /* Selected current day */
    background-color: #28a9e0;
    color: white;
}
.custom-calendar-header span {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}
.custom-calendar-header span:hover {
    background-color: #eee;
}
.session-type-icon {
    background-color: #e8f7ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    color: #28a9e0;
}
.session-type-icon i {
    font-size: 1.8rem;
}
#session-type-screen {
    display: none; /* Hidden by default */
}

.price-card {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.card-header {
    background: linear-gradient(to right, #28a9e0, #8145e3);
    color: white;
    padding: 1rem;
}
.card-body {
    padding: 1.5rem;
}
.card-title {
    font-size: 1rem;
    font-weight: 200;
}
.card-price {
    font-size: 1.5rem;
    font-weight: bold;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    margin-bottom: 0.75rem;
}
.feature-list i {
    color: #28a9e0;
    margin-right: 0.5rem;
}
.subscribe-btn {
    background-color: #28a9e0;
    color: #fff;
    font-weight: 500;
}
.subscribe-btn:hover {
    background-color: #1c90c8;
    color: #fff;
}

/* Media Queries for Responsiveness */
@media (max-width: 991.98px) { /* Bootstrap's lg breakpoint */
    html, body {
        overflow: auto; /* Allow overall page scroll on smaller screens */
    }
    .chat-wrapper {
        flex-direction: column; /* Stack sections vertically */
        overflow: visible; /* Allow sections to contribute to overall page scroll */
    }
    .sidebar {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        height: auto; /* Allow sidebar to collapse height on smaller screens */
        overflow-y: visible; /* Disable scrolling for sidebar on small screens */
        padding-bottom: 2rem; /* Add some padding at the bottom */
    }
    .chat-area {
        height: auto; /* Let content dictate height, main page will scroll */
        min-height: 50vh; /* Ensure it's not too small */
    }
    .chat-empty {
        margin-top: 0; /* Reset margin for chat empty on mobile */
        height: auto;
    }
}