@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
  }
  
  body {
  background-color: #111111;
    color: #fff;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

/* Light Mode styles */
body.light-mode {
  background-color: #f0f2f5;
  color: #111b21;
}
  
  :root {
  /* Dark mode (default) */
  --primary-color: #111111;
  --secondary-color: #1e1e1e;
  --accent-color: #5C6BC0;
  --text-color: #e0e0e0;
  --muted-text: #8a8a8a;
    --glass-border: rgba(255, 255, 255, 0.1);
  --message-sent: #5C6BC0;
  --message-received: #262626;
  --scroll-thumb: rgba(255, 255, 255, 0.3);
  --chat-bg: #111111;
  --chat-pattern: rgba(255, 255, 255, 0.03);
  --hover-color: #333333;
  --active-item: #5C6BC020;
  --primary-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Light Mode Variables */
body.light-mode {
  --primary-color: #ffffff;
  --secondary-color: #f7f9fc;
  --accent-color: #5C6BC0;
  --text-color: #111b21;
  --muted-text: #667781;
  --glass-border: rgba(0, 0, 0, 0.05);
  --message-sent: #E3F2FD;
  --message-received: #ffffff;
  --scroll-thumb: rgba(0, 0, 0, 0.2);
  --chat-bg: #f5f7fb;
  --chat-pattern: rgba(0, 0, 0, 0.02);
  --hover-color: #f0f2f5;
  --active-item: #5C6BC020;
}
  
  /* App Container */
  .app-container {
    display: flex;
    height: 100vh;
    width: 100%;
    margin: 0;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
  }
  
  /* Sidebar (Left Panel) */
  .sidebar {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    border-right: 1px solid var(--glass-border);
  }
  
  .sidebar-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-color);
}

.app-brand i {
  color: var(--accent-color);
}
  
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  
  .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .header-icons {
    display: flex;
    gap: 1.5rem;
  }
  
  .icon {
    cursor: pointer;
  transition: color 0.2s ease;
    color: var(--muted-text);
  }
  
  .icon:hover {
    color: var(--accent-color);
  }
  
  /* Search Container */
  .search-container {
    padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  }
  
  .search-box {
    display: flex;
    align-items: center;
  background-color: var(--secondary-color);
  border-radius: 12px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    border: 1px solid var(--glass-border);
  }
  
  .search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-color);
    outline: none;
    font-size: 0.9rem;
  }
  
  .search-box input::placeholder {
    color: var(--muted-text);
  }

