/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

body {
    background-color: lightyellow !important; /* Use your desired color code */
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
/* Modify the background color */
.navbar-site {
    background-color: darkred;
}

/* Modify brand and text color */
.navbar-site .navbar-brand,
.navbar-site .navbar-text,
.navbar-site .nav-link,
.navbar-toggler-icon {
    color: gold;
}
    /* Modify brand and text color */
    .navbar-site .navbar-brand:hover,
    .navbar-site .navbar-text:hover,
    .navbar-site .nav-link:hover,
    .navbar-toggler-icon {
        color: lemonchiffon;
        background-color: crimson
}

/* Navbar Dropdown */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 10%;
        left: 100%;
        margin-top: -1px;
    }

.dropdown-menu {
    background-color: #FFFAE5;
}

.dropdown-item {
    color: black;
}

.dropdown-item.dropdown-toggle {
    color: black;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: darkblue;
    background-color: gold; /* Replace with your desired color */
}

.navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}

/* ================================================
   Chat Message Bubbles
   ================================================ */

.message-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    margin-bottom: 4px;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.sent-message {
    background-color: #0d6efd !important;
    color: white !important;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.received-message {
    background-color: #e9ecef !important;
    color: #212529 !important;
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.message-content {
    margin-bottom: 4px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

.sent-message .message-time {
    color: rgba(255, 255, 255, 0.8) !important;
}

.received-message .message-time {
    color: #6c757d !important;
}

.sender-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0d6efd !important;
    margin-bottom: 4px;
}

#chatMessages {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 15px;
    scroll-behavior: smooth;
    overflow-y: auto;
}

.d-flex.justify-content-end {
    justify-content: flex-end !important;
}

.d-flex.justify-content-start {
    justify-content: flex-start !important;
}

.list-group-item.active {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

.bi-circle-fill.text-success {
    color: #28a745 !important;
}











/* for Login password box toggle eye */
.input-group-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
}

/* For carousels */

#carouselButtons {
    margin-left: 100px;
    position: absolute;
    bottom: 0px;
}


.flip-card {
    width: 300px;
    height: 400px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    transform-style: preserve-3d;
}

.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back-deceased {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}


.flip-card-front {
    background-color: lightyellow;
    color: black;
}


.flip-card-back {
    background-color: darkred;
    color: gold;
    transform: rotateY(180deg);
}

.flip-card-back-deceased {
    background-color: darkgray;
    color: black;
    transform: rotateY(180deg);
}



.table-draft-border,
.table-draft-border th,
.table-draft-border td {
    /* Set a common inner border style */
    border: 2px solid #ddd; /* Light grey inner border */
}

    /* Style the bottom border of every second row in a group (2, 4, 6, ...) */
    .table-draft-border tbody tr:nth-child(even) td {
        border-bottom: 4px solid #ddd; /* Thicker, black outer border */
    }

    /* Ensure the top border of the first row in a group (1, 3, 5, ...) matches the outer border style for grouping effect */
    /* This is optional, but helps visually group the rows */
    .table-draft-border tbody tr:nth-child(odd) td {
        border-top: 2px solid #ddd; /* Reset to inner border, as the even row above handles the thick border */
    }

    /* Style the very top border of the table to match the desired outer border style */
    .table-draft-border thead th {
        border-top: 4px solid #ddd;
    }

    /* Style the very bottom border of the table to match the desired outer border style */
    .table-draft-border tbody tr:last-child td {
        border-bottom: 4px solid #ddd;
    }





.vertical-text {
    writing-mode: vertical-rl; /* Text flows from top to bottom, then right to left */
    text-orientation: mixed; /* Keeps characters upright within the vertical flow */
    white-space: nowrap; /* Prevents text from wrapping */
    /*text-align: center; /* Centers the text horizontally within the vertical flow */
    transform: rotate(180deg); /* Optional: Rotates the text for bottom-to-top orientation */
    padding: 8px; /* Adjust padding as needed */
    border: 1px solid #ccc; /* Optional: Add borders for visualization */
}

.vertical-text2 {
    /*display: inline-block; /* Essential for transform to work correctly */
    white-space: nowrap; /* Prevents text from wrapping */
    text-align: center; /* Centers the text horizontally within the vertical flow */
    align-middle; /* Vertically centers the text */
    writing-mode: vertical-lr; /* Sets the text to render vertically, left to right */
    transform: rotate(180deg); /* Rotates the text 180 degrees for desired orientation */
    transform-origin: 50% 50%; /* Ensures rotation happens around the center */
}



/* For odd-numbered rows */
.table-striped-site > tbody > tr:nth-of-type(odd) {
    background-color: #f0e68c; 
}

/* For even-numbered rows */
.table-striped-site > tbody > tr:nth-of-type(even) {
    background-color: #ffffeo; 
}

