
.header-home {
  color: white;
  background: lightpink;
}
.header-services {
  color: black;
  background: lightyellow;
}
.section2 {
  color: white;
  background: mediumaquamarine;
}
.services {
  color: white;
  background: darkgrey;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.chat-section {
    width: 100%;
    height: calc(100vh - 155px);
    display: flex;
    margin-top: 20px;
    border: 1px solid #D9D7D7;
    border-radius: 12px;
    overflow: hidden;
}

.chat-container {
    display: flex;
    height: 100%;
    background: white;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    background: #f9ab22;
}

    .sidebar-header h2 {
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

.current-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

    .status-indicator.online {
        background-color: #10b981;
    }

    .status-indicator.offline {
        background-color: #ef4444;
    }

.users-list {
    flex: 1;
    overflow-y: auto;
/*    padding: 1rem;*/
}

    .users-list h3 {
        color: #666;
        font-size: 12px;
        margin-bottom: 0px;
        padding:0.7rem 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.user-item {
    padding: 1rem;
/*    margin-bottom: 0.5rem;*/
    background: white;
/*    border-radius: 10px;*/
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .user-item:hover {
        background: #f9ab22;
    }

    .user-item.active {
        background: #f9ab22 !important;
    }

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.no-chat-selected {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
}

.welcome-message h2 {
    color: #f9ab22;
    margin-bottom: 0.5rem;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.chat-user-info h3 {
    color: #333;
    margin-bottom: 0.25rem;
}

.user-status {
    font-size: 0.85rem;
    color: #666;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

    .message.sent {
        flex-direction: row-reverse;
    }

.message-bubble {
    max-width: 60%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    word-wrap: break-word;
}

.message.received .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
    display: block;
}

.message-input-container {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 1rem;
    background: white;
}

    .message-input-container input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 25px;
        font-size: 1rem;
        transition: border-color 0.3s;
    }

        .message-input-container input:focus {
            outline: none;
            border-color: #667eea;
        }

    .message-input-container button {
        padding: 0.75rem 2rem;
        background: #f9ab22;
        color: black;
        border: none;
        border-radius: 25px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .message-input-container button:hover {
            transform: translateY(-2px);
        }

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        max-width: 300px;
    }

    .message-bubble {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .k-grid table {
        font-size: 12px; /* smaller font for mobile */
    }

    .k-grid th, .k-grid td {
        white-space: nowrap; /* prevent text wrap */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table-responsive {
        overflow-x: auto; /* allow horizontal scroll */
    }
}



@media (max-width: 575px){
    .patient-appointments-row{
        padding: 0;
    }
    .fc .fc-daygrid-more-link{
        padding: 0;
        border-radius: 0;
        display: flex;
        background: transparent !important;
    }
    .fc-more-link span{
        display: flex;
        align-items: center;
        line-height: normal;
        padding: 1px 3px !important;
        border-radius: 2px !important;
    }
    .fc .fc-daygrid-day-bottom{
        display: flex;
        justify-content: center;
    }
    .fc .fc-daygrid-body-balanced .fc-daygrid-day-events{
        bottom: 0;
    }
}

@media (max-width: 575px) {
    .message-input-container {
        gap: 5px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        .message-input-container button {
            padding: 0.75rem 1rem;
        }

    .chat-main {
        width: 70%;
    }

    .message-input-container #messageInput {
        width: 100%;
    }

    .sidebar {
        width: 106px;
        max-width: inherit;
    }

    .chat-section .sidebar-header {
        flex-direction: column;
        padding: 10px;
    }

        .chat-section .sidebar-header h2 {
            margin-bottom: 0.5rem;
            font-size: 12px;
        }

    .chat-section .user-item span {
        display: none !important;
    }

    .chat-section .user-item {
        justify-content: center;
    }

    div#newgrid {
        width: fit-content !important;
        touch-action: auto !important;
    }

    .users-list h3 {
        text-align: center;
    }

    .m-appointment-tbl .k-pager-wrap .k-pager-numbers {
        border: 1px solid #dfdfdf !important;
        height: 100% !important;
        width: 43px;
    }

        .m-appointment-tbl .k-pager-wrap .k-pager-numbers li {
            height: 100% !important;
            padding-top: 11px !important;
        }

    .m-appointment-tbl .k-grid tbody tr td {
        font-size: 2rem;
    }

    .k-grid-header th.k-header > .k-link {
        font-size: 2rem;
    }

    .profile-menu-link {
        padding-left: 25px;
    }

        .profile-menu-link span {
            right: 20px;
        }

    .availability-table-main.devavailability #btnAddAvailability {
        width: auto;
    }

    .availability-table-main.devavailability .btn.centered-button {
        width: 40px;
        height: 40px;
    }

        .availability-table-main.devavailability .btn.centered-button img {
            width: 20px;
        }

    .dr-dashboard-right-col .dr-dashboard-header {
        padding-right: 0;
    }
}

.event-hover-modal {
    position: absolute;
    display: none;
    z-index: 9999;
}

.event-card {
    background: #f9ab22; /* Orange background */
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-left: 5px solid #f9ab22; /* same color as background */
    animation: fadeIn 0.2s ease-in-out;
    color: #ffffff; /* White text */
}

    .event-card h4 {
        margin: 0 0 8px;
        font-size: 16px;
        color: #ffffff; /* White text */
    }

    .event-card p {
        margin: 4px 0;
        font-size: 13px;
        color: #ffffff; /* White text */
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.login-register > li .dropdown-menu {
    margin-top: 20px;
}

    .login-register > li .dropdown-menu > li a {
        display: block;
        padding-bottom: 10px;
    }

@media (max-width: 575px) {
    .gm-style .gm-style-iw-c {
        max-width: 320px !important;
    }

    .all-appointments .appts-tabs {
        width: 430px;
        overflow-y: inherit;
        overflow-x: auto;
    }

    .all-appointments .appts-tabs-row {
        overflow-x: auto;
    }

    .login-register .rounded-circle {
        width: 40px;
        height: 40px;
    }

    ul.login-register.aos-init.aos-animate {
        top: 3px !important;
    }

    div#servicesubservice, #appointmentModel {
        margin-top: 70px;
    }

    .modal-content .close {
        width: 30px !important;
    }

    body .bootstrap-datetimepicker-widget {
        width: 230px !important;
    }

    .k-pager-wrap .k-pager-numbers {
        border: 1px solid #dfdfdf !important;
        height: 100% !important;
        width: 43px;
    }

        .k-pager-wrap .k-pager-numbers li {
            height: 100% !important;
            padding-top: 11px !important;
        }

    .k-grid tbody tr td {
        font-size: 2rem;
    }

    .k-grid-header th.k-header > .k-link {
        font-size: 2rem;
    }
}
 