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

body {
  font-family: Arial, sans-serif;
  background-color: #1e1e1e; /* Dark background */
  color: #f0f0f0; /* Light text color */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

body.dark-theme {
  background-color: #181818; /* Darker background for dark mode */
}

.container {
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #2c2c2c; /* Dark container */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.container.dark-theme {
  background-color: #333333; /* Slightly lighter dark theme */
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header styling with curved edges */
header {
  background-color: #4CAF50; /* Premium Green */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  height: 50px; /* Reduced header height */
  border-radius: 12px 12px 0 0; /* Curved top edges */
  animation: fadeIn 1s ease-in-out;
}

header h1 {
  font-size: 18px;
  font-weight: bold;
}

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

.header-icons i {
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
}

.header-icons i:hover {
  color: #2E8B57; /* Darker green hover effect */
  transform: scale(1.1); /* Animation scale effect */
}

/* Chat container */
#chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: #242424; /* Dark background for chat */
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.3s ease;
}

#chat-container.dark-theme {
  background-color: #1a1a1a; /* Darker background for dark mode */
}

/* Message bubbles */
.message {
  font-size: 14px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  max-width: 70%;
  word-wrap: break-word;
  position: relative;
  transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}

.message:hover {
  cursor: pointer;
  transform: translateX(10px); /* Smooth swipe effect */
}

/* Add swiping effect */
.message:active {
  transform: translateX(20px);
}

.received {
  background-color: #263238; /* Dark gray for received messages */
  align-self: flex-start;
  border-radius: 12px 12px 12px 0;
}

.sent {
  background-color: #4CAF50; /* Premium Green for sent messages */
  color: white;
  align-self: flex-end;
  border-radius: 12px 12px 0 12px;
}

/* Replied messages section */
.replied-message {
  font-size: 12px;
  color: #999;
  background-color: #333333;
  padding: 5px;
  border-left: 3px solid #4CAF50;
  margin-bottom: 5px;
  border-radius: 5px;
}

/* Footer with input */
footer {
  padding: 10px;
  background-color: #333333;
  border-top: 1px solid #444;
}

#message-form {
  display: flex;
  align-items: center;
}

#message-input {
  flex: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #555;
  margin-right: 10px;
  background-color: #333;
  color: #f0f0f0;
}

#message-input:focus {
  border-color: #4CAF50; /* Green focus border */
}

button {
  background-color: #4CAF50; /* Green button */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: #2E8B57; /* Darker green on hover */
  transform: scale(1.1); /* Scale on hover */
}

button i {
  font-size: 18px;
}

/* Reply preview section */
#reply-preview {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #333;
  border-left: 5px solid #4CAF50;
  margin-bottom: 10px;
  border-radius: 5px;
  display: none;
  animation: fadeIn 1s ease-in-out;
}

#reply-preview.visible {
  display: flex;
}

#reply-text {
  flex: 1;
  font-size: 14px;
  color: #f0f0f0;
}

#cancel-reply {
  background-color: transparent;
  border: none;
  font-size: 16px;
  color: #4CAF50;
  cursor: pointer;
}

#cancel-reply:hover {
  color: #2E8B57;
}

/* Media Query for Small Screens */
@media (max-width: 500px) {
  .container {
    max-width: 100%;
    margin: 0 10px;
  }

  header h1 {
    font-size: 16px;
  }

  .header-icons i {
    font-size: 18px;
  }

  button {
    padding: 8px 12px;
  }

  #message-input {
    padding: 8px;
  }

  .message {
    font-size: 12px;
  }
}

/* Custom styling for the Premium icon */
#premium-icon-wrapper {
  position: absolute;
  top: 60px;
  right: 10px;
  display: inline-block;
  cursor: pointer;
  animation: fadeIn 1s ease-in-out;
}

#premium-icon-wrapper i {
  font-size: 24px;
  color: gold;
  transition: color 0.3s ease;
}

#premium-icon-wrapper i:hover {
  color: darkgoldenrod;
}

/* Custom styles for scroll-down icons */
#scroll-down-arrow {
  position: fixed;
  top: 20px;
  left: 20px;
  display: block;
  cursor: pointer;
  animation: fadeIn 1s ease-in-out;
}

#scroll-down-arrow a {
  display: block;
  margin-bottom: 20px;
}

#scroll-down-arrow i {
  font-size: 24px;
  color: #4CAF50;
  transition: color 0.3s ease;
}