.custom-header-color th {
    background-color: darkred; /* Use your desired color code */
    color: gold; /* Ensure text is readable */
}

.table td.hilight-cell {
    background-color: yellow;
    color: black;
}

#toast-container > div {
    opacity: 1;
    background-color: lawngreen;
    border-style: groove;
    border-color: darkgreen;
    border-width: 4px;
    color: black;
}


/* Custom toastr success */
.toast-success {
    background-color: lawngreen !important; /* Bootstrap 5 success green */
    color: darkgreen !important;
    border-color: darkgreen !important;
    border-width: 4px !important;
    border-style: groove !important;
    background-image: none !important; /* This removes the default check mark */
}
    .toast-success::before {
        content: ""; /* Default: empty, or use a Unicode checkmark: "\2714" */
        display: inline-block;
        position: absolute;
        left: 1em;
        top: 50%;
        transform: translateY(-50%);
        /* Example: Use a custom SVG as background */
        width: 24px;
        height: 24px;
        background: url('/images/svgs/hand-thumbs-up.svg') no-repeat center center;
        background-color: lawngreen;
        background-size: contain;
        /* Or use a Unicode character: */
        /* content: "\2714"; font-size: 1.5em; color: #fff; */
    }

/* Custom toastr error */
.toast-error {
    background-color: crimson !important; /* Bootstrap 5 danger red */
    color: white !important;
    border-color: darkred !important;
    border-width: 4px !important;
    border-style: groove !important;
}



/* Optional: Custom info and warning */
.toast-info {
    background-color: #0dcaf0 !important; /* Bootstrap 5 info blue */
    color: #212529 !important;
}

.toast-warning {
    background-color: #ffc107 !important; /* Bootstrap 5 warning yellow */
    color: #212529 !important;
}




/* Add colors for Obg*/
.border-site {
    border-color: gold !important;
}

.bg-site {
    background-color: darkred !important;
}

.bg-site-secondary {
    background-color: crimson !important;
}

html.bg-body-site, body.bg-body-site {
    background-color: lightyellow !important;
    min-height: 100vh;
}

.bg-body-site {
    background-color: lightyellow !important; 
}

.card-header-site {
    background-color: darkred;
    color: gold;
}

.bg-deceased, .card-header-deceased {
    background-color: black;
}

.text-site {
    color: gold;
}

.card-header-deceased {
    color: white;
}

.card-body-site {
    opacity: 100%;
    color: black;
    background-color: antiquewhite;
}

.card-body-deceased, .table-deceased {
    opacity: 100%;
    color: black;
    background-color: lightgray;
}

.btn-site {
    background-color: darkred; /* dark-red background */
    border: none; /* No border */
    color: gold; /* gold text */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: crimson;
    --bs-btn-border-color: darkred;
    --bs-btn-hover-border-color: darkred;
    --bs-btn-active-border-color: darkred;
    --bs-btn-disabled-border-color: darkred;
}

.btn-gold {
    background-color: gold; /* gold background */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: gold;
}

.btn-outline-gold {
    --bs-btn-color: darkred;
    --bs-btn-hover-color: darkred;
    --bs-btn-hover-bg: gold;
    --bs-btn-border-color: darkred;
    --bs-btn-hover-border-color: darkred;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: gold;
    --bs-btn-active-border-color: darkred;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: darkred;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: darkred;
    --bs-gradient: none;
}

.btn-outline-site {
    --bs-btn-color: darkred;
    --bs-btn-border-color: darkred;
    --bs-btn-hover-color: gold;
    --bs-btn-hover-bg: darkred;
    --bs-btn-hover-border-color: darkred;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: gold;
    --bs-btn-active-bg: darkred;
    --bs-btn-active-border-color: darkred;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: darkred;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: darkred;
    --bs-gradient: none;
}


.table-sched th, .table-sched td {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.time-group {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    border-left: 2px solid #000;    border-right: 2px solid #000;
    text-align: center;
}
/* Remove double borders between groups */
.time-group + .time-group {
    border-left: none;
    border-top: none;
}

/* center table group headers and table name headers */
#scheduleTable th.time-group,
#scheduleTable th.time-group i {
    vertical-align: middle;
}

/* make the <i> element fill the TH for easier centering */
#scheduleTable th.time-group i {
    display: block;
}

/* ensure any fallback THs are centered too */
#scheduleTable th.text-center {
    text-align: center;
}



.divider-text:before,
.divider-text:after {
    color: white;
    content: "";
    flex: 1;
    border-bottom: 1px solid #555;
    margin: auto 0.25rem;
    box-shadow: 0 -2px;
}




html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

html {
    position: relative;
    min-height: 100%;
}



.badge {
    background-color: rgba(189, 116, 24, 0.6);
    color: white;
}