/* Message categories */
.message-category {
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.message-category .chevron {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.message-category.collapsed .chevron {
  transform: rotate(180deg);
}

/* Settings section at the bottom */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
  background-color: var(--primary-color);
  margin-top: auto;
}

.settings-button, .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.settings-button:hover, .theme-toggle:hover {
  background-color: var(--secondary-color);
}

.settings-button i, .theme-toggle i {
  color: var(--accent-color);
}

.settings-button span, .theme-toggle span {
  font-weight: 500;
  color: var(--text-color);
}
  
  /* Conversation List */
  .conversation-list {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  padding: 0.25rem 0;
  }
  
  .conversation-list::-webkit-scrollbar {
    width: 4px;
  }
  
  .conversation-list::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .conversation-list::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
    border-radius: 2px;
  }
  
  /* Mobile View */
  .main-view {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }
  
  .main-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
  }
  
  .logo {
  font-weight: 700;
    font-size: 1.2rem;
  color: var(--accent-color);
    position: relative;
  }
  
  .mobile-list {
    padding: 0.5rem 1rem;
  }
  
  /* Conversation Item */
  .conversation {
    padding: 0.75rem 1rem;
  margin-bottom: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
  transition: background-color 0.2s ease;
    position: relative;
    border-radius: 8px;
  }
  
  .conversation:hover {
  background-color: var(--hover-color);
  }
  
  .conversation.active {
  background-color: var(--active-item);
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
  }
  
  .conversation-avatar {
  width: 45px;
  height: 45px;
    border-radius: 50%;
  background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-color);
    flex-shrink: 0;
    position: relative;
    border: 1px solid var(--glass-border);
  }
  
  .conversation-avatar.online::after {
    content: "";
    position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
    border-radius: 50%;
    bottom: 0;
    right: 0;
  border: 2px solid var(--primary-color);
  }
  
  .conversation-info {
    flex-grow: 1;
    overflow: hidden;
  }
  
  .conversation-name {
    font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  }
  
  .conversation-preview {
  font-size: 0.8rem;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .conversation-time {
  font-size: 0.7rem;
    color: var(--muted-text);
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
  }
  
  .unread {
  width: 18px;
  height: 18px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 0.7rem;
  color: white;
  margin-left: auto;
  margin-top: 0.3rem;
  }
  
  /* Bottom Navigation */
  .bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  padding: 0.5rem;
  width: 25%;
    gap: 0.25rem;
    color: var(--muted-text);
  cursor: pointer;
  transition: color 0.2s ease;
  }
  
  .nav-item.active {
    color: var(--accent-color);
  }
  
  .nav-item:hover {
    color: var(--accent-color);
  }
  
  .nav-text {
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Empty State */
  .empty-state {
  flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  background-color: var(--chat-bg);
    width: 75%;
    height: 100%;
  text-align: center;
  }
  
  .empty-state-content {
  max-width: 400px;
    padding: 2rem;
  }
  
  .empty-state-icon {
  font-size: 3rem;
  color: var(--accent-color);
    margin-bottom: 1.5rem;
  opacity: 0.8;
  }
  
  .empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
    margin-bottom: 1rem;
  }
  
  .empty-state-text {
  font-size: 0.95rem;
    color: var(--text-color);
  margin-bottom: 1rem;
    line-height: 1.5;
  opacity: 0.8;
  }
  
  .empty-state-subtext {
  font-size: 0.85rem;
    color: var(--muted-text);
    line-height: 1.5;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.empty-state-subtext i {
  color: var(--accent-color);
  }
  
  /* Chat View */
  .chat-view {
    display: none;
    flex-direction: column;
  flex-grow: 1;
    width: 75%;
    height: 100%;
  background-color: var(--chat-bg);
  position: relative;
  z-index: 10;
  overflow: hidden;
  }
  
  .chat-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
  }
  
  .back-button {
    display: none;
    cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  }
  
  .back-button:hover {
  background-color: var(--secondary-color);
  }
  
  .chat-user {
    display: flex;
    align-items: center;
  gap: 1rem;
    flex-grow: 1;
  }
  
  .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  color: var(--text-color);
    position: relative;
    border: 1px solid var(--glass-border);
  }
  
  .chat-avatar.online::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
  background-color: var(--accent-color);
    border-radius: 50%;
    bottom: 0;
    right: 0;
    border: 2px solid var(--primary-color);
  }
  
  .chat-name {
    font-weight: 600;
  color: var(--text-color);
  }
  
  .chat-status {
  font-size: 0.8rem;
    color: var(--muted-text);
  }
  
  .chat-actions {
    display: flex;
  gap: 1.5rem;
  }
  
/* Chat background - Minimal pattern */
  .chat-background {
    flex-grow: 1;
  background-color: var(--chat-bg);
    position: relative;
    overflow: hidden;
    width: 100%;
  }
  
body.light-mode .chat-background {
  background-image: 
    radial-gradient(circle at 25px 25px, var(--glass-border) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, var(--glass-border) 2px, transparent 0);
  background-size: 100px 100px;
  animation: patternShift 120s linear infinite;
}

body:not(.light-mode) .chat-background {
  background-image: 
    radial-gradient(circle at 25px 25px, var(--glass-border) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, var(--glass-border) 2px, transparent 0);
  background-size: 100px 100px;
  animation: patternShift 120s linear infinite;
}

@keyframes patternShift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 50px 50px;
  }
  100% {
    background-position: 100px 100px;
  }
}

  .chat-messages {
    height: 100%;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  gap: 0.5rem;
    scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  position: relative;
  z-index: 1;
  }
  
  .chat-messages::-webkit-scrollbar {
  width: 6px;
  }
  
  .chat-messages::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border-radius: 3px;
  }
  
