html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'MuseoSansRounded', Fallback, sans-serif;
    margin-bottom: 60px;
    background-color: #f0f0f0;
}

main {
    flex: 1;
    /* This ensures the main content expands and doesn't overlap with the footer */
    padding-bottom: 60px;
    /* Add padding to avoid overlap with the footer */
}

.footer {
    background-color: #ccd5d8 !important;
    text-align: center;
    padding: 16px 0;
    width: 100%;
    border-top: 1px solid #e7e7e7;
    position: relative !important;
    bottom: 0;
    margin-top: auto;
    /* This pushes the footer to the bottom */
}

.rotated {
    rotate: 90deg;
    /* Equal to rotateZ(45deg) */
}

.fond-menu {
    background-color: #ccd5d8 !important;
}

/* New Header Styles - Matching Design */
.app-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #007bff;
}

.nav-link.active {
    background: #007bff;
    color: #ffffff;
}

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
    display: block;
}

.nav-item.dropdown.open > .nav-link {
    background: #f8f9fa;
    color: #007bff;
}

.dropdown-item {
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f8f9fa;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.notification-badge:not(:empty) {
    display: flex;
}

.btn-outline {
    padding: 8px 16px;
    border: 2px solid #007bff;
    background: transparent;
    color: #dc3545;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    /* background: #dc3545; */
    color: #ffffff;
}

.btn-primary {
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #007bff;
    color: #ffffff;
}

.btn-danger {
    padding: 10px 20px;
    border: none;
    background: #dc3545;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    padding: 4px 8px;
    border: none;
    background: #28a745;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    order: 2;
}

.mobile-menu-toggle:hover {
    color: #007bff;
}

/* Responsive Header */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .header-actions {
        order: 3;
        width: 100%;
        margin-top: 10px;
        flex-direction: column;
        gap: 10px;
    }

    .header-actions .btn {
        width: 100%;
    }
}

.button-image {
    border: 0;
    background: transparent;
}

.moyen-logo {
    width: 150px;
}

.mini-logo {
    width: 75px;
}

.img-24x24 {
    width: 24px;
    height: 24px;
}

.img-32x32 {
    width: 32px;
    height: 32px;
}

.img-48x48 {
    width: 48px;
    height: 48px;
}

.img-256 {
    width: 256px;
}

.img-1024 {
    width: 1024px;
}

.img-768 {
    width: 768px;
}

.pointer-hand {
    cursor: pointer;
}

.modalMap {
    height: 350px;
    width: 100%;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@font-face {
    font-family: 'MuseoSansRounded';
    src: url('../font/MuseoSansRounded300.otf') format('opentype'), url('../font/MuseoSansRounded700.otf') format('opentype');
}

@media (min-width: 768px) {
    .my-container {
        display: flex;
    }
}


.circle {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff;
    color: #fff;
    text-align: center;
    line-height: 5px;
}

.myButton .tooltip-inner {
    max-width: 300px;
    /* Set the desired maximum width */
    width: auto;
    /* Allow the tooltip to expand beyond the max-width if necessary */
    background: white;
}

.notification-link {
    position: relative;
    display: inline-block;
}

.notification-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    border-radius: 50%;
    background-color: red;
    font-size: 12px;
    color: white;
}

#notificationContainer {
    position: absolute;
    top: 80px;
    right: 80px;
    z-index: 100;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-right {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    width: 500px;
    height: 100%;
    border: none;
    border-radius: 0;
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

#roomList li.active {
    background: #3ecef1;
    color: white;
}

.chat-container {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fff;
    height: calc(100% - 80px);
    /* Adjust height based on the modal header/footer */
    overflow-y: auto;
}

.message {
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    width: fit-content;
}

.input-group {
    margin-top: 10px;
}

.newsAddShowBtn {
    width: 100%;
    border: 0px;
    padding: 7px;
    cursor: pointer;
}


