@charset "utf-8";
      :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f0f2f5;
			/* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);*/
            height: 100vh;
            display: flex;
        }
        
       .login-container {
            background-color: #2c2c2c; margin:auto;
            border-radius: 10px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 400px;
            padding: 40px;
            text-align: center;
        }
        
        h1 {
            color: #333;
            margin-bottom: 30px;
            font-weight: 600;
        }
        
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            color: #555;
            font-weight: 500;
        }
        
        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            transition: border-color 0.3s;
        }
        
        input[type="text"]:focus,
        input[type="password"]:focus {
            border-color: #2575fc;
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
        }
        
        .btn {
            background: linear-gradient(to right, #2575fc, #6a11cb);
            color: white;
            border: none;
            border-radius: 5px;
            padding: 12px 20px;
            font-size: 16px;
            cursor: pointer;
            width: 100%;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
        }
        
        .footer-text {
            margin-top: 20px;
            color: #777;
            font-size: 14px;
        }
        
        .logo {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(to right, #2575fc, #6a11cb);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }	
		
		
		
        .container {
            display: flex;
            width: 100%;
            height: 90vh;
            margin: 20px auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            overflow: hidden;
        }
        
        /* Sidebar Styles */
        .sidebar {
            width: 300px;
            background: white;
            border-right: 1px solid var(--light-gray);
            display: flex;
            flex-direction: column;
        }
        
        .sidebar-header {
            padding: 20px;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .user-info {
            display: flex;
            align-items: center;
        }
        
        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--success);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 12px;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 16px;
        }
        
        .user-status {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .logout-btn {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 18px;
        }
        
        .search-container {
            padding: 15px;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .search-box {
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border-radius: 20px;
            border: 1px solid var(--light-gray);
            font-size: 14px;
        }
        
        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
        }
        
        .user-list {
            flex: 1;
            overflow-y: auto;
        }
        
        .user-item {
            padding: 15px 20px;
            display: flex;
            align-items: center;
            cursor: pointer;
            border-bottom: 1px solid var(--light-gray);
            transition: background 0.2s;
        }
        
        .user-item:hover, .user-item.active {
            background: var(--light);
        }
        
        .user-item .avatar {
            background: #4cc9f0;
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-item h3 {
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 3px;
        }
        
        .user-item p {
            font-size: 13px;
            color: var(--gray);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .status-indicator {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #28a745;
            margin-left: 10px; font-size:11px; font-family:Arial, Helvetica, sans-serif; color:#fff; text-align:center; line-height:20px;
        }
        
        /* Chat Area Styles */
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .chat-header {
            padding: 19px;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            align-items: center;
        }
        
        .chat-header .avatar {
            background: #7209b7;
        }
        
        .chat-header-info {
            margin-left: 15px;
        }
        
        .chat-header-info h2 {
            font-size: 18px;
            font-weight: 600;
        }
        
        .chat-header-info p {
            font-size: 13px;
            color: var(--gray);
        }
        
        .chat-messages {
            flex: 1;
            padding: 20px;
			
            overflow-y: auto;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity=".05"><rect fill="%234361ee" x="50" width="50" height="50" y="50"></rect></svg>');
            background-size: 10px 10px;
        }
        
        .message {
            max-width: 70%;
            margin-bottom: 15px;
            clear: both;
        }
        
        .message.sent {
            float: right;
        }
        
        .message.received {
            float: left;
        }
        
        .message-content {
            padding: 12px 15px;
            border-radius: 18px;
            position: relative;
            word-wrap: break-word;
        }
        
        .sent .message-content {
            background: var(--primary);
            color: white;
            border-bottom-right-radius: 5px;
        }
        
        .received .message-content {
            background: var(--light-gray);
            color: var(--dark);
            border-bottom-left-radius: 5px;
        }
        
        .message-time {
            font-size: 11px;
            color: var(--gray);
            margin-top: 5px;
            text-align: right;
        }
        
        .attachment {
            margin-top: 10px;
            border-radius: 10px;
            overflow: hidden;
            max-width: 250px;
        }
        
        .attachment img {
            width: 100%;
            display: block;
        }
        
        .chat-input {
            padding: 15px;
            border-top: 1px solid var(--light-gray);
            display: flex;
            align-items: center;
            background: white;
        }
        
        .attachment-btn, .send-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--light-gray);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--gray);
            font-size: 18px;
            margin: 0 5px;
            transition: all 0.2s;
        }
        
        .attachment-btn:hover, .send-btn:hover {
            background: var(--primary);
            color: white;
        }
        
        .message-input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid var(--light-gray);
            border-radius: 25px;
            font-size: 15px;
            margin: 0 10px;
            resize: none;
            height: 45px;
            max-height: 120px;
        }
        
        .message-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .container {
                height: 100vh;
                margin: 0;
                border-radius: 0;
            }
            
            .sidebar {
                width: 250px;
            }
            
            .message {
                max-width: 85%;
            }
        }