﻿/* Chat.css - Pink & Purple Theme Chat Application */
@font-face {
    font-family: 'Great Vibes';
    src: url('/Content/fonts/GreatVibes-Regular.woff2') format('woff2'), url('/Content/fonts/GreatVibes-Regular.woff') format('woff'), url('/Content/fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8bbd9, #e1bee7, #d1c4e9);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden; /* Prevent body scroll */
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Navigation Styles */
nav {
    background: linear-gradient(135deg, rgba(216, 191, 216, 0.9), rgba(203, 164, 206, 0.9));
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(186, 104, 200, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.log {
    font-family: 'Great Vibes', cursive;
    color: white;
    font-size: 2.8rem;
    margin: 0;
    text-shadow: 0 2px 10px rgba(186, 104, 200, 0.4);
    background: linear-gradient(45deg, #d8bfd8, #dda0dd, #ba68c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 2px 10px rgba(186, 104, 200, 0.4);
    }

    to {
        text-shadow: 0 4px 20px rgba(186, 104, 200, 0.6);
    }
}

.fancy-float-heading {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #ba68c8, #ce93d8, #d8bfd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    text-shadow: 0 1px 5px rgba(186, 104, 200, 0.3);
    animation: floatText 3s ease-in-out infinite;
    top: 50%;
    transform: translateY(-50%);
    text-decoration-style: bold;
}

/* Floating animation */
@keyframes floatText {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-56px);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Main Chat Container */
main {
    height: calc(100vh - 120px);
    overflow: auto;
}

.container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.opportunity-container {
    display: flex;
    gap: 30px;
    height: 85vh;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

.main-chat-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: 80vh;
    max-height: 600px;
    width: 100%;
}

/* Left Sidebar (Contacts) - Pink & Purple Theme */
.chat-sidebar {
    width: 30%;
    height: 100%;
}

.contacts_card {
    background: linear-gradient(135deg, #f9d6f5, #e1c8ff, #fce4ec);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 0, 128, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .contacts_card .card-header {
        background: linear-gradient(135deg, #d8bfd8, #ce93d8);
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 1.5rem;
        flex-shrink: 0;
        backdrop-filter: blur(10px);
    }

.search {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    transition: all 0.3s ease;
}

    .search:focus {
        box-shadow: 0 0 15px rgba(186, 104, 200, 0.3);
        outline: none;
        border-color: #ba68c8;
        background: rgba(255, 255, 255, 1);
    }

.search_btn {
    background: linear-gradient(135deg, #ce93d8, #ba68c8);
    border: none;
    border-radius: 0 25px 25px 0;
    color: white;
    transition: all 0.3s ease;
}

    .search_btn:hover {
        background: linear-gradient(135deg, #ba68c8, #ce93d8);
        transform: scale(1.05);
    }

/* Contacts List */
.contacts_body {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    height: 0;
}

.contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .contacts li {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        padding: 12px 15px;
        margin-bottom: 10px;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

        .contacts li:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(186, 104, 200, 0.15);
            background: linear-gradient(135deg, #f8e8f8, #f0e8f0);
            border-color: #ce93d8;
        }

.img_cont {
    position: relative;
    display: inline-block;
}

.user_img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.2);
    border-radius: 50%;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    .status-dot.online {
        background: linear-gradient(135deg, #4caf50, #81c784);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    }

    .status-dot.offline {
        background: red;
    }

.user_info {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

    .user_info span {
        font-weight: 600;
        color: #333 !important;
        font-size: 1.1rem;
    }

.bold-text {
    font-weight: 800 !important;
    color: #9c27b0 !important;
    text-shadow: 0 1px 2px rgba(156, 39, 176, 0.2);
}

/* Right Side (Chat Area) */
.chat-main {
    width: 70%;
    height: 100%;
}

#chatArea {
    border: none;
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(156, 39, 176, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.msg_head {
    background: linear-gradient(135deg, #f5e8f5, #e8d5e8);
    color: #333;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(186, 104, 200, 0.15);
}

    .msg_head .user_img {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(233, 30, 99, 0.3);
    }

.btn-gradient {
    background: linear-gradient(135deg, #ba68c8, #ce93d8);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.3);
}

    .btn-gradient:hover {
        background: linear-gradient(135deg, #ce93d8, #ba68c8);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 25px rgba(186, 104, 200, 0.4);
        color: white;
    }

/* Message Body */
.msg_card_body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 0;
}

/* Message Containers */
.msg_cotainer {
    background: linear-gradient(135deg, #e9d8fd, #a78bfa);    /* Same as send */
    padding: 1rem 1.5rem;
    border-radius: 25px 25px 25px 8px;
    max-width: 70%;
    position: relative;
    margin-left: 1rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2); /* Same shadow as send */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: black; /* Same text color as send */
}


.msg_cotainer_send {
    background: linear-gradient(135deg, #ff69b4, #ffb6c1); /* Hot Pink to Light Pink */
    color: black;
    padding: 1rem 1.5rem;
    border-radius: 25px 25px 8px 25px;
    max-width: 70%;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2); /* Adjusted to match pink tone */
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.msg_time {
    display: block;
    font-size: 11px;
    color: gray;
    margin-top: 5px;
    text-align: right;
}

.msg_time_send {
    color: black;
    font-size: 0.75rem;
    position: absolute;
    bottom: -22px;
    right: 0;
}

.img_cont_msg {
    width: 45px;
    height: 45px;
}

.user_img_msg {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 50%;
}

/* Chat Footer */
.card-footer {
    background: linear-gradient(135deg, #f5e8f5, #e8d5e8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 8px rgba(186, 104, 200, 0.15);
}

.type_msg {
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    resize: none;
    height: 50px;
    color: #333;
}

    .type_msg:focus {
        outline: none;
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
        border-color: #e91e63;
        background: rgba(255, 255, 255, 1);
    }

.send_btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

    .send_btn:hover {
        background: linear-gradient(135deg, #66bb6a, #4caf50);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 15px 35px rgba(76, 175, 80, 0.6);
        color: white;
    }

/* No Chat Selected */
#noChatSelected {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #9c27b0;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05), rgba(156, 39, 176, 0.05));
}

    #noChatSelected i {
        color: #e91e63;
        text-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Search Results */
#searchResults {
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.3);
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quiz Modal Styles */
/* 🟣 Stylish Quiz Option Cards - Updated to white default */
#quizOptions label {
    display: block;
    padding: 14px 20px;
    margin-bottom: 12px;
    background-color: #ffffff; /* ✅ White background */
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#quizOptions input[type="radio"] {
    display: none;
}

    #quizOptions input[type="radio"]:checked + label {
        background: linear-gradient(135deg, #ce93d8, #f48fb1);
        color: white;
        border-color: #ab47bc;
        font-weight: bold;
        transform: scale(1.02);
    }

#quizOptions label:hover {
    border-color: #f06292;
    background: linear-gradient(135deg, #f8bbd0, #e1bee7);
    transform: scale(1.01);
}

/* ✅ Correct Answer Styling */
.option-label.correct {
    background: linear-gradient(135deg, #d4edda, #c8e6c9);
    border: 2px solid #28a745;
    color: #155724;
    font-weight: bold;
}

/* ❌ Wrong Answer Styling */
.option-label.wrong {
    background: linear-gradient(135deg, #f8d7da, #ffcdd2);
    border: 2px solid #dc3545;
    color: #721c24;
    font-weight: bold;
}

/* ⛔ Disable after answer */
.option-label.disabled {
    pointer-events: none;
    opacity: 0.8;
}

/* ✨ Result Fade Animation */
#quizResult {
    animation: fadeIn 0.5s ease;
}

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

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

/* 💜 Optional Purple Text Utility */
.text-purple {
    color: #7b1fa2 !important;
}

/* Button Variations */
.btn-light {
    border: 2px solid rgba(233, 30, 99, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 15px;
}

    .btn-light:hover {
        background: linear-gradient(135deg, #fce4ec, #f3e5f5);
        border-color: #e91e63;
        transform: translateY(-1px);
    }

.btn-secondary {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    border: none;
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #757575, #9e9e9e);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

/* Badge Styles */
.badge-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

/* Media Content Styles */
.msg_cotainer img,
.msg_cotainer_send img {
    border-radius: 15px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.msg_cotainer video,
.msg_cotainer_send video {
    border-radius: 15px;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
.msg_card_body::-webkit-scrollbar,
.contacts_body::-webkit-scrollbar {
    width: 8px;
}

.msg_card_body::-webkit-scrollbar-track,
.contacts_body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.msg_card_body::-webkit-scrollbar-thumb,
.contacts_body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

    .msg_card_body::-webkit-scrollbar-thumb:hover,
    .contacts_body::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #9c27b0, #e91e63);
    }


/* Result Fade Animation */
#quizResult {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Design */
@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
        overflow-x: hidden;
    }

    nav .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .opportunity-container {
        flex-direction: column;
        height: calc(100vh - 130px);
        gap: 10px;
        width: 98%;
        padding: 8px;
    }

    .chat-sidebar {
        width: 100%;
        height: 34vh;
    }

    .chat-main {
        width: 100%;
        height: calc(66vh - 16px);
    }

    .main-chat-wrapper {
        margin: 0.5rem;
        height: calc(100vh - 140px);
        max-height: none;
    }

    .contacts_card {
        border-radius: 20px 20px 0 0;
    }

    #chatArea {
        border-radius: 0 0 20px 20px;
    }

    .msg_cotainer,
    .msg_cotainer_send {
        max-width: 85%;
    }

    .msg_head {
        padding: 0.8rem;
    }

    .msg_head .user_info span {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .msg_card_body {
        padding: 0.9rem;
    }

    .card-footer {
        padding: 0.75rem;
    }

    .card-footer .input-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: center;
    }

    #openMediaPicker {
        flex: 0 0 auto;
    }

    #messageInput {
        flex: 1 1 100%;
        width: 100%;
        min-height: 42px;
        height: auto;
        margin: 0 !important;
    }

    .card-footer .input-group-append {
        display: flex;
        gap: 0.45rem;
        margin-left: 0 !important;
        width: 100%;
    }

    .send_btn,
    .card-footer .btn-secondary {
        flex: 1;
        width: 100%;
        padding: 0.65rem 0.8rem;
        font-size: 0.88rem;
    }

    .msg_cotainer,
    .msg_cotainer_send {
        max-width: 90%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .fancy-float-heading {
        position: static !important;
        width: 100% !important;
        font-size: 32px;
        line-height: 1.2;
        transform: none !important;
        margin-bottom: 0;
    }

    /* Loading Animation */
    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    .loading {
        position: relative;
        overflow: hidden;
    }

        .loading::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shimmer 1.5s infinite;
        }
}

@media (max-width: 576px) {
    .opportunity-container {
        height: calc(100vh - 120px);
        padding: 6px;
        gap: 8px;
    }

    .chat-sidebar {
        height: 30vh;
    }

    .chat-main {
        height: calc(70vh - 14px);
    }

    .contacts li {
        padding: 8px 10px;
        margin-bottom: 6px;
    }

    .user_img {
        width: 42px;
        height: 42px;
    }

    .user_info span {
        font-size: 0.9rem;
    }

    .img_cont_msg,
    .user_img_msg {
        width: 34px;
        height: 34px;
    }

    .fancy-float-heading {
        font-size: 26px;
    }
}

/* ===== Modal Container ===== */
#scheduleModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ===== Header Gradient (Play Quiz Style) ===== */
#scheduleModal .modal-header {
    background: linear-gradient(135deg, #ff5f9e, #a64bf4) !important; /* Pink → Purple */
    color: white !important;
    border-bottom: none !important;
    padding: 12px 20px;
}

    #scheduleModal .modal-header .modal-title {
        font-weight: 600;
    }

    #scheduleModal .modal-header .close {
        color: white !important;
        opacity: 0.9;
        font-size: 1.4rem;
    }

        #scheduleModal .modal-header .close:hover {
            opacity: 1;
        }

/* ===== Body ===== */
#scheduleModal .modal-body {
    background: #fff7fc;
    padding: 20px;
}

    /* Input Fields */
    #scheduleModal .modal-body .form-control {
        border-radius: 8px;
        border: 1px solid #d8b4f8;
    }

        #scheduleModal .modal-body .form-control:focus {
            border-color: #a855f7;
            box-shadow: 0 0 0 0.2rem rgba(168,85,247,0.3);
        }

/* ===== Footer ===== */
#scheduleModal .modal-footer {
    background: #fff7fc;
    border-top: none !important;
}

/* ===== Schedule Button - Play Quiz Style ===== */
#scheduleModal .btn-gradient {
    background: linear-gradient(135deg, #ff5f9e, #a64bf4) !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    #scheduleModal .btn-gradient:hover {
        background: linear-gradient(135deg, #ff79b4, #b567f9) !important;
        transform: translateY(-1px);
    }

/* ===== Schedule Button - Pink → Purple Gradient ===== */
/* Shared Button Shape */
#scheduleModal .btn-schedule,
#scheduleModal .btn-cancel {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

/* Schedule Button - Pink → Purple */
#scheduleModal .btn-schedule {
    background: linear-gradient(135deg, #ff5f9e, #a64bf4) !important;
    color: white !important;
}

    #scheduleModal .btn-schedule:hover {
        background: linear-gradient(135deg, #ff79b4, #b567f9) !important;
        transform: translateY(-1px);
    }

/* Cancel Button - Gray → Black → White */
#scheduleModal .btn-cancel {
    background: linear-gradient(135deg, #dcdcdc, #333333, #ffffff);
    color: white;
}

    #scheduleModal .btn-cancel:hover {
        background: linear-gradient(135deg, #f0f0f0, #555555, #e0e0e0);
        color: #000;
        transform: translateY(-1px);
    }

.chat-date-separator {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 15px 0;
    position: relative;
}

    .chat-date-separator::before,
    .chat-date-separator::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40%;
        height: 1px;
        background: #ccc;
    }

    .chat-date-separator::before {
        left: 0;
    }

    .chat-date-separator::after {
        right: 0;
    }

/* ====== MOOD SYNC INTERFACE STYLES ====== */

/* Smooth transitions for all mood changes */
#chatArea {
    position: relative;
    overflow: hidden;
}

    #chatArea.mood-transition * {
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

/* Enhanced message containers with mood colors */
.msg_cotainer,
.msg_cotainer_send {
    transition: all 0.6s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    /* Mood glow effect */
    .msg_cotainer_send::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
        transform: rotate(45deg);
        animation: moodShine 3s infinite;
    }

@keyframes moodShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Mood indicator styles */
.mood-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin-left: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    animation: moodPulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

    .mood-indicator::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 25px;
        padding: 2px;
        background: linear-gradient(45deg, rgba(255,255,255,0.5), transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }

.mood-emoji {
    font-size: 18px;
    animation: moodBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mood-name {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* Pulse animation */
@keyframes moodPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 5px 15px rgba(0,0,0,0.35);
    }
}

/* Bounce animation */
@keyframes moodBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-4px) rotate(-5deg);
    }

    75% {
        transform: translateY(-2px) rotate(5deg);
    }
}

/* Mood particles */
.mood-particle {
    position: absolute;
    font-size: 28px;
    pointer-events: none;
    animation: floatUp 3s ease-out forwards;
    z-index: 999;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-60px) rotate(180deg) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(360deg) scale(0.5);
    }
}

/* Enhanced header with mood gradient */
.msg_head {
    transition: background 0.8s ease, box-shadow 0.6s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .msg_head::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.8) 100%);
        animation: headerShine 2s infinite;
    }