.text-warning {
    color: #BD7418 !important;
}

.text-secondary {
    color: #425F4B !important;
}

.text-primary {
    color: #192E2F !important;
}

.text-success {
    color: #4b7147 !important;
}

.bg-primary {
    background-color: #192E2F !important;    
}

.bg-secondary {
    background-color: #3A595C !important;
}

bg-success {
    background-color: #4b7147 !important;
}



.card {
    border-color: #425F4B !important;
}



/* btn-outline-primary */



.btn-outline-primary {
    color: #192E2F;
    border-color: #192E2F;
}



    .btn-outline-primary:hover {
        color: #fff;
        background-color: #192E2F;
        border-color: #192E2F;
    }



    .btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-primary,
    .btn-check:active + .btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show {
        color: #fff;
        background-color: #192E2F;
        border-color: #192E2F;
    }



        .btn-check:checked + .btn-outline-primary:focus,
        .btn-check:active + .btn-outline-primary:focus, .btn-outline-primary:active:focus, .btn-outline-primary.active:focus, .btn-outline-primary.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-primary:disabled, .btn-outline-primary.disabled {
        color: #192E2F;
        background-color: transparent;
    }


.btn-outline-warning {
    color: #C07b24;
    border-color: #C07b24;
}



    .btn-outline-warning:hover {
        color: #fff;
        background-color: #C07b24;
        border-color: #C07b24;
    }



    .btn-check:focus + .btn-outline-warning, .btn-outline-warning:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-warning,
    .btn-check:active + .btn-outline-warning, .btn-outline-warning:active, .btn-outline-warning.active, .btn-outline-warning.dropdown-toggle.show {
        color: #fff;
        background-color: #C07b24;
        border-color: #C07b24;
    }



        .btn-check:checked + .btn-outline-warning:focus,
        .btn-check:active + .btn-outline-warning:focus, .btn-outline-warning:active:focus, .btn-outline-warning.active:focus, .btn-outline-warning.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-warning:disabled, .btn-outline-warning.disabled {
        color: #C07b24;
        background-color: transparent;
    }



.btn-outline-secondary {
    color: #134b5f;
    border-color: #134b5f;
}



    .btn-outline-secondary:hover {
        color: #fff;
        background-color: #134b5f;
        border-color: #134b5f;
    }



    .btn-check:focus + .btn-outline-secondary, .btn-outline-secondary:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-secondary,
    .btn-check:active + .btn-outline-secondary, .btn-outline-secondary:active, .btn-outline-secondary.active, .btn-outline-secondary.dropdown-toggle.show {
        color: #fff;
        background-color: #134b5f;
        border-color: #134b5f;
    }



        .btn-check:checked + .btn-outline-secondary:focus,
        .btn-check:active + .btn-outline-secondary:focus, .btn-outline-secondary:active:focus, .btn-outline-secondary.active:focus, .btn-outline-secondary.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-secondary:disabled, .btn-outline-secondary.disabled {
        color: #134b5f;
        background-color: transparent;
    }




/* btn-primary */



.btn-primary {
    color: #fff;
    background-color: #192E2F;
    border-color: #192E2F;
}



    .btn-primary:hover {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }



    .btn-check:focus + .btn-primary, .btn-primary:focus {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-primary,
    .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active,
    .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }



        .btn-check:checked + .btn-primary:focus,
        .btn-check:active + .btn-primary:focus, .btn-primary:active:focus, .btn-primary.active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-primary:disabled, .btn-primary.disabled {
        color: #fff;
        background-color: #445f5e;
        border-color: #445f5e;
    }


.btn-danger {
    color: #fff;
    background-color: #CA1929;
    border-color: #CA1929;
}



    .btn-danger:hover {
        color: #fff;
        background-color: #b84743;
        border-color: #ae423f;
    }



    .btn-check:focus + .btn-danger, .btn-danger:focus {
        color: #fff;
        background-color: #d9534f;
        ;
        border-color: #d9534f;
        ;
        box-shadow: 0 0 0 0.25rem rgba(223, 109, 105, 0.5);
    }



    .btn-check:checked + .btn-danger,
    .btn-check:active + .btn-danger, .btn-danger:active, .btn-danger.active,
    .show > .btn-danger.dropdown-toggle {
        color: #fff;
        background-color: #b84743;
        border-color: #b84743;
    }



        .btn-check:checked + .btn-danger:focus,
        .btn-check:active + .btn-danger:focus, .btn-danger:active:focus, .btn-danger.active:focus,
        .show > .btn-danger.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(223, 109, 105, 0.5);
        }



    .btn-danger:disabled, .btn-danger.disabled {
        color: #fff;
        background-color: #b84743;
        border-color: #b84743;
    }