/* Minimal message styling */
  .message {
  max-width: 70%;
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
    position: relative;
  word-wrap: break-word;
  transition: all 0.2s ease;
  animation: message-in 0.3s ease;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
  }
  
  .message.sent {
    align-self: flex-end;
  background: var(--message-sent);
  color: var(--text-color);
    border-bottom-right-radius: 4px;
}

.message.received {
    align-self: flex-start;
  background-color: var(--message-received);
  color: var(--text-color);
    border-bottom-left-radius: 4px;
  }
  
  .message-time {
    font-size: 0.65rem;
  color: var(--muted-text);
  margin-top: 0.25rem;
  float: right;
  margin-left: 0.5rem;
  margin-bottom: -0.25rem;
}

/* Message status indicators */
.message-status {
  display: inline-block;
  font-size: 0.65rem;
  margin-left: 4px;
  color: var(--muted-text);
}

.message-status i {
  font-size: 0.7rem;
}

/* Read status */
.status-read {
  color: var(--accent-color);
}

/* Chat input - Minimal style */
  .chat-input-container {
    display: flex;
    align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
    background-color: var(--primary-color);
    border-top: 1px solid var(--glass-border);
  }
  
  .chat-input-actions {
    display: flex;
    gap: 1rem;
  }
  
  .chat-input {
    flex-grow: 1;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1rem;
    color: var(--text-color);
    outline: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  }
  
  .chat-input:focus {
  box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2);
  }
  
  .send-button {
  width: 38px;
  height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  border: none;
  background-color: var(--accent-color);
  color: white;
    cursor: pointer;
  transition: all 0.2s ease;
    flex-shrink: 0;
  }
  
  .send-button:hover {
  background-color: #4a59a7;
  }
  
  .send-button:active {
    transform: scale(0.95);
  }
  
/* Voice recording UI */
.recording-ui {
  display: none;
  flex-grow: 1;
  align-items: center;
  justify-content: space-between;
  background-color: var(--secondary-color);
  border-radius: 20px;
  padding: 0 1rem;
  height: 38px;
}

.recording-ui.active {
  display: flex;
}

.recording-time {
  font-size: 0.8rem;
  color: var(--accent-color);
}

.recording-wave {
  display: flex;
  align-items: center;
  gap: 3px;
}

.wave-bar {
  width: 2px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }
.wave-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.2); }
}

.cancel-recording {
  color: #ff5252;
  cursor: pointer;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: top 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast-notification.show {
  top: 20px;
  animation: toast-in 0.3s ease forwards, toast-out 0.3s ease 3s forwards;
}

@keyframes toast-in {
  from {
    top: -60px;
    opacity: 0;
  }
  to {
    top: 20px;
    opacity: 1;
  }
}

@keyframes toast-out {
  from {
    top: 20px;
    opacity: 1;
  }
  to {
    top: -60px;
    opacity: 0;
  }
}

/* Simple startup animation */
.startup-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeOut 1.5s ease forwards;
}

.startup-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent-color);
  animation: fadeScale 1.2s ease;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes fadeScale {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Date header styles */
.date-header {
  text-align: center;
  padding: 8px 0;
  font-size: 0.75rem;
  color: var(--muted-text);
  margin: 5px 0;
}

/* Voice message styles */
.voice-message {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.voice-message i {
  font-size: 0.9rem;
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  width: 100px;
}

.wave-line {
  height: 100%;
  width: 3px;
  background-color: currentColor;
  opacity: 0.5;
  border-radius: 3px;
}

.message-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--accent-color);
}

/* Typing indicator */
  .typing-indicator {
    display: flex;
    align-items: center;
  padding: 8px 12px;
    background-color: var(--message-received);
  border-radius: 14px;
  width: fit-content;
  margin-top: 5px;
    align-self: flex-start;
  animation: fadeIn 0.3s ease;
}

.typing-dots {
  display: flex;
  gap: 4px;
  }
  
  .typing-dot {
  width: 7px;
  height: 7px;
    border-radius: 50%;
  background-color: var(--muted-text);
  animation: typingAnimation 1.4s infinite ease-in-out;
  }
  
  .typing-dot:nth-child(1) { animation-delay: 0s; }
  .typing-dot:nth-child(2) { animation-delay: 0.2s; }
  .typing-dot:nth-child(3) { animation-delay: 0.4s; }
  
