/* WhatsApp Mockup Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css');

*, *:before, *:after {
  box-sizing: inherit;
}

.whatsapp-mockup-container {
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Device Frame with rounded corners */
.marvel-device {
  position: relative;
  background: #000;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 320px;
  height: 580px;
}

.marvel-device .screen {
  text-align: left;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.screen-container {
  height: 100%;
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
}

/* Status Bar */
.status-bar {
  height: 25px;
  background: #004e45;
  color: #fff;
  font-size: 14px;
  padding: 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-bar .time {
  font-weight: 600;
}

.status-bar .indicators {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Chat */
.chat {
  height: calc(100% - 25px);
}

.chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* User Bar */
.user-bar {
  height: 55px;
  background: #005e54;
  color: #fff;
  padding: 0 8px;
  font-size: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-bar .back {
  font-size: 20px;
  cursor: pointer;
}

.user-bar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
}

.user-bar .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.user-bar .name {
  font-size: 17px;
  font-weight: 600;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.user-bar .status {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.8;
}

.user-bar .actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 20px;
}

/* Conversation */
.conversation {
  height: calc(100% - 55px);
  position: relative;
  background: #efe7dd url("https://cloud.githubusercontent.com/assets/398893/15136779/4e765036-1639-11e6-9201-67e728e86f39.jpg") repeat;
  z-index: 0;
}

.conversation ::-webkit-scrollbar {
  transition: all .5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}

.conversation ::-webkit-scrollbar-track {
  background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
  background: #b3ada7;
}

.conversation-container {
  height: 100%;
  box-shadow: inset 0 10px 10px -10px #000000;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px;
}

/* Messages */
.message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 15px;
  padding: 8px;
  position: relative;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  z-index: 1;
}

.message:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}

.metadata {
  display: inline-block;
  float: right;
  padding: 0 0 0 7px;
  position: relative;
  bottom: -4px;
}

.metadata .time {
  color: rgba(0, 0, 0, .45);
  font-size: 11px;
  display: inline-block;
}

.metadata .tick {
  display: inline-block;
  margin-left: 2px;
  position: relative;
  top: 4px;
  height: 16px;
  width: 16px;
}

.metadata .tick svg {
  position: absolute;
  transition: .5s ease-in-out;
}

.message:first-child {
  margin: 16px 0 8px;
}

.message.received {
  background: #fff;
  border-radius: 0px 5px 5px 5px;
  float: left;
}

.message.received .metadata {
  padding: 0 0 0 16px;
}

.message.received:after {
  border-width: 0px 10px 10px 0;
  border-color: transparent #fff transparent transparent;
  top: 0;
  left: -10px;
}

.message.sent {
  background: #e1ffc7;
  border-radius: 5px 0px 5px 5px;
  float: right;
}

.message.sent:after {
  border-width: 0px 0 10px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  top: 0;
  right: -10px;
}

/* Removed compose area */

/* Preview placeholder */
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #999;
  text-align: center;
  padding: 20px;
}

.preview-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Message with image */
.message-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .marvel-device {
    border-radius: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
  }
  
  .marvel-device .screen {
    border-radius: 0;
  }
  
  .screen-container {
    border-radius: 0;
  }
}