
      body {
            background: #f4f6f9;
            font-family: "Helvetica", sans-serif;
        }

        .ticket-header {
            background: #fff;
            padding: 20px;
            margin-top: 20px;
            border-radius: 6px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .status-label {
            padding: 6px 10px;
            border-radius: 4px;
            color: #fff;
        }

        .open       { background:#5cb85c; }
        .inprogress { background:#f0ad4e; }
        .closed     { background:#d9534f; }

        /* Chat Box */
        .chat-container {
            margin-top: 20px;
            background: #fff;
            border-radius: 6px;
            padding: 15px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .chat-box {
            height: 350px;
            overflow-y: scroll;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: #fafafa;
        }

        .result{
            height: 350px;
            overflow-y: scroll;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background: #fafafa; 
        }

        /* Message bubbles */
       .msg {
            margin-bottom: 18px;
            max-width: 50%;
            padding: 12px 15px;
            border-radius: 18px;
            position: relative;
            clear: both;
        }
        .msg-user {
            background: #d9edf7;
            float: left;
            border-radius: 18px;
            font-weight: bold;
            text-align: left;
            
        }

        .msg-admin {
            background:#abf5bf;
            border-radius: 18px;
            font-weight: bold;
            float: right;
            text-align: right;
            
        }

        .msg small {
            display: block;
            margin-top: 5px;
            font-size: 11px;
            color: #888;
        }

        .msg .sender-title {
            font-weight: bold;
            font-size: 20px;
            margin-bottom: 5px;
            color: #444;
            display: block;
        }

        /* Chat input area */
        .chat-input {
            margin-top: 15px;
        }

        .attachment-link {
            display: block;
            margin-top: 5px;
            font-size: 12px;
            color: #337ab7;
        }
 /* Chatbox button */
        .chatbox-button {
                position: fixed;
                bottom: 25px;
                right: 25px;

                width: 60px;
                height: 60px;

                background: linear-gradient(135deg, #0b5ed7, #084298);
                color: #ffffff;

                border: none;
                border-radius: 50%;
                cursor: pointer;

                font-size: 12px;
                display: flex;
                align-items: center;
                justify-content: center;

                box-shadow: 0 6px 18px rgba(11, 94, 215, 0.35);
                animation: pulseBlink 1s infinite;
                transition: transform 0.1s ease, box-shadow 0.1s ease;
        }

        .chatbox-button:hover {
          transform: scale(1.08);
          box-shadow: 0 8px 25px rgba(11, 94, 215, 0.5);
         }

        @keyframes pulseBlink {
        0% {
            box-shadow: 0 0 0 0 rgba(11, 94, 215, 0.6);
        }
        70% {
            box-shadow: 0 0 0 14px rgba(11, 94, 215, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(11, 94, 215, 0);
        }
       }

        /* Chatbox popup */
        .chatbox-popup {
            display: none;
            position: fixed;
            bottom: 80px;
            right: 20px;
            width: 90%;
            max-width: 500px;
            border: 1px solid #ddd;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            background-color: white;
            z-index: 1000;

        }

        .chatbox-header {
            background-color:#50ABF1;
            color: white;
            padding: 10px;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
            font-size: 16px;
            display: flex;
            justify-content: space-between;
        }

        .chatbox-header .close-btn {
            cursor: pointer;
        }

        .chatbox-body {
            padding: 10px;
            height: 400px;
            overflow-y: auto;
            background-color: #FFFFFF;
        }

        .chatbox-footer {
            padding: 10px;
            border-top: 1px solid #ddd;
            display: flex;
            gap: 10px;
        }

        .chatbox-footer input[type="text"] {
            flex-grow: 1;
            padding: 5px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 420px;
        }

        .chatbox-footer button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
        }

        @media screen and (max-width: 600px) {
            .chatbox-popup {
                left: 5%;
                width: 90%;
            }
        }

        @keyframes letszoom {
     
         0% {transform: scale(0.7);-webkit-transform: scale(0.7);-ms-transform: scale(0.7);background-color:#1F3B5C;font-weight:bold;}
          25%  {transform: scale(0.8);-webkit-transform: scale(0.8);-ms-transform: scale(0.8);background-color:red;font-weight:bold;}
          50%  {transform: scale(0.9);-webkit-transform: scale(0.9);-ms-transform: scale(0.9);background-color:#8c0b45;font-weight:bold;}
          75%  {transform: scale(1.0);-webkit-transform: scale(1.0);-ms-transform: scale(1.0);background-color:green;font-weight:bold;}
          100% {transform: scale(1.02);-webkit-transform: scale(1.02);-ms-transform: scale(1.02);background-color:#1390c2;font-weight:bold;}

}

#typing { display:none; color:#888; font-style:italic; padding:5px 10px; }

.chat-container {
    width: 420px;
    margin: 30px auto;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chat-row {
    display: flex;
    margin-bottom: 15px;
}

.chat-row.bot {
    align-items: flex-start;
}

.chat-row.user {
    justify-content: flex-end;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-bubble {
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 300px;
    font-size: 14px;
    line-height: 1.4;
}

.bot-bubble {
    background: #abf5bf;
    color: #000;
    border-top-left-radius: 0;
}

.user-bubble {
    background: #e5e5e5;
    color: #000;
    border-top-right-radius: 0;
}