/* wwwroot/css/site.css */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-size-selector {
    margin: 15px 0;
    text-align: right;
}
.page-size-selector select {
    padding: 5px;
    border-radius: 4px;
}


  /* Chat Container - Telegram/WhatsApp Style */
    .chat-container {
        background-color: #e5ddd5;
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkIzRTNBOTFFODhCNTExRThBRDU5RThGRUI0Q0QxODg1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkIzRTNBOTFGODhCNTExRThBRDU5RThGRUI0Q0QxODg1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjNFM0E5MUM4OEI1MTFFOEFENTlFOEZFQjRDRDE4ODUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QjNFM0E5MUQ4OEI1MTFFOEFENTlFOEZFQjRDRDE4ODUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4A');
        border: none;
        padding: 15px;
        overflow-y: auto;
    }
    
    /* Message Wrapper */
    .chat-message {
        display: flex;
        margin-bottom: 8px;
        clear: both;
        animation: fadeIn 0.3s ease-in;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Customer Message (Right Side - Blue like Telegram) */
    .customer-message {
        justify-content: flex-end;
        margin-left: auto;
    }
    
    .customer-message > div {
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        color: white;
        padding: 8px 12px;
        border-radius: 12px 12px 2px 12px;
        max-width: 65%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* Manager Message (Left Side - White like Telegram) */
    .manager-message {
        justify-content: flex-start;
        margin-right: auto;
    }
    
    .manager-message > div {
        background: #ffffff;
        color: #000000;
        padding: 8px 12px;
        border-radius: 12px 12px 12px 2px;
        max-width: 65%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* Message Time */
    .message-time {
        font-size: 0.75em;
        margin-left: 8px;
        opacity: 0.8;
        white-space: nowrap;
        vertical-align: bottom;
        display: inline-block;
    }
    
    .customer-message .message-time {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .manager-message .message-time {
        color: rgba(0, 0, 0, 0.5);
    }
    
    /* Date Separator */
    .text-center .d-inline-block.font-weight-bold {
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        font-size: 0.85em;
        color: #666;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Modal Styling */
    #guestInfoModal .modal-content {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    #guestInfoModal .form-control:focus {
        border-color: #0088cc;
        box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
    }
    
    #guestInfoModal .btn-primary {
        border-radius: 25px;
        padding: 10px 30px;
        font-weight: 600;
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        border: none;
    }
    
    #guestInfoModal .btn-primary:hover {
        background: linear-gradient(135deg, #006699 0%, #004466 100%);
    }
    
    /* Guest Info Display */
    .alert-info {
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    }
    
    .form-text {
        font-size: 0.85em;
        color: #6c757d;
    }
    
    /* Send Button */
    #sendMessageButton {
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    #sendMessageButton:hover:not(:disabled) {
        background: linear-gradient(135deg, #006699 0%, #004466 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
    }
    
    /* Message Input */
    #chatMessage {
        border-radius: 10px;
        border: 1px solid #ddd;
        resize: none;
    }
    
    #chatMessage:focus {
        border-color: #0088cc;
        box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.15);
    }
    
    /* Welcome Message */
    #welcomeMessage {
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 15px;
        padding: 30px;
    }
    
    /* Scrollbar Styling */
    .chat-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .chat-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .chat-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
    
    .chat-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }











