* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a2e;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor del teléfono */
.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.phone-frame {
    width: 375px;
    height: 812px;
    max-height: 95vh;
    background-color: #1c1c1e;
    border-radius: 50px;
    padding: 12px;
    box-shadow:
        0 0 0 3px #2d2d2d,
        0 0 0 6px #1c1c1e,
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 5px rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-notch {
    width: 150px;
    height: 30px;
    background-color: #1c1c1e;
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.phone-notch::before {
    content: '';
    width: 60px;
    height: 6px;
    background-color: #2d2d2d;
    border-radius: 3px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #111b21;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* Chat Window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #111b21;
    border-radius: 40px;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 35px 16px 10px 16px;
    background-color: #202c33;
}

.contact-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: #e9edef;
    font-size: 16px;
    font-weight: 500;
}

.contact-info p {
    color: #8696a0;
    font-size: 13px;
}

.chat-header-icons {
    display: flex;
    gap: 4px;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    color: #aebac1;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #374248;
}

/* Messages Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background-color: #0b141a;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAABkklEQVR4nO2ZsUoDQRCGP7UQtLCwECsLwcJKsLBQC0Ht9AV8AN/AR/ApfAjfQbC0sxALC7WwkMRGEBRBCSj+MnAbbJK73Oztzl3YD4bLkZ2d+Wdnd+cyEAgEAvlkG3gEGlHZRfwcWAI6QNuWBmAf+I7KAfBjSwuwDHwBQwn1lY7WG+BeZuMLU0AVOASaEuorHa032h1bGoBOQn2lo/VGu2NLHXA2pr7SUW+0Owq4Bx4S6isdrTfaHQX8AR8J9ZWO1hvtjgKOx+wrHfUG7Y4CDsfsKx31Bu2OAi7H7CudvdGgmkBPJtRXOnoG7Y4CbsbsKx2tN9odBdxOqK901Bu0Owp4m1Bf6Wi90e4o4H1CfaWj9Ua7o4B/E+orHa032h0FNBLqKx2tN9odBbQT6isdrTfaHQV0E+orHa032h0F9BLqKx2tN9odBfQT6isdrTfaHQUMEuorHa032h0FjBLqKx2tN9odBYwT6isdrTfaHQVMEuorHa032h0FTBPqKx2tN9odBcwS6gf+Kw0A+2Rg/hdfTmoAAAAASUVORK5CYII=');
}

/* Messages */
.message {
    display: flex;
    margin-bottom: 8px;
}

.message-content {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.message.received .message-content {
    background-color: #202c33;
    color: #e9edef;
    border-top-left-radius: 0;
}

.message.sent {
    justify-content: flex-end;
}

.message.sent .message-content {
    background-color: #005c4b;
    color: #e9edef;
    border-top-right-radius: 0;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.message.sent .message-time svg {
    color: #53bdeb;
}

/* Input Area */
.input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px 30px 12px;
    background-color: #202c33;
    gap: 8px;
}

.message-input-container {
    flex: 1;
    background-color: #2a3942;
    border-radius: 24px;
    padding: 0 16px;
}

.message-input-container input {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 0;
    color: #e9edef;
    font-size: 15px;
    outline: none;
}

.message-input-container input::placeholder {
    color: #8696a0;
}

.send-btn {
    color: #8696a0;
    background-color: #00a884;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn svg {
    color: #fff;
}

.send-btn:hover {
    background-color: #06cf9c;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0b141a;
}

::-webkit-scrollbar-thumb {
    background: #374248;
    border-radius: 3px;
}

/* Date separator */
.date-separator {
    text-align: center;
    margin: 12px 0;
}

.date-separator span {
    background-color: #182229;
    color: #8696a0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
}