@keyframes typingAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* New minimal attachment UI */
.attachment-preview {
  width: 100%;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.attachment-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.attachment-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.attachment-details {
  flex-grow: 1;
  overflow: hidden;
}

.attachment-name {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-meta {
  font-size: 0.7rem;
  color: var(--muted-text);
}

/* Media Queries */
@media (max-width: 1024px) {
  .app-container {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
  }
  
  .sidebar {
    width: 30%;
  }
  
  .empty-state, .chat-view {
    width: 70%;
  }
}

@media (max-width: 768px) {
  body {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }
  
  .app-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
  }
  
  .sidebar {
    display: none;
  }
  
  .main-view {
    display: flex;
  }
  
  .empty-state {
    display: none;
  }
  
  .chat-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
  }
  
  .chat-messages {
    height: calc(100vh - 130px);
  }
  
  .back-button {
    display: flex;
  }
}

@media (max-width: 480px) {
  .chat-actions {
    gap: 1rem;
  }
  .message {
    max-width: 85%;
  }
}

/* New Chat Panel Styles */
.new-chat-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  background-color: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1000;
  display: none;
  animation: slide-up 0.3s ease forwards;
}

@keyframes slide-up {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.new-chat-panel.active {
  display: block;
}

.new-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.new-chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}

.close-new-chat {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted-text);
  transition: background-color 0.2s;
}

.close-new-chat:hover {
  background-color: var(--secondary-color);
}

.new-chat-content {
  padding: 20px;
}

.new-chat-input-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.new-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.new-chat-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-size: 0.9rem;
}

.new-chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2);
}

.new-chat-suggestions {
  margin-bottom: 20px;
}

.new-chat-suggestions h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-text);
  margin-bottom: 10px;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: var(--secondary-color);
}

.suggestion-item.selected {
  background-color: var(--active-item);
}

.suggestion-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
}

.suggestion-name {
  font-size: 0.9rem;
  color: var(--text-color);
}

.create-chat-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.create-chat-button:hover {
  background-color: #4A59A7;
}

.create-chat-button:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .new-chat-panel {
    width: 90%;
    max-width: 350px;
  }
}

/* LiveDraw Feature */
.live-draw-container {
  position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  pointer-events: none;
  z-index: 5;
}

.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.draw-controls {
  position: absolute;
  bottom: 80px;
  right: 20px;
    display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.draw-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
    align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.draw-button:active {
  transform: scale(0.95);
}

.color-picker {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 70px;
  background-color: var(--primary-color);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  flex-wrap: wrap;
  width: 120px;
  gap: 5px;
}

.color-picker.open {
  display: flex;
}

.color-option {
  width: 25px;
  height: 25px;
    border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color);
}

/* Audio visualization */
.audio-visualizer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
  gap: 3px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.audio-visualizer.active {
  opacity: 1;
}

.audio-bar {
  width: 3px;
  background-color: var(--accent-color);
  border-radius: 3px;
  transition: height 0.1s ease;
}

/* AR Camera View */
.ar-camera-view {
    position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.ar-camera-view.active {
  display: flex;
}

.ar-camera-feed {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.ar-camera-controls {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background-color: var(--primary-color);
}

.ar-control-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ar-close {
  position: absolute;
    top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Profile Modal */
.profile-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  align-items: center;
  justify-content: center;
}

.profile-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.profile-modal-content {
  width: 100%;
  max-width: 400px;
  background-color: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.profile-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.profile-close {
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted-text);
}

.profile-close:hover {
  background-color: var(--secondary-color);
}

.profile-modal-body {
  padding: 1.5rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  background-color: var(--secondary-color);
  border: 2px solid var(--accent-color);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  text-align: center;
}

.profile-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text-color);
}

.profile-info p {
    font-size: 0.9rem;
  color: var(--muted-text);
  margin: 0 0 1.5rem;
}

.profile-contact-info {
    display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.profile-contact-item {
  display: flex;
  flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  cursor: pointer;
  color: var(--muted-text);
  transition: color 0.2s ease;
}

.profile-contact-item:hover {
  color: var(--accent-color);
}

.profile-contact-item i {
  font-size: 1.2rem;
}

.profile-contact-item span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Make chat user area clickable */
#chatUserInfo {
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

#chatUserInfo:hover {
  background-color: var(--secondary-color);
}