#scroll-down-arrow i:hover {
  color: #2E8B57;
}

/* Premium Icon */
#premium-icon-wrapper i {
  color: gold;
}

#premium-icon-wrapper i:hover {
  color: darkgoldenrod;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#chatroom-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#logo-circle {
    background-color: #f1f1f1;
    border-radius: 70%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#logo-svg {
    width: 100%;
    height: auto;
}

#logo-text {
    font-size: 12px; /* Small size for the text */
    color: #555; /* Adjust text color as needed */
    margin-top: 5px; /* Add some space between the SVG and text */
    font-weight: bold; /* Optional: make the text bold */
}
/* Modal style */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    overflow: hidden;
}

/* Modal content */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
}
/* Modal style */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    overflow: auto; /* Enable scroll if needed */
}

/* Modal style */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    overflow: hidden;
}

/* Modal content */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #f1f1f1;
}
/* Style for the icon and plus sign */
#followersIcon {
    position: relative;
    font-size: 12px; /* Reduced icon size */
}

.plus-sign {
    position: absolute;
    top: -4px; /* Adjusted for smaller size */
    right: -4px; /* Adjusted for smaller size */
    background-color: #ff0000; /* Red background */
    color: white;
    border-radius: 50%;
    width: 10px; /* Reduced width */
    height: 10px; /* Reduced height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px; /* Adjusted plus sign size */
}
/* Custom CSS for the three dots menu */
.three-dots-menu {
    position: relative;
}

.dots-icon {
    font-size: 20px;
    cursor: pointer;
}

.options-menu {
    display: none;
    position: absolute;
    top: 25px;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.options-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.options-menu a:hover {
    background-color: #f4f4f4;
}

/* Smooth Scroll Arrow */
#scroll-down-arrow {
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    display: block;
}

#scroll-down-arrow i {
    font-size: 20px;
    color: gold; /* Premium gold color */
}

/* Visibility styles */
.hidden {
    display: none;
}

/* Notification badge on the bell icon */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}

/* Custom styling for the icon wrapper */
#scroll-down-arrow .icon-wrapper {
    position: relative;
    display: inline-block;
}

/* AI Icon on top */
#scroll-down-arrow .ai-icon {
    position: absolute;
    top: 30px;
    left: 0;
    font-size: 18px;
    color: #007bff;
}

/* Admin Icon */
#scroll-down-arrow .fa-user-shield {
    font-size: 20px;
    color: gold; /* Premium gold color for Admin */
    margin-top: 60px;
    position: relative;
}

/* Premium Icon */
#scroll-down-arrow .fa-crown {
    font-size: 20px;
    color: gold; /* Premium icon color */
    margin-top: 60px;
}

/* Notification badge for the admin icon */
.followers-badge {
    position: absolute;
    top: -10px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    display: inline-block;
}

.followers-badge.visible {
    display: inline-block;
}

/* Custom Styling for the message input and pen icon */
.message-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #1f1f1f;
    padding: 8px 18px; /* Reduced padding */
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
}

#pen-icon {
    color: #ffd700;
    font-size: 18px; /* Reduced font size */
    margin-right: 8px; /* Reduced margin */
    transition: transform 0.3s ease;
}

#message-input {
    width: 100%;
    padding: 8px; /* Reduced padding */
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 14px; /* Reduced font size */
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.3);
}

#message-input:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0px 0px 8px 2px #ffd700;
}

button {
    background-color: transparent;
    border: none;
    color: #ffd700;
    font-size: 22px;
    cursor: pointer;
    padding: 10px; /* Reduced padding */
    transition: transform 0.3s ease, color 0.3s ease;
}

button:hover {
    color: #ff9900;
    transform: scale(1.1);
}

.message-input-wrapper:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* Animations for Growing Effect */
@keyframes growInput {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.message-input-wrapper {
    animation: growInput 1.9s ease-out forwards;
}

/* Adding glowing animation on typing */
#message-input:focus {
    animation: glowing 1.5s ease-out infinite;
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
    }
    50% {
        box-shadow: 0 0 10px #ff9900, 0 0 20px #ff9900, 0 0 30px #ff9900;
    }
    100% {
        box-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700, 0 0 15px #ffd700;
    }
}

/* Include Google Fonts for a modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

#logo-circle {
    width: 70px;
    height: 25px;
    background-color: #4CAF50;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}