.btn-secondary {
    color: #fff;
    background-color: #134b5f;
    border-color: #134b5f;
}



    .btn-secondary:hover {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }



    .btn-check:focus + .btn-secondary, .btn-secondary:focus {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-secondary,
    .btn-check:active + .btn-secondary, .btn-secondary:active, .btn-secondary.active,
    .show > .btn-secondary.dropdown-toggle {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }



        .btn-check:checked + .btn-secondary:focus,
        .btn-check:active + .btn-secondary:focus, .btn-secondary:active:focus, .btn-secondary.active:focus,
        .show > .btn-secondary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-secondary:disabled, .btn-secondary.disabled {
        color: #fff;
        background-color: #1a6985;
        border-color: #1a6985;
    }




.btn-warning {
    color: #fff;
    background-color: #BD7418;
    border-color: #BD7418;
}



    .btn-warning:hover {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }



    .btn-check:focus + .btn-warning, .btn-warning:focus {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
        box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
    }



    .btn-check:checked + .btn-warning,
    .btn-check:active + .btn-warning, .btn-warning:active, .btn-warning.active,
    .show > .btn-warning.dropdown-toggle {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }



        .btn-check:checked + .btn-warning:focus,
        .btn-check:active + .btn-warning:focus, .btn-warning:active:focus, .btn-warning.active:focus,
        .show > .btn-warning.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
        }



    .btn-warning:disabled, .btn-warning.disabled {
        color: #fff;
        background-color: #c6883a;
        border-color: #c6883a;
    }





.btn-outline-success {
    color: #4b7147;
    border-color: #4b7147;
}



    .btn-outline-success:hover {
        color: #fff;
        background-color: #4b7147;
        border-color: #4b7147;
    }



    .btn-check:focus + .btn-outline-success, .btn-outline-success:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
    }



    .btn-check:checked + .btn-outline-success,
    .btn-check:active + .btn-outline-success, .btn-outline-success:active, .btn-outline-success.active, .btn-outline-success.dropdown-toggle.show {
        color: #fff;
        background-color: #4b7147;
        border-color: #4b7147;
    }



        .btn-check:checked + .btn-outline-success:focus,
        .btn-check:active + .btn-outline-success:focus, .btn-outline-success:active:focus, .btn-outline-success.active:focus, .btn-outline-success.dropdown-toggle.show:focus {
            box-shadow: 0 0 0 0.25rem rgba(25, 46, 47, 0.5);
        }



    .btn-outline-success:disabled, .btn-outline-success.disabled {
        color: #4b7147;
        background-color: transparent;
    }




/* btn-primary */
.btn-success {
    color: #fff;
    background-color: #4b7147;
    border-color: #4b7147;
}

.btn-success:hover {
    color: #fff;
    background-color: #578553;
    border-color: #578553;
}

.btn-check:focus + .btn-success, .btn-success:focus {
    color: #fff;
    background-color: #578553;
    border-color: #578553;
    box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
}

.btn-check:checked + .btn-success,
.btn-check:active + .btn-success, .btn-success:active, .btn-success.active,
.show > .btn-success.dropdown-toggle {
    color: #fff;
    background-color: #578553;
    border-color: #578553;
}

.btn-check:checked + .btn-success:focus,
.btn-check:active + .btn-success:focus, .btn-success:active:focus, .btn-success.active:focus,
.show > .btn-success.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(60, 60, 60, 0.5);
}

.btn-success:disabled, .btn-success.disabled {
    color: #fff;
    background-color: #578553;
    border-color: #578553;
}


/* Chat Sidebar */
.chat-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .chat-sidebar.active {
        right: 0;
    }

.chat-header {
    background: linear-gradient(135deg, crimson 0%, darkred 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

    .chat-header h5 {
        margin: 0;
        font-weight: 600;
    }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.own {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    max-width: 70%;
    padding: 0.75rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.chat-message.own .message-bubble {
    background: linear-gradient(135deg, crimson 0%, darkred 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.chat-message:not(.own) .message-bubble {
    background: white;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 0.25rem;
}

.message-sender {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.message-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

    .chat-input input {
        border-radius: 2rem;
    }

    .chat-input .btn {
        border-radius: 50%;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1040;
}

    .chat-overlay.active {
        display: block;
    }

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chat-sidebar {
        width: 100%;
        right: -100%;
    }
}

.btn-chat-site {
    color: gold;
    border-color: var(--site-color);
    background-color: transparent;
}

    .btn-chat-site:hover {
        color: white;
        background-color: var(--site-color);
        border-color: var(--site-color);
    }

    .btn-chat-site i {
        color: gold;
    }

input[type="checkbox"]:disabled {
    accent-color: #b3d1ff !important; /* Faded blue */
    opacity: 1; /* Prevents default graying out */
    background-color: #b3d1ff !important; /* For browsers that don't support accent-color */
}










