        :root {
            --primary-color: orange;
            --secondary-color: #f1f5f9;
            --bot-bubble: #ffffff;
            --user-bubble: #2563eb;
            --text-main: #1e293b;
            --bg-chat: #f8fafc;
        }

        * { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
        .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: bold; }
        .nav-links a { text-decoration: none; color: #64748b; margin: 0 12px; font-weight: 500; transition: 0.3s; }
        .nav-links a:hover { color: var(--primary-color); }
        .emergency-btn { background: #ef4444; color: white !important; padding: 7px 18px; border-radius: 8px; text-decoration: none; }

        /* حاوية الدردشة */
        .chat-wrapper {
            max-width: 900px;
            margin: 110px auto;
            background: white;
            height: 75vh;
            display: flex;
            flex-direction: column;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            overflow: hidden;
            border: 1px solid #e2e8f0;
        }

        .chat-header {
            background: var(--primary-color);
            color: white;
            padding: 15px 25px;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .chat-header i { font-size: 1.5rem; }

        /* منطقة الرسائل */
        .chat-box {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: var(--bg-chat);
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message {
            max-width: 80%;
            padding: 12px 18px;
            border-radius: 15px;
            font-size: 0.95rem;
            line-height: 1.5;
            position: relative;
        }

        .bot-message {
            align-self: flex-start;
            background: var(--bot-bubble);
            color: var(--text-main);
            border-bottom-right-radius: 2px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
            border: 1px solid #e2e8f0;
        }

        .user-message {
            align-self: flex-end;
            background: var(--user-bubble);
            color: white;
            border-bottom-left-radius: 2px;
        }

        /* منطقة الإدخال */
        .chat-input-area {
            padding: 20px;
            background: white;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 10px;
        }

        .chat-input-area input {
            flex: 1;
            padding: 12px 20px;
            border: 1px solid #e2e8f0;
            border-radius: 30px;
            outline: none;
            transition: 0.3s;
            background: #f8fafc;
        }
        .chat-input-area input:focus { border-color: var(--primary-color); background: #fff; }

        .send-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            transition: 0.3s;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .send-btn:hover { transform: scale(1.1); background: #1d4ed8; }

        @media (max-width: 600px) {
            .chat-wrapper { height: 85vh; margin: 0; border-radius: 0; }
            .nav-links { display: none; }
        }
