 body {
            font-family: 'Inter', sans-serif;
            background-color: #f3f4f6;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            color: #1f2937;
            transition: background-color 0.3s, color 0.3s;
            padding: 1rem;
        }

        body.dark {
            background-color: #111827; /* Darker body background */
            color: white; /* Light text for dark mode */
        }
        
        body.dark .chat-container {
            background-color: #1f2937; /* Dark container background */
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }

        body.dark .header {
            background-color: #bd86fc; /* Darker blue header */
        }
        
        body.dark .bot-message {
            background-color: #bd86fc; /* Mid-dark gray for bot messages */
            color: white;
        }
        
        body.dark .user-message {
            background-color: #dbc8f2; /* Darker blue for user messages */
            color: black;
        }

        /* New layout for the main container */
        .main-container {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            width: 100%;
            max-width: 900px;
        }

        /* Desktop layout */
        @media (min-width: 768px) {
            .main-container {
                flex-direction: row;
                align-items: flex-start;
                justify-content: center;
            }
            .sidebar {
                width: 250px;
                flex-shrink: 0;
            }
            .chat-container {
                flex-grow: 1;
                max-width: 600px;
            }
        }
        
        .chat-container {
            background-color: #fff;
            border-radius: 1.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 70vh;
            margin: 0;
        }

        .header {
            background-color: #fdaaaa;
            color: #fff;
            padding: 1.5rem;
            text-align: center;
            border-top-left-radius: 1.5rem;
            border-top-right-radius: 1.5rem;
            position: relative;
        }

        .chat-box {
            flex-grow: 1;
            padding: 1.5rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .message {
            max-width: 80%;
            border-radius: 1rem;
            padding: 0.75rem 1.25rem;
        }

        .user-message {
            background-color: #fdaaaa; /* Lighter blue for user messages */
            align-self: flex-end;
            border-bottom-right-radius: 0.25rem;
            color: black;
        }

        .bot-message {
            background-color: #fdaaaa; /* Lighter gray for bot messages */
            align-self: flex-start;
            border-bottom-left-radius: 0.25rem;
            color: black;
        }

        .input-container {
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-top: 1px solid #e5e7eb;
        }
        
        #recordButton, #stopButton {
            transition: all 0.2s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        #recordButton:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
        }

        #stopButton:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.1), 0 4px 6px -1px rgba(0, 0, 0, 0.06);
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        #loading {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #fdaaaa;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #theme-toggle {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.5rem;
            border-radius: 0.5rem;
            background-color: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            transition: background-color 0.3s;
        }

        #theme-toggle:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

        .sidebar {
            background-color: #fff;
            border-radius: 1.5rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .sidebar .nav-button {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            border-radius: 1rem;
            font-weight: 600;
            color: #4b5563;
            transition: background-color 0.2s, color 0.2s;
        }

        .sidebar .nav-button:hover {
            background-color: #f3f4f6;
            color: #fdaaaa;
        }

        .sidebar .nav-button svg {
            width: 24px;
            height: 24px;
            color: #9ca3af;
        }

        .sidebar .nav-button:hover svg {
            color: #fdaaaa;
        }
        
        /* Dark mode for sidebar */
        body.dark .sidebar {
            background-color: #2d3748;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }

        body.dark .sidebar .nav-button {
            color: #e2e8f0;
        }

        body.dark .sidebar .nav-button:hover {
            background-color: #4a5568;
            color: #fdaaaa;
        }

        body.dark .sidebar .nav-button svg {
            color: #9ca3af;
        }

        body.dark .sidebar .nav-button:hover svg {
            color: #fdaaaa;
        }