/* admin panel style start */

  /* Admin Panel Tabs Styling */
    .admin-panel {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .admin-panel .nav-tabs {
        border-bottom: 2px solid #e0e0e0;
        background: #f8f9fa;
    }

    .admin-panel .nav-tabs .nav-item {
        margin-bottom: 0;
    }

    .admin-panel .nav-tabs .nav-link {
        border: none;
        border-bottom: 3px solid transparent;
        color: #666;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 12px 8px;
        text-align: center;
        transition: all 0.3s ease;
        background: transparent;
    }

    .admin-panel .nav-tabs .nav-link:hover {
        background: rgba(0, 136, 204, 0.05);
        color: #0088cc;
    }

    .admin-panel .nav-tabs .nav-link.active {
        background: white;
        color: #0088cc;
        border-bottom-color: #0088cc;
    }

    .admin-panel .nav-tabs .nav-link i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .admin-panel .tab-content {
        background: white;
    }

    .panel-content {
        max-height: 500px;
        overflow-y: auto;
    }

    .panel-header {
        padding: 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid #dee2e6;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .panel-header h6 {
        color: #495057;
        font-weight: 600;
    }

    /* Room List Items */
    #roomList .list-group-item,
    #pendingList .list-group-item,
    #blockedList .list-group-item {
        border-left: none;
        border-right: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 12px 15px;
    }

    #roomList .list-group-item:hover {
        background-color: #e7f3ff;
        transform: translateX(5px);
    }

    #roomList .list-group-item.active {
        background-color: #0088cc;
        color: white;
        border-color: #0088cc;
    }

    /* Pending List Item Styling */
    .pending-item {
        border-left: 4px solid #ffc107 !important;
        background: #fffbf0;
    }

    .pending-item:hover {
        background: #fff9e6;
    }

    .pending-item .guest-info {
        margin-bottom: 8px;
    }

    .pending-item .guest-name {
        font-weight: 600;
        color: #333;
        font-size: 0.95rem;
    }

    .pending-item .guest-room {
        color: #666;
        font-size: 0.85rem;
    }

    .pending-item .btn-group-sm .btn {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Blocked List Item Styling */
    .blocked-item {
        border-left: 4px solid #dc3545 !important;
        background: #fff5f5;
    }

    .blocked-item:hover {
        background: #ffe6e6;
    }

    .blocked-item .guest-info {
        margin-bottom: 8px;
    }

    .blocked-item .guest-name {
        font-weight: 600;
        color: #333;
        font-size: 0.95rem;
        text-decoration: line-through;
        opacity: 0.7;
    }

    .blocked-item .guest-room {
        color: #666;
        font-size: 0.85rem;
    }

    /* Badge Styling */
    .badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        border-radius: 10px;
    }

    /* Action Buttons */
    .btn-approve {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
        border: none;
        color: white;
    }

    .btn-approve:hover {
        background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
        color: white;
    }

    .btn-reject {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        border: none;
        color: white;
    }

    .btn-reject:hover {
        background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
        color: white;
    }

    .btn-unblock {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        border: none;
        color: white;
    }

    .btn-unblock:hover {
        background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
        color: white;
    }

    /* Empty State */
    .list-group-item.text-muted {
        cursor: default !important;
    }

    .list-group-item.text-muted:hover {
        background: white !important;
        transform: none !important;
    }

    /* Scrollbar for panel content */
    .panel-content::-webkit-scrollbar {
        width: 6px;
    }

    .panel-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .panel-content::-webkit-scrollbar-thumb {
        background: #0088cc;
        border-radius: 10px;
    }

    .panel-content::-webkit-scrollbar-thumb:hover {
        background: #006699;
    }

    /* Chat Container - Telegram/WhatsApp Style */
    .chat-container {
        background-color: #e5ddd5;
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkIzRTNBOTFFODhCNTExRThBRDU5RThGRUI0Q0QxODg1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkIzRTNBOTFGODhCNTExRThBRDU5RThGRUI0Q0QxODg1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjNFM0E5MUM4OEI1MTFFOEFENTlFOEZFQjRDRDE4ODUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QjNFM0E5MUQ4OEI1MTFFOEFENTlFOEZFQjRDRDE4ODUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4A');
        border: none;
        padding: 15px;
        overflow-y: auto;
    }
    
    /* Message Wrapper */
    .chat-message {
        display: flex;
        margin-bottom: 8px;
        clear: both;
        animation: fadeIn 0.3s ease-in;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Customer Message (Right Side - Blue like Telegram) */
    .customer-message {
        justify-content: flex-end;
        margin-left: auto;
    }
    
    .customer-message > div {
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        color: white;
        padding: 8px 12px;
        border-radius: 12px 12px 2px 12px;
        max-width: 65%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* Manager Message (Left Side - White like Telegram) */
    .manager-message {
        justify-content: flex-start;
        margin-right: auto;
    }
    
    .manager-message > div {
        background: #ffffff;
        color: #000000;
        padding: 8px 12px;
        border-radius: 12px 12px 12px 2px;
        max-width: 65%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* Message Time */
    .message-time {
        font-size: 0.75em;
        margin-left: 8px;
        opacity: 0.8;
        white-space: nowrap;
        vertical-align: bottom;
        display: inline-block;
    }
    
    .customer-message .message-time {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .manager-message .message-time {
        color: rgba(0, 0, 0, 0.5);
    }
    
    /* Date Separator */
    .text-center .d-inline-block.font-weight-bold {
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        font-size: 0.85em;
        color: #666;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Modal Styling */
    #guestInfoModal .modal-content {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    #guestInfoModal .form-control:focus {
        border-color: #0088cc;
        box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
    }
    
    #guestInfoModal .btn-primary {
        border-radius: 25px;
        padding: 10px 30px;
        font-weight: 600;
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        border: none;
    }
    
    #guestInfoModal .btn-primary:hover {
        background: linear-gradient(135deg, #006699 0%, #004466 100%);
    }
    
    /* Guest Info Display */
    .alert-info {
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    }
    
    .form-text {
        font-size: 0.85em;
        color: #6c757d;
    }
    
    /* Send Button */
    #sendMessageButton {
        background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
        border: none;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    #sendMessageButton:hover:not(:disabled) {
        background: linear-gradient(135deg, #006699 0%, #004466 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 136, 204, 0.3);
    }
    
    /* Message Input */
    #chatMessage {
        border-radius: 10px;
        border: 1px solid #ddd;
        resize: none;
    }
    
    #chatMessage:focus {
        border-color: #0088cc;
        box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.15);
    }
    
    /* Welcome Message */
    #welcomeMessage {
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 15px;
        padding: 30px;
    }
    
    /* Scrollbar Styling */
    .chat-container::-webkit-scrollbar {
        width: 6px;
    }
    
    .chat-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .chat-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
    
    .chat-container::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }

    /* admin chat page styling end */

