* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.chat-container {
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, #2a0a0a 0%, #3a1a1a 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-arrow {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    font-weight: 300;
    margin-right: 5px;
    display: none;
}

.avatar-container {
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff416c;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #ff416c;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #2a0a0a;
}

.header-info {
    flex: 1;
}

.header-info h1 {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.status-text {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 2px;
}

.chat-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo-header {
    height: 38px;
    opacity: 0.8;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    background: #0d0d0d;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.message {
    max-width: 75%;
    word-wrap: break-word;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.message-content {
    padding: 10px 14px;
    border-radius: 18px;
    position: relative;
}

.message.assistant .message-content {
    background: #2a2a2a;
    color: #fff;
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-content p {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
}

.message-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 3px;
}

.message.user .message-time {
    justify-content: flex-end;
}

.check-marks {
    color: #4FC3F7;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #333;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 80px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.image-message {
    max-width: 250px;
}

.image-message img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 5px;
}

.video-message {
    max-width: 250px;
}

.video-message video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 5px;
}

.chat-input-container {
    background: #1a1a1a;
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: #2a2a2a;
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: none;
    max-height: 100px;
    min-height: 40px;
}

.chat-input::placeholder {
    color: #666;
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 65, 108, 0.3);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn svg {
    width: 20px;
    height: 20px;
}
