
        :root {
            --primary: #3B82F6;
            --primary-dark: #1D4ED8;
            --bg-dark: #0F172A;
            --bg-card: #1E293B;
            --bg-input: #334155;
            --text-primary: #F1F5F9;
            --text-secondary: #94A3B8;
            --border-color: #334155;
            --online: #10B981;
            --like: #EC4899;
            --notification: #EF4444;
            --male: #3B82F6;
            --female: #EC4899;
            --gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
        }
        
        /* App container */
        .app-container {
            display: flex;
            height: 100vh;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }
        
        /* Left sidebar - Active users */
        .sidebar {
            width: 280px;
            background: var(--bg-card);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            z-index: 100;
        }
        
        .sidebar-header {
            padding: 20px;
            background: var(--gradient);
            position: relative;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .logo-icon {
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.9);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: var(--primary-dark);
            font-size: 16px;
        }
        
        .logo-text h1 {
            font-size: 18px;
            font-weight: 800;
            color: white;
            line-height: 1.2;
        }
        
        .logo-text span {
            font-size: 11px;
            color: rgba(255,255,255,0.8);
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 8px;
            background: rgba(255,255,255,0.1);
            cursor: pointer;
            margin-bottom: 15px;
        }
        
        .profile-avatar {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 14px;
        }
        
        .profile-info {
            flex: 1;
        }
        
        .profile-name {
            font-weight: 600;
            font-size: 13px;
            color: white;
        }
        
        .profile-gender {
            font-size: 11px;
            color: rgba(255,255,255,0.8);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .stats {
            display: flex;
            gap: 15px;
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
        }
        
        .stat-value {
            font-size: 16px;
            font-weight: 700;
            color: white;
        }
        
        .stat-label {
            font-size: 11px;
            color: rgba(255,255,255,0.8);
        }
        
        .sidebar-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
        }
        
        .sidebar-tab {
            flex: 1;
            padding: 12px;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            position: relative;
        }
        
        .sidebar-tab.active {
            color: var(--text-primary);
        }
        
        .sidebar-tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary);
        }
        
        .tab-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background: var(--notification);
            color: white;
            font-size: 10px;
            width: 16px;
            height: 16px;
            border-radius: 8px;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .tab-badge.active {
            display: flex;
        }
        
        .users-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
        .user-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .user-item:hover {
            background: var(--bg-input);
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 14px;
            position: relative;
        }
        
        .user-gender {
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 2px solid var(--bg-card);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 8px;
        }
        
        .user-gender.male {
            background: var(--male);
        }
        
        .user-gender.female {
            background: var(--female);
        }
        
        .user-status {
            position: absolute;
            top: -3px;
            left: -3px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--online);
            border: 2px solid var(--bg-card);
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 2px;
        }
        
        .user-status-text {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        /* Main chat area */
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--bg-dark);
        }
        
        .chat-header {
            padding: 15px 20px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .room-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .room-flag {
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: var(--bg-input);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .room-details h2 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 2px;
        }
        
        .room-details p {
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .header-actions {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--bg-input);
            border: none;
            color: var(--text-primary);
            font-size: 15px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--notification);
            color: white;
            font-size: 10px;
            width: 16px;
            height: 16px;
            border-radius: 8px;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .notification-badge.active {
            display: flex;
        }
        
        /* Messages container */
        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .message {
            max-width: 75%;
            animation: fadeIn 0.3s ease-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .message.received {
            align-self: flex-start;
        }
        
        .message.sent {
            align-self: flex-end;
        }
        
        .message-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }
        
        .message-avatar {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 12px;
        }
        
        .message-user {
            font-weight: 700;
            font-size: 13px;
            color: var(--text-primary);
        }
        
        .message-time {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        .message-content {
            padding: 10px 14px;
            border-radius: 12px;
            word-break: break-word;
            line-height: 1.4;
            font-size: 14px;
        }
        
        .message.received .message-content {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
        }
        
        .message.sent .message-content {
            background: var(--primary);
            color: white;
        }
        
        .message-actions {
            display: flex;
            gap: 10px;
            margin-top: 6px;
            padding-left: 36px;
        }
        
        .message-action {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 6px;
            border-radius: 4px;
        }
        
        .message-action:hover {
            background: var(--bg-input);
        }
        
        .message-action.liked {
            color: var(--like);
        }
        
        .like-count {
            margin-left: 2px;
            font-size: 10px;
        }
        
        /* Message input */
        .message-input-container {
            padding: 15px 20px;
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
            position: sticky;
            bottom: 0;
            width: 100%;
        }
        
        .message-input-wrapper {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .input-area {
            flex: 1;
            background: var(--bg-input);
            border-radius: 12px;
            padding: 10px 15px;
            border: 1px solid transparent;
            display: flex;
            align-items: center;
            min-height: 44px;
        }
        
        .message-input {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 14px;
            width: 100%;
            outline: none;
            font-family: inherit;
            resize: none;
            max-height: 100px;
            min-height: 22px;
            padding: 0;
        }
        
        .message-input::placeholder {
            color: var(--text-secondary);
        }
        
        .send-button {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: var(--gradient);
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        /* GIF Selector */
        .gif-selector {
            position: absolute;
            bottom: 100px;
            left: 20px;
            right: 20px;
            background: var(--bg-card);
            border-radius: 12px;
            border: 1px solid var(--border-color);
            z-index: 100;
            display: none;
            flex-direction: column;
            max-height: 300px;
            overflow: hidden;
        }
        
        .gif-selector.active {
            display: flex;
        }
        
        .gif-header {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .gif-header h4 {
            font-size: 14px;
            font-weight: 600;
        }
        
        .close-gif {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 14px;
            cursor: pointer;
        }
        
        .gif-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            padding: 12px;
            overflow-y: auto;
        }
        
        .gif-item {
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 1;
        }
        
        .gif-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Profile Modal */
        .profile-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(5px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .profile-modal.active {
            display: flex;
        }
        
        .profile-content {
            background: var(--bg-card);
            border-radius: 16px;
            width: 100%;
            max-width: 400px;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }
        
        .profile-modal-header {
            padding: 20px;
            background: var(--gradient);
            color: white;
            text-align: center;
        }
        
        .profile-modal-header h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .profile-form {
            padding: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }
        
        .form-input {
            width: 100%;
            padding: 10px 12px;
            background: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            font-size: 14px;
            outline: none;
        }
        
        .gender-select {
            display: flex;
            gap: 10px;
            margin-top: 5px;
        }
        
        .gender-option {
            flex: 1;
            padding: 10px;
            background: var(--bg-input);
            border: 2px solid transparent;
            border-radius: 8px;
            color: var(--text-secondary);
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .gender-option.active {
            border-color: var(--primary);
            color: var(--text-primary);
        }
        
        .gender-option.male.active {
            background: rgba(59, 130, 246, 0.1);
        }
        
        .gender-option.female.active {
            background: rgba(236, 72, 153, 0.1);
        }
        
        .form-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        
        .btn {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
        }
        
        .btn-primary {
            background: var(--gradient);
            color: white;
        }
        
        .btn-secondary {
            background: var(--bg-input);
            color: var(--text-primary);
        }
        
        /* Notifications Panel */
        .notifications-panel {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: 300px;
            background: var(--bg-card);
            border-left: 1px solid var(--border-color);
            z-index: 1000;
            transform: translateX(100%);
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        
        .notifications-panel.active {
            transform: translateX(0);
        }
        
        .notifications-header {
            padding: 20px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .notifications-header h3 {
            font-size: 16px;
            font-weight: 700;
        }
        
        .close-notifications {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 16px;
            cursor: pointer;
        }
        
        .notifications-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }
        
        .notification-item {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            background: var(--bg-input);
            border-left: 3px solid var(--primary);
        }
        
        .notification-title {
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        
        .notification-text {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }
        
        .notification-time {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        /* Private Chat */
        .private-chat {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-dark);
            z-index: 900;
            display: none;
            flex-direction: column;
        }
        
        .private-chat.active {
            display: flex;
        }
        
        .private-header {
            padding: 15px 20px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .back-button {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 16px;
            cursor: pointer;
        }
        
        .private-user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        
        .private-avatar {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 14px;
            position: relative;
        }
        
        .private-status {
            position: absolute;
            top: -3px;
            left: -3px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--online);
            border: 2px solid var(--bg-card);
        }
        
        .private-user-details h4 {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 2px;
        }
        
        .private-user-details p {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        .private-messages {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .private-input-container {
            padding: 15px 20px;
            background: var(--bg-card);
            border-top: 1px solid var(--border-color);
        }
        
        /* Inbox Tab */
        .inbox-list {
            padding: 15px;
        }
        
        .inbox-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            background: var(--bg-input);
            border: 1px solid transparent;
        }
        
        .inbox-item:hover {
            border-color: var(--primary);
        }
        
        .inbox-item.unread {
            background: rgba(59, 130, 246, 0.1);
        }
        
        .inbox-avatar {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 16px;
            position: relative;
        }
        
        .inbox-info {
            flex: 1;
        }
        
        .inbox-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }
        
        .inbox-name {
            font-weight: 600;
            font-size: 13px;
        }
        
        .inbox-time {
            font-size: 11px;
            color: var(--text-secondary);
        }
        
        .inbox-preview {
            font-size: 12px;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .unread-badge {
            background: var(--notification);
            color: white;
            font-size: 10px;
            width: 18px;
            height: 18px;
            border-radius: 9px;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .unread-badge.active {
            display: flex;
        }
        
        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                bottom: 0;
                transform: translateX(-100%);
                z-index: 1000;
                width: 100%;
                max-width: 300px;
            }
            
            .sidebar.active {
                transform: translateX(0);
            }
            
            .notifications-panel {
                width: 100%;
            }
            
            .messages-container {
                padding: 15px;
            }
            
            .message {
                max-width: 85%;
            }
            
            .message-input-container {
                padding: 12px 15px;
            }
            
            .gif-selector {
                left: 15px;
                right: 15px;
                bottom: 90px;
            }
            
            .gif-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* Menu toggle for mobile */
        .menu-toggle {
            display: none;
            position: fixed;
            top: 15px;
            left: 15px;
            z-index: 1001;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--gradient);
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
        }
        
        @media (max-width: 768px) {
            .menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
        
        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
        }
        
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--bg-input);
            border-radius: 3px;
        }
