﻿.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 9999; /* Ensure it's above other elements */
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 40px;
    font-size: 10px;
}

    .spinner > div {
        z-index: 999;
        background-color: #ffffff;
        height: 100%;
        width: 6px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }

    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4)
    }

    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}

.loggingingif {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.color-primary {
    color: #0d6efd
}

#scrollTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #555; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
}

    #scrollTopBtn:hover {
        background-color: #333; /* Add a dark-grey background on hover */
    }


/* Hide the spinner arrows in number inputs */
input[type="number"] {
    -moz-appearance: textfield; /* For Firefox */
    appearance: textfield; /* For other browsers */
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none; /* For Chrome, Safari, and Opera */
        margin: 0; /* Remove default margin */
    }

.bg-customized {
    background-color: #4169E1;
    color: #ffffff;
}


.button-menu {
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    border-radius: .25rem;
    min-width: 160px;
}


/*bell*/
.notification-container {
    position: relative;
    margin: 0 20px
}



.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    text-align: center;
    font-size: 0.75rem;
    border-radius: 10px;
    padding: 3px 6px;
}

/* Keyframes for ringing animation */
@keyframes ringAnimation {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* Styling for the notification bell emoji */
.notification-bell-icon {
    font-size: 24px;
    cursor: pointer;
}

/* Apply ringing animation */
.ringing {
    animation: ringAnimation 0.5s ease-in-out infinite;
}

.product-name {
    font-weight: bold;
    color: black;
}

.long-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.small-btn {
    padding: 0.0rem 0.5rem;
}


.icon-btn {
    background: transparent;
    border: none;
    padding: 0px;
    cursor: pointer;
}

    .icon-btn:hover {
        background: rgba(0,0,0,0.05);
        border-radius: 8px;
    }

    .icon-btn i {
        margin: 6px 5px;
    }

    .icon-btn .notify-badge {
        position: absolute;
        top: 0;
        right: 0;
        font-size: 0.75rem;
        border-radius: 10px;
        padding: 3px 6px;
    }



/* Notification dropdown card */
.notification-card {
    width: 22rem;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.25rem 0;
}

/* Individual notification item */
.notification-item {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.2s;
    padding: 15px 10px 15px 10px;
}

    .notification-item:last-child {
        border-bottom: none;
    }

    .notification-item:hover {
        background-color: #f5f5f5;
        border-radius: 6px;
    }

    .notification-item a {
        text-decoration: none;
        color: inherit;
    }

    .notification-item .top-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.25rem;
        font-weight: 500;
    }

    .notification-item .booking-number {
        color: #0d6efd; /* primary color */
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .notification-item .message {
        font-size: 0.9rem;
        color: #212529;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notification-item .time {
        font-size: 0.75rem;
        color: #6c757d;
    }

.see-all {
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-decoration: none;
    color: black;
    font-weight: 500;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

    .see-all:hover {
        background-color: #e9ecef;
    }

/* Row of icons */
.icon-row {
    gap: 0.3rem;
}



/* Highlight dropdown links on hover */
.dropdown-menu .dropdown-item {
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    color: #212529; /* default dark */
}

    .dropdown-menu .dropdown-item:hover {
        background: rgba(0,0,0,0.05);
        text-decoration: none;
    }

.dropdown-menu .dropdown-card {
    border: 1px solid #dee2e6;
    background-color: white;
    height: 100%;
}

    .dropdown-menu .dropdown-card a {
        padding: 5px;
    }


/* Styling the text link to look like a clean toggle */
/* Prevents flickering on page load */
#advancedOptions.show-initially {
    display: block !important;
}

/* Rotates the chevron icon */
[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.bi-chevron-down {
    transition: transform 0.2s ease;
}



.export-anim-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 15px;
}

.folder-icon {
    font-size: 2.5rem;
    color: #dee2e6;
    position: relative;
    z-index: 2;
}

.file-icon {
    font-size: 1.4rem;
    color: #0d6efd;
    position: absolute;
    z-index: 1;
    animation: fileIntoFolder 1.5s ease-in-out infinite;
}

@keyframes fileIntoFolder {
    0% {
        transform: translateY(-40px);
        opacity: 0;
    }

    30% {
        transform: translateY(-40px);
        opacity: 1;
    }

    70% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.timer-badge {
    display: inline-flex;
    background: #f8f9fa;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    border: 1px solid #dee2e6;
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .booking-filter-action-btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .booking-template-select {
        min-width: 140px !important;
    }
}


/* Container styling to make it feel like a clickable component */
.test-booking-container {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
}

    .test-booking-container:hover {
        border-color: #adb5bd;
        background-color: #e9ecef;
    }

/* Styling the checkbox itself */
.form-check-input#chktestBooking {
    width: 1em;
    height: 1em;
    cursor: pointer;
    border: 2px solid #adb5bd;
    margin-right:5px;
    margin-top:0px;
}

    /* Change color when checked (using a 'warning' or 'neutral' grey for test mode) */
    .form-check-input#chktestBooking:checked {
        background-color: #5D92F4;
        border-color: #5D92F4;
    }

/* Label styling */
.form-check-label {
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
    font-size:0.9rem;
}

/* Optional: Visual indicator when checked */
.test-booking-container.is-active {
    background-color: #fff4f4; /* Subtle red tint */
    border-color: #f5c2c7;
}

.js-toggle-text {
    font-size: 0.8rem;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}


.booking-advanced-filter-action-btn {
    background-color: #5d92f4;
    color: white;
    height: 38px;
    min-width: 0; /* Allows button to shrink */
}

    /* When collapsed (not active) */
    /*.booking-advanced-filter-action-btn.collapsed {
        background-color: #5d92f4;
        color: white;
    }*/

    /* When expanded (active) */
    /*.booking-advanced-filter-action-btn:not(.collapsed) {
        background-color: #5d92f4; 
        color:white;
    }*/

    .booking-advanced-filter-action-btn:hover {
        background-color: #5d92f4;
        color: white;
    }


/* Global Styles for the Tagger UI */
.email-tagger-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #fff;
    min-height: 45px;
    align-items: center;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .email-tagger-wrapper:focus-within {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .email-tagger-wrapper input {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        flex: 1;
        min-width: 150px;
        padding: 4px 0;
        background: transparent;
    }

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background-color: #0d6efd;
    color: white;
    border-radius: 50rem;
    font-size: 0.875rem;
    animation: fadeIn 0.2s ease-in;
}

.tag-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}

    .tag-remove:hover {
        opacity: 1;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BookingIssue Detail */
.bi-detail-meta .label {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bi-detail-meta .value {
    color: #212529;
    font-size: 0.92rem;
}

.bi-msg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bi-msg-item {
    display: flex;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.bi-msg-item:last-child {
    border-bottom: none;
}

.bi-msg-item.admin-msg {
    background-color: #f8f9ff;
}

.bi-msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.bi-msg-avatar.admin {
    background-color: #4169E1;
    color: #ffffff;
}


.bi-msg-avatar.customer {
    background: #86efac;
    color: #14532d;
}

.bi-msg-body {
    flex: 1;
    min-width: 0;
}

.bi-msg-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.bi-msg-sender {
    font-weight: 600;
    font-size: 0.875rem;
}

.bi-msg-time {
    font-size: 0.875rem;
}

.bi-msg-text {
    font-size: 0.9rem;
    color: #212529;
    line-height: 1.6;
    word-break: break-word;
}

.ellipsis-tooltip {
    display: inline-block;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}