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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}


/* General tab buttons */
.tab-buttons {
  margin-bottom: 16px;
  text-align: center;
}

.overlay-label {
  text-align: center;
  font-size: 1rem;
  color: #000;
  margin-bottom: 8px;
  font-weight: 500;
}

.logo-container {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 12px;
}

.logo-image {
  height: 48px;
  max-width: 90%;
  object-fit: contain;
}


button {
  margin: 0 6px 10px 6px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background-color: #0984e3;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Mood label */
.mood-label-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 100%;
  background-color: transparent;
  box-sizing: border-box;
}

.mood-label-box {
  display: none;
}


.mood-text {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}


.mood-dismiss {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 2px;
  flex-shrink: 0;
  color: #000;

}



/* WhatsApp Styles */
#whatsapp {
  background-color: #ece5dd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  max-width: 480px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
}

#whatsapp .input-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 24px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

#whatsapp .text-input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 20px;
  outline: none;
  resize: none;
  background: transparent;
}

#whatsapp .text-input.glow-persist {
  background-color: rgba(255, 183, 77, 0.25);
  box-shadow: 0 0 6px 2px rgba(255, 183, 77, 0.4);
  border-radius: 20px;
  transition: all 0.3s ease;
}


#whatsapp .send-button {
  display: block;
  margin-left: auto;         /* aligns it to the right */
  margin-top: 4px;
  background-color: #25D366;
  border: none;
  color: white;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}


#whatsapp .send-button:hover {
  background-color: #20b955;
}

.whatsapp-bubble {
  background-color: #dcf8c6;
  color: #111;
  border-radius: 18px 18px 0 18px;
  padding: 10px 14px;
  display: inline-block;
  max-width: 80%;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#whatsapp .camera-preview-container {
  width: 120px;
  height: 160px;
  margin: 10px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#whatsapp video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  border-radius: 8px;
  display: block;
}

#whatsapp #whatsapp-mood-label {
  max-width: 30%;
}


/* X (Twitter) Styles */
#x {
  background-color: #16181c;
  max-width: 540px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
}

.x-tweet {
  background-color: #1e2025;
  border: 1px solid #2f3336;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  color: #e7e9ea;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.replying-to {
  font-size: 0.85rem;
  color: #8899a6;
  margin: 4px 0 6px;
}

.replying-to .x-link {
  color: #1d9bf0; /* modern X blue */
  font-weight: normal;
  text-decoration: none;
}

.x-username {
  font-weight: bold;
  color: #ffffff;
}

.x-handle {
  color: #8899a6;
  font-size: 0.85rem;
  margin-left: 6px;
}

.x-timestamp {
  color: #555;
  font-size: 0.75rem;
  margin-left: 6px;
}

#x .input-wrapper {
  background: #1e2025;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid #2f3336;
  margin-bottom: 12px;
   display: flex;
}

#x .text-input {
  flex: 1;
  padding: 10px;
  font-size: 0.95rem;
  border: none;
  background-color: transparent;
  resize: none;
  outline: none;
  color: #fff;
}

#x .text-input.glow-persist {
  background-color: rgba(255, 183, 77, 0.25);
  box-shadow: 0 0 6px 2px rgba(255, 183, 77, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  flex: 1; /* ✅ ensures full width inside flex container */
}

#x #x-mood-label {
  max-width: 30%;
}

#x .send-button {
  background-color: #1d9bf0;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: fit-content;
  float: right;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

#x .send-button:hover {
  background-color: #1a8cd8;
}

#x .camera-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

#x video {
  width: 120px;
  height: 160px;
  object-fit: cover;
  transform: scaleX(-1);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  display: block;
}

/* Input Dismiss Button */
.dismiss-button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #000;
  cursor: pointer;
}

#x .dismiss-button {
  color: #fff;
}

/* Camera Label + Dots */
.camera-label {
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
  margin-top: 4px;
  margin-bottom: 12px;
}

#whatsapp .camera-label {
  color: #000;
}

.dots::after {
  content: '';
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: '....'; }
}

/* Emotion visuals */
.calm-sun, .neutral-glow, .sad-wave {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.calm-sun {
  background: radial-gradient(circle, #ffeaa7 0%, #fab1a0 70%);
  box-shadow: 0 0 20px rgba(255, 200, 100, 0.7);
  animation: softPulse 2.5s ease-in-out infinite;
}

.neutral-glow {
  background: #dfe6e9;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sad-wave {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  box-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
  animation: softPulse 2.5s ease-in-out infinite;
}

.caption {
  font-size: 0.85rem;
  color: #ccc;
  max-width: 220px;
  text-align: left;
}

@keyframes softPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

.hidden {
  display: none;
}

#x #x-mood-label {
  background-color: #fff;  /* optional: to make black text readable */
}

#x #x-mood-label .mood-text {
  color: #000 !important;
}

#whatsapp #whatsapp-mood-label {
  background-color: #fff;
}

.mood-glow {
  background-color: #ffe066 !important; /* bright, warm yellow */
}

@media (max-width: 480px) {
  .mood-label-box {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* 🔑 tightly controls spacing between mood-text and dismiss */
    padding: 6px 8px;
    width: auto;
    max-width: none;
    white-space: nowrap;
  }

  .mood-text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    flex: 0 1 auto;
  }

  .mood-dismiss {
    flex-shrink: 0;
    margin-left: 0;    /* remove any extra margin */
    padding: 0;
    color: #000;
  }
}

#whatsapp-receiver .caption {
  color: #000;
}

#whatsapp-receiver-message {
  margin-bottom: 16px; /* adjust spacing as needed */
}

