:root {
  /* Dark theme variables */
  --primary-color: #00ffff;
  --primary-dark: #008b8b;
  --secondary-color: #ffffff;
  --accent-color: #ffff00;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-glass: rgba(0, 255, 255, 0.1);
  --bg-glass-hover: rgba(0, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #00ffff;
  --text-accent: #ff0000;
  --border-glow: rgba(0, 255, 255, 0.5);
  --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.3);
  --shadow-neon-strong: 0 0 30px rgba(0, 255, 255, 0.6);
  --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-neon: linear-gradient(135deg, #000000 0%, #0c8d21 100%);
  --gradient-accent: linear-gradient(135deg, #ffff00 0%, #ff6600 100%);
}

/* Light theme variables */
[data-theme="light"] {
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
  --secondary-color: #764ba2;
  --accent-color: #f59e0b;
  --bg-dark: #ffffff;
  --bg-darker: #f5f5f5;
  --bg-glass: rgba(245, 245, 245, 0.9);
  --bg-glass-hover: rgba(240, 240, 240, 0.9);
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-accent: #764ba2;
  --border-glow: rgba(102, 126, 234, 0.3);
  --shadow-neon: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-neon-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --gradient-neon: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Clean scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 9999 !important;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-strong);
}

/* Floating Chat Button - Clean Style with animations restored */
.chat-button {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color) !important;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-neon), inset 0 0 20px rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10000 !important;
    backdrop-filter: blur(10px);
    overflow: visible;
    animation: button-pulse 3s ease-in-out infinite;
    outline: none !important;
    box-sizing: border-box;
}

.chat-button:focus {
    outline: none !important;
    border: 2px solid var(--primary-color) !important;
}

.chat-button:active {
    outline: none !important;
    border: 2px solid var(--primary-color) !important;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-strong);
    color: var(--secondary-color);
    border-color: var(--secondary-color) !important;
}

.chat-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    z-index: 2;
    position: relative;
}

/* Chat Notification Badge - Clean Design with pulse */
.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 10001;
    animation: badge-pulse 2s ease-in-out infinite;
}

.chat-button.active {
    transform: scale(0.95);
    box-shadow: var(--shadow-neon-strong);
}


/* Unmute Button - Clean Style with animation */
.unmute-btn {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 9997 !important;
    backdrop-filter: blur(10px);
    animation: unmute-pulse 5s ease-in-out infinite;
}

.unmute-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-strong);
}

/* Chat Widget Container - Clean Design with scan effect */
.chat-widget {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important;
    width: 350px;
    height: 500px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: var(--shadow-neon), inset 0 0 50px rgba(0, 255, 255, 0.1);
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999 !important;
    overflow: hidden;
    backdrop-filter: blur(15px);
    max-height: calc(100vh - 110px);
    max-width: calc(100vw - 40px);
}

.chat-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: scan 4s linear infinite;
}

.chat-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chat-widget.expanded {
    width: 450px !important;
    height: 650px !important;
    bottom: 20px !important;
    right: 20px !important;
    max-height: calc(100vh - 40px);
}

/* Chat Header - Clean Style with glow effect */
.chat-header {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px var(--border-glow);
    position: relative;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-neon);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.avatar {
    width: 35px;
    height: 35px;
    background: var(--gradient-neon);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: avatar-glow 3s ease-in-out infinite alternate;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

.header-text h3 {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.header-text p {
    font-size: 11px;
    opacity: 0.8;
    color: white;
    font-family: 'Courier New', monospace;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-btn {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.expand-btn:hover {
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-color);
    transform: scale(1.1);
}

.close-btn {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.close-btn:hover {
    opacity: 1;
    box-shadow: var(--shadow-neon);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Chat Messages - Clean Design */
.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-dark);
}

.chat-messages.expanded {
    height: 500px;
}

.message {
    display: flex;
    gap: 12px;
    animation: slideIn 0.4s ease;
    position: relative;
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 2px solid;
    font-weight: bold;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.bot-avatar {
    background: var(--gradient-primary);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.user-avatar {
    background: var(--gradient-accent);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-neon);
}

.message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid;
    font-family: 'Courier New', monospace;
}

.bot-message {
    background: var(--bg-glass);
    color: var(--accent-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.user-message {
    background: var(--gradient-neon);
    color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-neon);
}

/* Quick Replies - Clean Design */
.quick-replies {
    padding: 0 20px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bg-dark);
}

.quick-reply {
    background: var(--bg-glass);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-color);
    backdrop-filter: blur(5px);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.quick-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    transition: left 0.3s ease;
    opacity: 0.1;
}

.quick-reply:hover::before {
    left: 0;
}

.quick-reply:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

/* Chat Input - Clean Design */
.chat-input {
    padding: 20px;
    border-top: 2px solid var(--primary-color);
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
}

.input-field {
    flex: 1;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(5px);
}

.input-field::placeholder {
    color: white;
    opacity: 0.7;
}

.input-field:focus {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-neon);
    background: var(--bg-glass-hover);
}

/* Send Button - Clean Design (removed rotating elements) */
.send-btn {
    width: 45px;
    height: 45px;
    background: var(--gradient-neon);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    z-index: 2;
    position: relative;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-strong);
    border-color: var(--secondary-color);
}

.send-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-neon-strong);
}

.send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: var(--bg-dark);
    border-color: var(--text-secondary);
}

/* Typing Indicator - Clean Design */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    max-width: 75%;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-neon);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.6s;
}

/* Status dot for online indicator */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* Animations - Clean and Simple */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    }
}

@keyframes button-pulse {
    0%, 100% {
        box-shadow: var(--shadow-neon), inset 0 0 20px rgba(0, 255, 255, 0.1);
    }
    50% {
        box-shadow: var(--shadow-neon-strong), inset 0 0 30px rgba(0, 255, 255, 0.2);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(255, 215, 0, 0);
    }
}

@keyframes expand-pulse {
    0%, 100% {
        box-shadow: var(--shadow-neon);
    }
    50% {
        box-shadow: var(--shadow-neon-strong);
    }
}

@keyframes unmute-pulse {
    0%, 100% {
        box-shadow: var(--shadow-neon);
    }
    50% {
        box-shadow: var(--shadow-neon-strong);
    }
}

@keyframes scan {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

@keyframes avatar-glow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    }
}

@keyframes pulse-dot {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-widget {
        width: calc(100vw - 20px);
        height: 70vh;
        right: 10px;
        bottom: 80px;
        max-height: calc(100vh - 100px);
        max-width: calc(100vw - 20px);
    }

    .chat-widget.expanded {
        width: calc(100vw - 10px);
        height: 85vh;
        right: 5px;
        bottom: 10px;
        max-height: calc(100vh - 20px);
    }

    .chat-button {
        bottom: 70px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .unmute-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .chat-messages {
        height: calc(70vh - 180px);
        padding: 12px;
    }

    .chat-messages.expanded {
        height: calc(85vh - 180px);
    }

    .message-content {
        max-width: 85%;
        padding: 10px 14px;
        font-size: 13px;
    }

    .chat-header {
        padding: 12px;
    }

    .chat-input {
        padding: 12px;
    }

    .input-field {
        padding: 10px 16px;
        font-size: 14px;
    }

    .avatar {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .header-text h3 {
        font-size: 13px;
    }

    .header-text p {
        font-size: 10px;
    }

    .expand-btn,
    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}