@media (max-width: 480px) {
  .profile-modal-content {
    max-width: 90%;
  }
}

/* Format Text Modal Styles */
.format-modal {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--message-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.format-options {
  display: flex;
  padding: 12px;
}

.format-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.format-option:hover {
  background-color: var(--hover-color);
}

.format-option i {
  font-size: 18px;
  margin-bottom: 4px;
}

.format-option span {
  font-size: 12px;
}

/* User Profile Modal Styles */
.user-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
      display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#userProfileAvatarContainer {
  position: relative;
  cursor: pointer;
}

.change-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
      display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

#userProfileAvatarContainer:hover .change-avatar-overlay {
  opacity: 1;
}

.change-avatar-overlay i {
  color: white;
  font-size: 24px;
}

.profile-name-edit,
.profile-status-edit {
  margin-bottom: 16px;
}

.profile-edit-input {
      width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--secondary-color);
  color: var(--text-color);
  margin-top: 4px;
}

.save-profile-button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
  margin-top: 16px;
}

.save-profile-button:hover {
  background-color: #4A59A7;
}

/* Message formatting styles */
.message-content .bold, .message .bold {
  font-weight: bold;
}

.message-content .italic, .message .italic {
  font-style: italic;
}

.message-content .strike, .message .strike {
  text-decoration: line-through;
}

.message-content .code, .message .code {
  font-family: monospace;
  background-color: var(--hover-color);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Message links */
.message-link {
  color: var(--accent-color);
  text-decoration: underline;
  word-break: break-all;
}

.message-link:hover {
  text-decoration: none;
}

/* Message formats */
.message.sent {
  align-self: flex-end;
  background: var(--message-sent);
  color: var(--text-color);
  border-bottom-right-radius: 4px;
  word-break: break-word;
}

.message.received {
  align-self: flex-start;
  background-color: var(--message-received);
  color: var(--text-color);
  border-bottom-left-radius: 4px;
  word-break: break-word;
}

/* Call UI Styles */
.active-call-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.active-call-ui .call-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2500;
  transition: all 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.active-call-ui .call-close-btn:hover {
  background-color: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.active-call-ui .call-close-btn i {
  font-size: 1.2rem;
}

.call-timer {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.active-call-ui .end-call-pulse {
  animation: pulsate 2s infinite;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 82, 82, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

/* Add styles for the Settings Modal */
.settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.settings-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
  opacity: 1;
  visibility: visible;
}

.settings-modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  background-color: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.settings-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.settings-close {
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted-text);
}

.settings-close:hover {
  background-color: var(--secondary-color);
}

.settings-modal-body {
  padding: 0.5rem 1rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.settings-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.settings-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.settings-item span {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Toggle switch styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--secondary-color);
  border-radius: 24px;
  transition: .4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--muted-text);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

input:checked + .toggle-slider {
  background-color: var(--accent-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: white;
}

/* Theme selector styles */
.theme-selector {
  display: flex;
  gap: 12px;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.theme-option.selected {
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-color-transparent);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.theme-option.selected .theme-preview {
  border-color: var(--accent-color);
}

.light-theme .theme-preview {
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.dark-theme .theme-preview {
  background-color: #111111;
  border: 1px solid #333;
}

.theme-option span {
  font-size: 0.8rem;
  color: var(--text-color);
}

/* Color selector styles */
.color-selector {
  display: flex;
  gap: 10px;
}

.color-option {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-color);
}

/* Font selector */
.settings-select {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  padding: 8px 10px;
  border-radius: 6px;
  min-width: 150px;
  font-size: 0.9rem;
  outline: none;
}

.settings-select:focus {
  border-color: var(--accent-color);
}

/* Chat highlighting to show current chat */
.current-chat-highlight {
  border-left: 3px solid var(--accent-color);
  background-color: var(--active-item);
}

/* Active conversation highlight */
.light-mode .conversation.active {
  background-color: var(--active-item);
  border-left: 3px solid var(--accent-color);
}