        /* General Reset */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: #ffebf1; /* Soft pink for love theme */
            display: flex;
            justify-content: center;
            align-items: center;
            color: #333;
            position: relative;
        }

        /* Loading screen styles */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            display: none; /* Hidden by default */
        }

        .loading-popup {
            background-color: white;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            text-align: center;
            width: 300px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(0, 0, 0, 0.1);
            border-top-color: #ff6b81; /* Love-themed color */
            border-radius: 50%;
            animation: spin 1s infinite linear;
            margin: 0 auto 15px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Chat container */
        .chat-container {
            background: #fff;
            width: 100%;
            padding:10px;
            max-width: 600px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        /* Chat header */
        .chat-header {
            background-color: #ff6b81; /* Lovely red-pink */
            color: white;
            padding: 10px;
            width: 100%;
            font-size: 1.6rem;
            font-weight: bold;
            text-align: center;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            letter-spacing: 1px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Chat body */
        .chat-body {
            flex-grow: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            background-color: #fceef1; /* Light pink for soft feel */
            border-bottom: 1px solid #ddd;
        }

        .message {
            background-color: #f8dfe8; /* Softer bubble background */
            color: #333;
            padding: 10px;
            border-radius: 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            max-width: 100%;
            margin-bottom: 10px;
            word-wrap: break-word;
            white-space: pre-wrap;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        #timestamp {
            font-size: 0.85rem;
            margin-top: 10px;
            color: #888;
            text-align: right;
        }

        /* Chat footer */
        .chat-footer {
            margin-bottom:40px;
            padding: 15px;
            background-color: #f9f9f9;
            display: flex;
            gap: 10px;
            border-bottom-left-radius: 20px;
            border-bottom-right-radius: 20px;
            border-top: 1px solid #ddd;
        }

        .chat-footer textarea {
            flex-grow: 1;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 10px;
            font-size: 14px;
            resize: none;
            min-height: 80px;
            max-height: 200px;
            background-color: #fceef1;
            outline: none;
            transition: border 0.3s ease;
        }

        .chat-footer textarea:focus {
            border-color: #ff6b81;
        }

        .chat-footer button {
            background-color: #ff6b81;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .chat-footer button:hover {
            background-color: #e55c6f;
            transform: translateY(-2px);
        }

        .chat-footer button:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

        /* Responsive styles */
        @media (max-width: 768px) {
            .chat-container {
                height: 100vh;
            }

            .chat-header {
                font-size: 1.4rem;
            }
        }

        @media (max-width: 480px) {
            .chat-container {
                border-radius: 0;
                height: 100vh;
            }

            .chat-footer {
                padding: 10px;
            }

            .chat-footer textarea {
                height: 55px;
            }
        }

        /* Background decoration (subtle love effect) */
        body::before {
            content: "👻";
            font-size: 15rem;
            color: rgba(255, 182, 193, 0.15);
            position: absolute;
            left: 50%;
            top: 30%;
            transform: translate(-50%, -50%);
            z-index: -1;
        }