 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f5f5f5;
        }
        
        .chat-container {
            display: flex;
            flex-direction: row-reverse;
            height: 100vh;
            width: 100%;
        }
        
        /* Mobile: 100% width */
        @media (max-width: 768px) {
            .chat-container {
                width: 100%;
            }
            
            .chat-main {
                width: 100%;
                position: absolute;
                left: 0;
                top: 0;
                z-index: 100;
                transform: translateX(-180%);
                transition: transform 0.3s ease;
            }
            
            .chat-main.active {
                transform: translateX(0);
            }
            
            .sidebar {
                width: 100%;
            }
            
            .hamburger {
                display: block;
            }
        }

        /* Desktop: 54% width */
        @media (min-width: 769px) {
            .chat-container {
                width: 100%;
            }
            
            .sidebar {
                width: 54%;
                border-left: 1px solid #e1dcdc;
               
            }
            
            .chat-main {
                width: 46%;
                transform: translateX(0);
            }
            
            .hamburger {
                display: none;
            }
             
        }
        
        /* Sidebar */
        .sidebar {
            background: white;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        }
        
        .sidebar-header {
            padding: 16px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .hamburger {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #333;
            position: absolute;
            right: 20px;
            top: 16px;
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid #e0e0e0;
            background-color: #79dcf7;
            color: white;
        }
         .user-inline {
            display: flex;
            align-items: center;
             gap: 12px;
        }
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #c6edf8;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .conversations-list {
            flex: 1;
            overflow-y: auto;
        }
        
        .conversation-item {
            padding: 12px 16px;
            border-bottom: 1px solid #f0f0f0;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .conversation-item:hover {
            background: #f9f9f9;
        }
        
        .conversation-item.active {
            background: #e3f2fd;
            border-left: 4px solid #79dcf7;
        }
        
        /* Chat Main */
        .chat-main {
            display: flex;
            flex-direction: column;
            background: white;
        }
        
        .chat-header {
            padding: 10px;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .message {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .message.own {
            justify-content: flex-end;
        }
        
        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #79dcf7;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
            flex-shrink: 0;
        }
         .message-content {
            max-width: 70%;
            background: #f0f0f0;
            padding: 12px;
            border-radius: 12px;
            word-wrap: break-word;
        }
        .message-content-own {
            max-width: 70%;
            background: #f0f0f0;
            padding: 12px;
            border-radius: 12px;
            word-wrap: break-word;
        }
        
        .message.own .message-content-own {
            background: #79dcf7;
            color: white;
        }
        .small-time{
            font-size: 9px;
            position: relative;
            background-color: #5ab8d9;
            margin-left:calc(100%-12px);
            border-radius: 4px;
            padding: 0.6px 5px 0.6px 5px;
        }
        .message-content small{
            background-color: #d4ecf5;
        }
        .message-reactions {
            display: flex;
            gap: 4px;
            margin-top: 4px;
            flex-wrap: wrap;
        }
        
        .reaction-emoji {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 2px 6px;
            font-size: 14px;
            cursor: pointer;
            
        }
        
        .chat-input-area {
            padding: 16px;
            border-top: 1px solid #e0e0e0;
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        
        .input-wrapper {
            flex: 1;
            display: flex;
            gap: 8px;
        }
        
        .message-input {
            flex: 1;
            border: 1px solid #e0e0e0;
            border-radius: 20px;
            padding: 10px 16px;
            font-size: 14px;
            resize: none;
            max-height: 100px;
        }
        
        .message-input:focus {
            outline: none;
            border-color: #79dcf7;
        }
        
        .action-button {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #646262;
            transition: color 0.2s;
           
        }
        
        .action-button:hover {
            color: #79dcf7;
        }
        
        .send-button {
            background: #79dcf7;
            color: white;
              box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.19);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 18px;
            transition: background 0.2s;
        }
        
        .send-button:hover {
            background: #5ab8d9;
        }
        
        /* Emoji Picker */
        .emoji-picker {
            position: absolute;
            bottom: 60px;
            right: 16px;
            background: white;
            border: 1px solid #e0e0e0;
            box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            border-radius: 12px;
            padding: 8px;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 4px;
            max-height: 200px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
              transition: background 2s;
        }
        
        .emoji-picker.active {
            display: grid;
        }
        
        .emoji-item {
            font-size: 24px;
            cursor: pointer;
            padding: 4px;
            border-radius: 6px;
            transition: background 0.2s;
        }
        
        .emoji-item:hover {
            background: #f0f0f0;
        }
        .emoji-sent{
            font-size: 40px;
        }