@keyframes headerShine {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Enhanced send button */
.send_btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .send_btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255,255,255,0.4);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .send_btn:hover {
        transform: scale(1.08) translateY(-2px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }

        .send_btn:hover::before {
            width: 300px;
            height: 300px;
        }

    .send_btn:active {
        transform: scale(0.95);
    }

/* Message body with mood ambiance */
.msg_card_body {
    position: relative;
    transition: background 0.8s ease;
}

/* Chat background subtle pattern based on mood */
#messageBody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: radial-gradient(circle at 20% 50%, currentColor 1px, transparent 1px), radial-gradient(circle at 80% 80%, currentColor 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Mood change notification */
.mood-change-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 12px 20px;
    background: rgba(0,0,0,0.85);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    animation: slideInRight 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Responsive mood indicator */
@media (max-width: 768px) {
    .mood-indicator {
        padding: 5px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .mood-emoji {
        font-size: 16px;
    }

    .mood-name {
        display: none;
    }
}

/* Dark mode mood adjustments */
@media (prefers-color-scheme: dark) {
    .mood-indicator {
        box-shadow: 0 3px 12px rgba(255,255,255,0.1);
    }

    .msg_cotainer,
    .msg_cotainer_send {
        box-shadow: 0 2px 8px rgba(255,255,255,0.05);
    }
}



