.chat-page {
            width: 100%;
            max-width: 800px;
            height: 90vh;
            display: flex;
            flex-direction: column;
            background: #ffffff;
         
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        /* ===============================
           HEADER
           =============================== */
        .chat-header {
            height: 80px;
            padding: 0 28px;
         background: linear-gradient(135deg, #820a0b, #c31432);

            border-bottom: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            color: white;
            position: relative;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }

        .chat-header span:first-child {
            font-size: 22px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-header span:first-child::before {
            content: "";
            display: block;
            width: 12px;
            height: 12px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        #chat-timer {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 16px;
            letter-spacing: 1px;
            backdrop-filter: blur(5px);
        }

        /* ===============================
           MESSAGES AREA
           =============================== */
        .chat-messages {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            position: relative;
        }

        /* Custom scrollbar */
        .chat-messages::-webkit-scrollbar {
            width: 8px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: #e2e8f0;
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: #94a3b8;
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover {
            background: #64748b;
        }

        /* ===============================
           MESSAGE BASE
           =============================== */
        .chat-message {
            max-width: 70%;
            padding: 16px 20px;
            font-size: 15px;
            line-height: 1.5;
            border-radius: 18px;
            word-break: break-word;
            position: relative;
            animation: fadeIn 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            transition: transform 0.2s ease;
        }

        .chat-message:hover {
            transform: translateY(-2px);
        }

        /* ===============================
           LEFT (OTHER USER)
           =============================== */
        .chat-message.other {
            align-self: flex-start;
            background: #ffffff;
            border: none;
            color: #1e293b;
            border-bottom-left-radius: 5px;
            background: linear-gradient(135deg, #f06d08, #f9a602);

            position: relative;
        }

        .chat-message.other::before {
            content:"";
            position: absolute;
            top: -20px;
            left: 0;
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
        }

        .chat-message.other::after {
            content: "";
            position: absolute;
            left: -8px;
            bottom: 0;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-right-color: #ffffff;
            border-left: 0;
            margin-top: -8px;
            margin-bottom: 0;
        }

        /* ===============================
           RIGHT (ME)
           =============================== */
        .chat-message.me {
            align-self: flex-end;
           background: linear-gradient(135deg, #820a0b, #c31432);

            color: #ffffff;
            border-bottom-right-radius: 5px;
            position: relative;
        }

        .chat-message.me::before {
            content: "You";
            position: absolute;
            top: -20px;
            right: 0;
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
        }

        .chat-message.me::after {
            content: "";
            position: absolute;
            right: -8px;
            bottom: 0;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-left-color :#820a0b;

            border-right: 0;
            margin-top: -8px;
            margin-bottom: 0;
        }

        /* ===============================
           INPUT AREA
           =============================== */
        .chat-input {
            padding: 20px 24px;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 15px;
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        }

        .chat-input input {
            flex: 1;
            padding: 16px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 50px;
            outline: none;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #f8fafc;
        }

        .chat-input input:focus {
            border-color: #3b82f6;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .chat-input input::placeholder {
            color: #94a3b8;
        }

        .chat-input button {
            padding: 16px 28px;
            background: linear-gradient(135deg, #820a0b, #c31432);

            border: none;
            color: #ffffff;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .chat-input button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
        }

        .chat-input button:active {
            transform: translateY(0);
        }

        /* ===============================
           TYPING INDICATOR
           =============================== */
        .typing-indicator {
            display: flex;
            align-self: flex-start;
            background: #ffffff;
            padding: 15px 20px;
            border-radius: 18px;
            border-bottom-left-radius: 5px;
            margin-bottom: 10px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            max-width: 100px;
            position: relative;
        }

        .typing-indicator::before {
            content: "Dr. Smith";
            position: absolute;
            top: -20px;
            left: 0;
            font-size: 12px;
            font-weight: 600;
            color: #64748b;
        }

        .typing-indicator span {
            height: 10px;
            width: 10px;
            border-radius: 50%;
            background: #cbd5e1;
            display: block;
            margin: 0 2px;
            animation: typing 1.4s infinite;
        }

        .typing-indicator span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

        /* ===============================
           TIME STAMPS
           =============================== */
        .message-time {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 5px;
            text-align: right;
        }

        .chat-message.other .message-time {
            text-align: left;
        }

        /* ===============================
           MESSAGE STATUS (FOR MY MESSAGES)
           =============================== */
        .message-status {
            font-size: 12px;
            margin-left: 8px;
            opacity: 0.8;
        }

        /* ===============================
           MOBILE RESPONSIVENESS
           =============================== */
        @media (max-width: 768px) {
            .chat-page {
                height: 95vh;
                border-radius: 15px;
            }
            
            .chat-message {
                max-width: 85%;
            }
            
            .chat-header {
                height: 70px;
                padding: 0 20px;
            }
            
            .chat-header span:first-child {
                font-size: 18px;
            }
            
            #chat-timer {
                font-size: 14px;
                padding: 6px 12px;
            }
            
            .chat-input {
                padding: 15px 20px;
            }
            
            .chat-input button {
                padding: 14px 20px;
                font-size: 14px;
            }
        }

        /* ===============================
           ANIMATIONS
           =============================== */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
                background: #cbd5e1;
            }
            30% {
                transform: translateY(-8px);
                background: #94a3b8;
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
            }
            70% {
                box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

        /* ===============================
           INITIAL LOAD ANIMATION
           =============================== */
        .chat-page {
            animation: pageLoad 0.5s ease-out;
        }

        @keyframes pageLoad {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-main{
            
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0px;

        }