/* Main Container */
.main-container {
    max-width: 1800px;
    margin: 20px auto;
    padding: 20px;
    background: transparent;
    min-height: calc(100vh - 200px);
}

/* Body background for clean look */
body {
    background: #f8f9fa;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    font-size: 1.8rem;
    color: #007bff;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* Search and Filters */
.search-filter-bar {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i.fas.fa-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.search-box input,
.search-box .form-control {
    padding-left: 40px !important;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dee2e6 !important;
    border-radius: 5px;
    font-size: 0.95rem;
    background: #ffffff;
    box-shadow: none;
    position: relative;
}

.search-box input:focus,
.search-box .form-control:focus {
    outline: none !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

/* Table Container */
.table-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: none;
    font-size: 0.9rem;
    text-transform: none;
}

.table th i {
    margin-right: 6px;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge i {
    margin-right: 4px;
}

.badge-primary {
    background: #cce5ff;
    color: #004085;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.action-btn-edit {
    background: #e7f3ff;
    color: #007bff;
}

.action-btn-edit:hover {
    background: #007bff;
    color: #ffffff;
}

.action-btn-view {
    background: #e7f5e7;
    color: #28a745;
}

.action-btn-view:hover {
    background: #28a745;
    color: #ffffff;
}

.action-btn-delete {
    background: #ffe7e7;
    color: #dc3545;
}

.action-btn-delete:hover {
    background: #dc3545;
    color: #ffffff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 4rem;
    color: #999;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.empty-state-text {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-container {
        overflow-x: auto;
    }

    .search-box {
        min-width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 0;
}

.modal-buttons .btn {
    flex: 1;
}

#userForm {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#userForm .form-group:last-of-type {
    margin-bottom: 0;
}

#userForm .form-group #passwordGroup {
    margin-bottom: 15px;
}

#userForm .form-group #passwordGroup .form-text {
    margin-top: 5px;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 6px;
    color: #007bff;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Date filter form styles */
.date-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter-form input[type="date"],
.date-filter-form select {
    min-width: 150px;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Header */
    .header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .logo-img {
        height: 35px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 10px;
    }

    .nav-link {
        width: 100%;
        padding: 12px;
        justify-content: flex-start;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Page Content */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-actions {
        width: 100%;
        flex-direction: column;
    }

    .page-actions .btn {
        width: 100%;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.85rem;
        min-width: 600px;
    }

    table th,
    table td {
        padding: 8px 6px;
        white-space: nowrap;
    }

    /* Search and Filters */
    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .date-filter-form {
        flex-direction: column;
        width: 100%;
    }

    .date-filter-form input[type="date"],
    .date-filter-form select {
        width: 100%;
        min-width: 100%;
    }

    /* Modals */
    .modal.show {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        padding: 20px 15px;
        margin: 10px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }

    /* Cards */
    .card {
        margin-bottom: 15px;
    }

    .card-body {
        padding: 15px;
    }

    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Buttons */
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Dropdowns */
    .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    /* Notification Container */
    #notificationContainer {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px 10px 0 0 !important;
        max-height: 70vh !important;
    }

    /* Activity and Inventory Cards */
    .activity-card,
    .inventory-card {
        margin-bottom: 15px;
    }

    /* Chat Interface */
    .chat-sidebar {
        width: 100%;
        margin-bottom: 15px;
    }

    .chat-main {
        width: 100%;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .header-container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 8px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .modal-content {
        max-width: 90%;
    }

    table {
        font-size: 0.9rem;
    }

    .search-box {
        min-width: 250px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .header-container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 10px;
    }

    .page-title {
        font-size: 2rem;
    }

    .modal-content {
        max-width: 600px;
    }

    .table-container {
        overflow-x: auto;
    }

    /* Two column layout for forms */
    .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .form-row .form-group {
        flex: 1;
        min-width: 200px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .header-container {
        padding: 0 30px;
    }

    .page-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 30px;
    }

    .modal-content {
        max-width: 700px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .page-container {
        padding: 0 40px;
    }

    .modal-content {
        max-width: 800px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .modal-content {
        max-height: 95vh;
    }

    .header-container {
        padding: 5px 20px;
    }

    .logo-img {
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .app-header,
    .header-actions,
    .page-actions,
    .btn,
    .modal {
        display: none !important;
    }

    .page-container {
        max-width: 100%;
        padding: 0;
    }

    table {
        font-size: 0.8rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px; /* Minimum touch target size */
        display: flex;
        align-items: center;
    }

    .input-wrapper {
        min-height: 44px;
    }

    .login-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Location Edit – Task(s) section (matches Design 19) */
.tasks-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light, #f8f9fa);
}
.tasks-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.tasks-section-title {
    font-weight: 600;
    color: var(--text-dark, #333);
    margin: 0;
    font-size: 1.1rem;
}
.tasks-table-wrap {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
}
.tasks-table-wrap table {
    width: 100%;
    margin: 0;
}
.tasks-table-wrap th,
.tasks-table-wrap td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color, #dee2e6);
}
.tasks-table-wrap th {
    background: var(--bg-light, #f8f9fa);
    font-size: 0.85rem;
}
.tasks-table-wrap tr:last-child td {
    border-bottom: none;
}
.task-remove {
    color: var(--danger-color, #dc3545);
    cursor: pointer;
    text-decoration: none;
}
.task-remove:hover {
    text-decoration: underline;
}
/* Add-task modal */
#tacheModal .modal-content {
    max-width: 480px;
}
#tacheModal {
    z-index: 2100;
}
.task-pick-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 320px;
    overflow-y: auto;
}
.task-pick-item {
    padding: 12px 15px;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.task-pick-item:hover {
    background: var(--bg-light, #f8f9fa);
    border-color: var(--primary-color, #007bff);
}
.task-pick-item .task-name {
    font-weight: 500;
}
.task-pick-item .add-icon {
    color: var(--primary-color, #007bff);
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}