/* assets/css/style.css */

/* Reset some defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body */
body {
    background-color: #f7f9fc;
    color: #333;
}

/* Links */
a {
    text-decoration: none;
    color: #1d4ed8;
}
a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Forms */
input, select, textarea, button {
    font-family: inherit;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #1d4ed8;
    outline: none;
}

button {
    background-color: #1d4ed8;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #2563eb;
}

/* Cards */
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* Chat Container */
.chat-container {
    display: flex;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Users list */
.chat-users {
    width: 25%;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
}

.chat-users .user {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-users .user:hover, .chat-users .user.active {
    background-color: #f0f4ff;
}

/* Chat messages */
.chat-messages {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fefefe;
}

.messages {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.message {
    margin-bottom: 15px;
}

.message.sent {
    text-align: right;
}

.message .text {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    background-color: #1d4ed8;
    color: #fff;
}

.message.received .text {
    background-color: #e5e7eb;
    color: #333;
}

/* Chat input */
.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e5e7eb;
}

.chat-input input[type="text"] {
    flex-grow: 1;
    margin-right: 10px;
    border-radius: 20px;
    padding-left: 20px;
}

.chat-input button {
    border-radius: 20px;
    padding: 10px 20px;
}

/* Responsive */
@media(max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: auto;
    }
    .chat-users, .chat-messages {
        width: 100%;
    }
}
body { font-family: sans-serif; }
.card { background:white; padding:2rem; border-radius:0.5rem; box-shadow:0 2px 6px rgba(0,0,0,0.1);}
input, button, select { display:block; width:100%; margin-bottom:1rem; padding:0.5rem; border-radius:0.25rem; border:1px solid #ccc;}
button { cursor:pointer; background:#3b82f6; color:white; border:none;}
button:hover { background:#2563eb; }

/* Chat layout */
.chat-container { display:flex; gap:1rem; height:70vh; }
.chat-users { width:200px; background:white; border-radius:0.5rem; overflow-y:auto; padding:1rem; }
.chat-users .user { padding:0.5rem; cursor:pointer; border-radius:0.25rem; margin-bottom:0.25rem; }
.chat-users .user.active { background:#3b82f6; color:white; }
.chat-messages { flex:1; display:flex; flex-direction:column; background:white; border-radius:0.5rem; overflow:hidden; }
.messages { flex:1; overflow-y:auto; padding:1rem; }
.msg-sent { text-align:right; margin-bottom:0.5rem; }
.msg-received { text-align:left; margin-bottom:0.5rem; }
.msg-sent, .msg-received { padding:0.5rem 1rem; border-radius:1rem; display:inline-block; max-width:70%; }
.msg-sent { background:#3b82f6; color:white; }
.msg-received { background:#e5e7eb; color:#111; }
.time { display:block; font-size:0.7rem; color:#555; margin-top:0.25rem; }
.chat-input { display:flex; padding:0.5rem; border-top:1px solid #ccc; }
.chat-input input { flex:1; margin:0; }
.chat-input button { width:80px; margin-left:0.5rem; }