	   :root {
            --whatsapp-green: #25D366;
            --whatsapp-light-green: #DCF8C6;
            --whatsapp-dark-green: #128C7E;
            --whatsapp-chat-bg: #ECE5DD;
            --whatsapp-header: #EDEDED;
            --whatsapp-border: #E0E0E0;
            --header-bg: #06a789;
            --header-text: white;
            --input-bg: #EDEDED;
            --input-border: #E0E0E0;
            --sent-bubble: #DCF8C6;
            --received-bubble: white;
            --text-color: black;
            --time-color: #667781;
            --typing-indicator: #9E9E9E;
            --chat-inputbg:#FFF;
        }

        /* Dark theme variables */
        [data-bs-theme="dark"] {
            --whatsapp-chat-bg: #0D1418;
            --whatsapp-header: #1F2C34;
            --whatsapp-border: #303D45;
            --header-bg: #1F2C34;
            --header-text: white;
            --input-bg: #1F2C34;
            --input-border: #303D45;
            --sent-bubble: #005C4B;
            --received-bubble: #202C33;
            --text-color: #E9EDEF;
            --time-color: #99BEB7;
            --typing-indicator: #8696A0;
            --chat-inputbg:#32444e;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background-color 0.3s, color 0.3s;
        }
        
        body {
            background-color: #d7d0c9;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .chat-container {
            width: 100%;
            height: 100vh;
            background-color: white;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        
        .chat-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: var(--header-bg);
            color: var(--header-text);
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 1000;
            box-sizing: border-box;
        }
        
        .header-left {
            display: flex;
            align-items: center;
        }
        
        .theme-switch {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 15px;
        }
        
        .theme-switch .form-check-input {
            width: 3em;
            height: 1.5em;
            cursor: pointer;
        }
        
        .theme-switch .form-check-label {
            color: var(--header-text);
            cursor: pointer;
        }
        
        .chat-header img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .chat-header h2 {
            font-size: 18px;
            font-weight: 500;
            margin: 0;
        }
        
        .chat-messages {
            flex: 1;
            padding: 80px 15px 70px;
            overflow-y: auto;
            background-color: var(--whatsapp-chat-bg);
            display: flex;
            flex-direction: column;
        }
        
        .message {
            max-width: 90%;
            margin-bottom: 15px;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .received {
            align-self: flex-start;
            margin-right: auto;
        }
        
        .sent {
            align-self: flex-end;
            margin-left: auto;
        }
        
        .message-bubble {
            padding: 8px 12px;
            border-radius: 7.5px;
            word-wrap: break-word;
            position: relative;
            color: var(--text-color);
        }
        
        .received .message-bubble {
            background-color: var(--received-bubble);
            box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
            border-top-left-radius: 0;
        }
        
        .sent .message-bubble {
            background-color: var(--sent-bubble);
            box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
            border-top-right-radius: 0;
        }
        
        /* WhatsApp-style speech bubble pointers */
        .received .message-bubble::before {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            left: -8px;
            top: 0;
            border: 8px solid transparent;
            border-top: 0;
            border-right: 8px solid var(--received-bubble);
        }
        
        .sent .message-bubble::after {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            right: -8px;
            top: 0;
            border: 8px solid transparent;
            border-top: 0;
            border-left: 8px solid var(--sent-bubble);
        }
        
        .message-time {
            font-size: 11px;
            color: var(--time-color);
            margin-top: 2px;
            align-self: flex-end;
        }
        
        .chat-input {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            padding: 10px;
            background-color: var(--input-bg);
            border-top: 1px solid var(--input-border);
            box-shadow: 1px -5px 15px 4px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }
        
        .chat-input input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 20px;
            outline: none;
            font-size: 14px;
            background-color: var(--chat-inputbg);
            color: var(--text-color);
        }
        
        .send-button {
            background-color: #0d6efd;
            color: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            margin-left: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        
        .typing-indicator {
            display: flex;
            padding: 8px 12px;
            background-color: var(--received-bubble);
            border-radius: 7.5px;
            margin-bottom: 15px;
            align-self: flex-start;
            box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.1);
            width: fit-content;
            border-top-left-radius: 0;
            position: relative;
        }
        
        .typing-indicator::before {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            left: -8px;
            top: 0;
            border: 8px solid transparent;
            border-top: 0;
            border-right: 8px solid var(--received-bubble);
        }
        
        .typing-indicator span {
            height: 8px;
            width: 8px;
            background-color: var(--typing-indicator);
            border-radius: 50%;
            display: inline-block;
            margin: 0 2px;
            animation: bounce 1.5s infinite ease-in-out;
        }
        
        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes bounce {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }

        /* Styling for formatted messages */
        .message-bubble ul, .message-bubble ol {
            padding-left: 20px;
            margin: 8px 0;
        }
        
        .message-bubble li {
            margin-bottom: 4px;
        }
        
        .message-bubble strong {
            font-weight: 600;
        }
        
        .message-bubble em {
            font-style: italic;
        }
