<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Windows 95 Chat</title>
    <link rel="stylesheet" href="style.css">
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'MS Sans Serif', 'Segoe UI', Tahoma, sans-serif;
            user-select: none;
        }

        body {
            background-color: #008080;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Main content area */
        .desktop {
            flex: 1;
            position: relative;
            padding: 8px;
        }

        /* Window styles */
        .window {
            position: fixed;
            top: 10vh;
            left: 10vw;
            width: 80vw;
            height: 80vh;
            background-color: #c0c0c0;
            border: 2px solid;
            border-color: #ffffff #808080 #808080 #ffffff;
            display: flex;
            flex-direction: column;
        }

        /* Title bar */
        .title-bar {
            background-color: #000080;
            color: white;
            padding: 2px 3px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .title-bar-text {
            font-weight: bold;
            font-size: 11px;
            display: flex;
            align-items: center;
        }

        .title-bar-controls {
            display: flex;
            gap: 2px;
        }

        .title-bar-controls button {
            width: 16px;
            height: 14px;
            border: 1px solid white;
            background-color: #c0c0c0;
            border-color: #ffffff #808080 #808080 #ffffff;
            padding: 0;
            font-size: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        /* Menu bar */
        .menu-bar {
            padding: 1px;
            border-bottom: 1px solid #808080;
            background: #c0c0c0;
            font-size: 11px;
        }

        .menu-bar span {
            padding: 2px 6px;
            margin: 1px;
        }

        .menu-bar span:hover {
            background: #000080;
            color: white;
        }

        /* Chat styles */
        .window-content {
            padding: 10px;
            display: flex;
            flex-direction: column;
            height: calc(100% - 60px);
        }

        .chat-container {
            display: flex;
            gap: 10px;
            height: 100%;
        }

        .contacts-list {
            width: 200px;
            background: white;
            border: 2px solid;
            border-color: #808080 #ffffff #ffffff #808080;
            overflow-y: auto;
        }

        .contact {
            padding: 6px 10px;
            cursor: pointer;
            border-bottom: 1px solid #c0c0c0;
            color: black;
            text-decoration: none;
            display: block;
        }

        .contact:hover {
            background-color: #000080;
            color: white;
        }

        .contact.active {
            background-color: #000080;
            color: white;
        }

        .chat-area {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .messages {
            flex-grow: 1;
            background: white;
            border: 2px solid;
            border-color: #808080 #ffffff #ffffff #808080;
            padding: 10px;
            overflow-y: auto;
        }

        .message {
            margin-bottom: 10px;
            font-size: 11px;
        }

        .message .time {
            color: #808080;
            font-size: 10px;
            margin-right: 5px;
        }

        .message .sender {
            font-weight: bold;
            margin-right: 5px;
        }

        .message.sent {
            color: #000080;
        }

        .message.received {
            color: #008000;
        }

        .input-area {
            display: flex;
            gap: 10px;
        }

        .input-area textarea {
            flex-grow: 1;
            height: 60px;
            border: 2px solid;
            border-color: #808080 #ffffff #ffffff #808080;
            background: white;
            padding: 5px;
            font-family: inherit;
            font-size: 11px;
            resize: none;
        }

        .input-area button {
            min-width: 75px;
            padding: 4px 10px;
            background-color: #c0c0c0;
            border: 2px solid;
            border-color: #ffffff #808080 #808080 #ffffff;
            font-family: inherit;
            font-size: 11px;
            cursor: pointer;
        }

        .input-area button:active {
            border-color: #808080 #ffffff #ffffff #808080;
        }

        /* Status bar */
        .status-bar {
            border-top: 1px solid #808080;
            padding: 3px 6px;
            font-size: 11px;
            display: flex;
            justify-content: space-between;
            background: #c0c0c0;
        }

        /* Taskbar */
        .taskbar {
            height: 28px;
            background: #c0c0c0;
            border-top: 1px solid #ffffff;
            display: flex;
            align-items: center;
            padding: 2px;
            box-shadow: inset 0 1px #ffffff;
        }

        .start-button {
            height: 22px;
            padding: 0 8px;
            margin-right: 6px;
            font-weight: bold;
            font-size: 11px;
            background: #c0c0c0;
            border: 1px solid;
            border-color: #ffffff #808080 #808080 #ffffff;
            box-shadow: inset -1px -1px #0a0a0a;
            display: flex;
            align-items: center;
        }

        .start-button:active {
            border-color: #808080 #ffffff #ffffff #808080;
            box-shadow: inset 1px 1px #0a0a0a;
        }

        .taskbar-divider {
            width: 1px;
            height: 22px;
            background: #808080;
            margin: 0 6px;
            box-shadow: 1px 0 #ffffff;
        }

        .task-button {
            height: 22px;
            padding: 0 8px;
            font-size: 11px;
            background: #c0c0c0;
            border: 1px solid;
            border-color: #ffffff #808080 #808080 #ffffff;
            box-shadow: inset -1px -1px #0a0a0a;
            display: flex;
            align-items: center;
        }

        .clock {
            margin-left: auto;
            padding: 0 8px;
            font-size: 11px;
            border-left: 1px solid #808080;
            box-shadow: inset 1px 0 #ffffff;
            height: 22px;
            display: flex;
            align-items: center;
        }

        /* Tabs */
        .tabs {
            display: flex;
            margin: 0;
            background: #c0c0c0;
            border-bottom: 2px solid;
            border-color: #808080 #ffffff #ffffff #808080;
            padding: 5px 10px 0 10px;
        }

        .tab {
            padding: 4px 10px;
            margin-right: 4px;
            background: #c0c0c0;
            border: 2px solid;
            border-color: #ffffff #808080 #808080 #ffffff;
            font-size: 11px;
            cursor: pointer;
            position: relative;
            bottom: -2px;
        }

        .tab.active {
            background: #c0c0c0;
            border-bottom: 2px solid #c0c0c0;
        }
    </style>
</head>
<body>
    <div class="desktop">
        <div class="window">
            <div class="title-bar">
                <div class="title-bar-text">
                    Chat
                </div>
                <div class="title-bar-controls">
                    <button class="minimize-icon"></button>
                    <button class="maximize-icon"></button>
                    <button class="close-icon"></button>
                </div>
            </div>
            <div class="tabs">
                <button class="tab active">General</button>
                <button class="tab">Private</button>
                <button class="tab">Group</button>
            </div>
            <div class="window-content">
                <div class="chat-container">
                    <div class="contacts-list">
                        <a href="#john" class="contact active">John Smith</a>
                        <a href="#alice" class="contact">Alice Johnson</a>
                        <a href="#bob" class="contact">Bob Wilson</a>
                        <a href="#carol" class="contact">Carol White</a>
                        <a href="#david" class="contact">David Brown</a>
                    </div>
                    <div class="chat-area">
                        <div class="messages">
                            <div class="message received">
                                <span class="time">13:45</span>
                                <span class="sender">John:</span>
                                <span class="text">Hello! How are you?</span>
                            </div>
                            <div class="message sent">
                                <span class="time">13:46</span>
                                <span class="sender">You:</span>
                                <span class="text">Hi John! I'm doing well, thanks. How about you?</span>
                            </div>
                            <div class="message received">
                                <span class="time">13:47</span>
                                <span class="sender">John:</span>
                                <span class="text">I'm great! Just working on the new project.</span>
                            </div>
                            <div class="message sent">
                                <span class="time">13:48</span>
                                <span class="sender">You:</span>
                                <span class="text">That's awesome! How's it going so far?</span>
                            </div>
                            <div class="message received">
                                <span class="time">13:49</span>
                                <span class="sender">John:</span>
                                <span class="text">Making good progress. Should be done by next week!</span>
                            </div>
                        </div>
                        <div class="input-area">
                            <textarea placeholder="Type your message..."></textarea>
                            <button>Send</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="status-bar">
                <span>Connected</span>
                <span>Online: 2</span>
            </div>
        </div>
    </div>
    <div class="taskbar">
        <a href="index.html" class="start-button">
            Start
        </a>
        <div class="taskbar-time">1:22 PM</div>
    </div>
</body>
</html>