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

        :root {
            --primary: #4c9aff;
            --primary-dark: #2e7ee6;
            --secondary: #f0f8ff;
            --accent: #00d4ff;
            --success: #00d4aa;
            --danger: #ff4757;
            --warning: #ffa502;
            --dark: #0a0a0a;
            --dark-light: #1a1a1a;
            --dark-medium: #2a2a2a;
            --gray: #666666;
            --gray-light: #888888;
            --gray-dark: #333333;
            --white: #ffffff;
            --text-light: #cccccc;
            --border: rgba(255, 255, 255, 0.1);
        }

        body {
            font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--dark);
            color: var(--text-light);
            min-height: 100vh;
            overflow-x: hidden;
            font-weight: 400;
        }

        .dashboard-container {
            display: grid;
            grid-template-columns: 350px 1fr;
            min-height: 100vh;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }

        /* Sidebar */
        .sidebar {
            background: var(--dark-light);
            border-right: 1px solid var(--border);
            padding: 2rem 2rem;
            position: fixed;
            height: 100vh;
            width: 350px;
            z-index: 100;
            overflow-y: auto;
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(16px);
        }

        .sidebar-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }

        .sidebar-header h2 {
            color: var(--primary);
            font-size: 1.8rem;
            margin-bottom: 0.8rem;
            font-weight: bold;
        }

        .sidebar-nav {
            list-style: none;
        }

        .sidebar-nav li {
            margin-bottom: 0.5rem;
        }

        .sidebar-nav a {
            display: flex;
            align-items: center;
            padding: 1.2rem 1.5rem;
            color: var(--gray-light);
            text-decoration: none;
            border-radius: 15px;
            transition: all 0.3s ease;
            position: relative;
            font-size: 1.1rem;
        }

        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            transform: translateX(5px);
        }

        .sidebar-nav i {
            margin-right: 1rem;
            font-size: 1.2rem;
            width: 20px;
        }

        .header {
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(16px);
            padding: 2rem 3rem;
            border-radius: 20px;
            border: 1px solid var(--border);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
        }

        /* Main Content */
        .main-content {
            margin-left: 350px;
            padding: 2rem 4rem;
            background: var(--dark);
            min-height: 100vh;
            width: calc(100vw - 350px);
        }

        .chat-container {
            max-width: 100%;
            margin: 0;
            background: rgba(26, 26, 26, 0.95);
            border-radius: 25px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            height: 70vh;
            display: flex;
            flex-direction: column;
            backdrop-filter: blur(16px);
        }

        .chat-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            padding: 1.5rem;
            color: white;
            text-align: center;
            position: relative;
        }

        .chat-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .chat-subtitle {
            opacity: 0.9;
            font-size: 0.9rem;
        }

        .chat-status-info {
            position: absolute;
            top: 1rem;
            right: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-items: flex-end;
        }

        .status-indicator {
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-indicator.connected {
            background: rgba(0, 255, 136, 0.3);
        }

        .status-indicator.waiting_for_admin {
            background: rgba(255, 165, 2, 0.3);
        }

        .status-indicator.active {
            background: rgba(0, 255, 136, 0.4);
        }

        .status-indicator.ended {
            background: rgba(255, 71, 87, 0.3);
        }

        .admin-info, .queue-info {
            padding: 0.3rem 0.8rem;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .admin-count {
            font-weight: bold;
            color: var(--success);
        }

        .queue-position {
            color: var(--warning);
        }

        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .messages-container {
            flex: 1;
            padding: 1.5rem;
            overflow-y: auto;
            background: var(--dark);
        }

        .message {
            display: flex;
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.5s ease;
        }

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

        .message.admin {
            flex-direction: row;
        }

        .message.system {
            flex-direction: row;
        }

        .message-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 1rem;
            font-size: 1.2rem;
        }

        .message.user .message-avatar {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
        }

        .message.admin .message-avatar {
            background: var(--dark-light);
            color: var(--white);
        }

        .message.system .message-avatar {
            background: linear-gradient(135deg, var(--success), var(--accent));
            color: white;
        }

        .message-content {
            max-width: 70%;
            background: var(--dark-light);
            padding: 1rem 1.5rem;
            border-radius: 18px;
            position: relative;
        }

        .message.user .message-content {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
        }

        .message.admin .message-content {
            background: var(--dark-light);
            color: var(--white);
        }

        .message.system .message-content {
            background: linear-gradient(135deg, var(--success), var(--accent));
            color: white;
            text-align: center;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
        }

        .message-text {
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }

        .message-time {
            font-size: 0.75rem;
            opacity: 0.7;
            text-align: right;
        }

        .typing-indicator {
            display: none;
            padding: 1rem;
            text-align: center;
            color: var(--text-secondary);
            font-style: italic;
        }

        .input-container {
            padding: 1.5rem;
            background: var(--dark-light);
            border-top: 1px solid var(--border);
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .message-input {
            flex: 1;
            padding: 1rem 1.5rem;
            border: 2px solid var(--border);
            border-radius: 25px;
            background: var(--dark);
            color: var(--white);
            outline: none;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .message-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .message-input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: var(--dark-light);
            color: var(--gray-light);
        }

        .send-button {
            padding: 1rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
        }

        .send-button:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(76, 154, 255, 0.4);
        }

        .send-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .emoji-button {
            padding: 0.8rem;
            background: var(--dark-light);
            border: none;
            border-radius: 50%;
            color: var(--gray-light);
            cursor: pointer;
            transition: all 0.3s ease;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .emoji-button:hover {
            background: var(--primary);
            color: white;
        }

        .emoji-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quick-actions {
            display: flex;
            gap: 0.5rem;
            padding: 1rem 1.5rem;
            background: var(--dark-light);
            flex-wrap: wrap;
        }

        .quick-action {
            padding: 0.5rem 1rem;
            background: var(--dark);
            border: 1px solid var(--border);
            border-radius: 20px;
            color: var(--gray-light);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .quick-action:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .connection-status {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            z-index: 1001;
            display: none;
        }

        .connection-status.connected {
            background: var(--success);
            color: white;
        }

        .connection-status.error {
            background: var(--danger);
            color: white;
        }

        .connection-status.waiting {
            background: var(--warning);
            color: white;
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1002;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            border: none;
            border-radius: 10px;
            padding: 10px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(76, 154, 255, 0.3);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .dashboard-container {
                grid-template-columns: 300px 1fr;
            }
            
            .sidebar {
                width: 300px;
            }
            
            .main-content {
                margin-left: 300px;
                padding: 2rem;
                width: calc(100vw - 300px);
            }
        }
        
        @media (max-width: 768px) {
            .dashboard-container {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                transform: translateX(-100%);
                transition: transform 0.3s ease;
                width: 280px;
                position: fixed;
                z-index: 1001;
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
                padding: 1rem;
                padding-top: 80px;
                width: 100vw;
            }
            
            .chat-container {
                margin: 1rem;
                height: 80vh;
            }
            
            .message-content {
                max-width: 85%;
            }
            
            .input-container {
                padding: 1rem;
                flex-wrap: wrap;
            }
        }

        .chat-active-indicator {
            background: var(--success);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.75rem;
            animation: pulse 2s infinite;
        }
