
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    .chat-container {
        width: 100%;
        max-width: 800px;
        height: 90vh;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .chat-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 25px;
        text-align: center;
        position: relative;
    }
    .chat-header h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .chat-header p {
        font-size: 14px;
        opacity: 0.9;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        background: #f8f9fa;
    }
    .message {
        display: flex;
        margin-bottom: 20px;
        animation: slideIn 0.3s ease-out;
    }
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .new-chat-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.new-chat-btn:hover {
    background-color: #1e40af;
}

    .message.user {
        justify-content: flex-end;
    }
    .message-content {
        max-width: 70%;
        padding: 15px 20px;
        border-radius: 18px;
        position: relative;
    }
    .message.bot .message-content {
        background: white;
        color: #333;
        border-bottom-left-radius: 4px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .message.user .message-content {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-bottom-right-radius: 4px;
    }
    .message.crisis .message-content {
        background: #fef3c7;
        border: 2px solid #f59e0b;
        color: #92400e;
    }
    .message-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin: 0 10px;
        flex-shrink: 0;
    }
    .message.bot .message-avatar {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    .message.user .message-avatar {
        background: #e5e7eb;
    }
    .typing-indicator {
        display: none;
        align-items: center;
        gap: 10px;
        padding: 15px 20px;
        background: white;
        border-radius: 18px;
        width: fit-content;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .typing-indicator.active {
        display: flex;
    }
    .typing-dot {
        width: 8px;
        height: 8px;
        background: #667eea;
        border-radius: 50%;
        animation: typing 1.4s infinite;
    }
    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }
    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }
    @keyframes typing {
        0%, 60%, 100% { transform: translateY(0); }
        30% { transform: translateY(-10px); }
    }
    .chat-input-container {
        padding: 20px;
        background: white;
        border-top: 1px solid #e5e7eb;
    }
    .chat-input-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .chat-input {
        flex: 1;
        padding: 15px 20px;
        border: 2px solid #e5e7eb;
        border-radius: 25px;
        font-size: 15px;
        outline: none;
        transition: border-color 0.3s;
    }
    .chat-input:focus {
        border-color: #667eea;
    }
    .send-button {
        width: 50px;
        height: 50px;
        border: none;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .send-button:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }
    .send-button:active {
        transform: scale(0.95);
    }
    .send-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .welcome-message {
        text-align: center;
        padding: 40px 20px;
        color: #6b7280;
    }
    .welcome-message h2 {
        color: #667eea;
        margin-bottom: 10px;
    }
    .welcome-message p {
        margin-bottom: 20px;
    }
    .quick-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
    }
    .quick-action {
        padding: 10px 20px;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
    }
    .quick-action:hover {
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-2px);
    }
    .crisis-banner {
        background: #fef3c7;
        border: 2px solid #f59e0b;
        padding: 15px;
        margin: 10px;
        border-radius: 10px;
        display: none;
        text-align: center;
        color: #92400e;
        font-weight: 500;
    }
    .crisis-banner.active {
        display: block;
    }
    /* Scrollbar styling */
    .chat-messages::-webkit-scrollbar {
        width: 8px;
    }
    .chat-messages::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 4px;
    }
    .chat-messages::-webkit-scrollbar-thumb:hover {
        background: #764ba2;
    }
    @media (max-width: 768px) {
        .chat-container {
            height: 100vh;
            border-radius: 0;
        }
        .message-content {
            max-width: 85%;
        }
    }
