/* ===================================
   모임스 - Mobile First Design System v2
   Max Width: 375px (iPhone standard)
   =================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  min-height: 100dvh;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mobile Container */
.mobile-container {
  width: 100%;
  background: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* Safe Area Support */
.safe-top {
  padding-top: env(safe-area-inset-top);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #1a1a1a;
}

.icon-btn:active {
  transform: scale(0.95);
  background: #e8e8eb;
}

/* Unified Google Login Button for Header */
.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.google-login-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.google-login-btn:active {
  transform: scale(0.98);
}

/* Special emphasis for pending meeting login */
.google-login-btn.pending-meeting {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border-color: #f59e0b;
  animation: subtle-pulse 2s ease-in-out infinite;
}

.google-login-btn.pending-meeting:hover {
  background: linear-gradient(135deg, #fed7aa 0%, #fef3c7 100%);
  border-color: #f97316;
}

@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
  }
  50% {
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
  }
}

/* Main Content */
.main-content {
  padding-top: 56px;
  padding-bottom: 70px;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-container {
  padding: 16px;
}

/* Hero Section */
.hero {
  text-align: center;
}

.hero-emoji,
.hero-logo {
  font-size: 36px;
  animation: bounce 2s infinite;
}

.hero-logo {
  margin-bottom: 0;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: block;
}

.hero-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

/* Hero Examples Carousel - Infinite scroll style */
.hero-examples {
  margin: 20px 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 80px;
}

/* Gradient fade effect on edges */
.hero-examples::before,
.hero-examples::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.hero-examples::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.hero-examples::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}


.example-carousel-wrapper {
  display: flex;
  animation: infiniteScroll 30s linear infinite;
  width: fit-content;
}

.example-carousel {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-examples:hover .example-carousel-wrapper {
  animation-play-state: paused;
}

.example-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 2px solid transparent;
  min-width: 70px;
  opacity: 0.5;
  transform: scale(0.9);
}

.example-item.center-active {
  opacity: 1;
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.example-item.center-active .example-icon {
  transform: scale(1.1);
}

.example-item.center-active .example-text {
  color: #667eea;
  font-weight: 700;
}

.example-item:hover:not(.center-active) {
  opacity: 0.7;
  transform: scale(0.95);
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.example-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.4s ease;
}

.example-text {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  white-space: nowrap;
  transition: all 0.4s ease;
}

/* Card Component */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

/* Enhanced Link Bar - Modern design */
.link-bar {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #f8f9fa 0%, #f3f4f6 50%, #f8f9fa 100%);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(-10px);
}

.link-bar.active {
  opacity: 1;
  transform: translateY(0);
}

.link-bar:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.link-bar:hover {
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.link-bar:active {
  transform: scale(0.995);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.link-bar-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  max-width: 100%;
  position: relative;
}

.link-text {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

.link-copy-icon {
  color: #4b5563;
  font-size: 14px;
  transition: all 0.2s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  5%, 15% { transform: rotate(-10deg); }
  10%, 20% { transform: rotate(10deg); }
  25% { transform: rotate(-5deg); }
  30% { transform: rotate(5deg); }
  35% { transform: rotate(0deg); }
}

.link-bar:hover .link-copy-icon {
  transform: scale(1.1);
  color: #1a1a1a;
}

/* Adjust main content when link bar is shown */
.main-content.with-link-bar {
  padding-top: 92px; /* 56px header + 36px link bar */
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.card-badge {
  padding: 4px 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.card-content {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn-primary:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Glowing button effect */
.btn-glow {
  position: relative;
  font-size: 17px;
  padding: 16px 28px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  animation: pulse-glow 2s infinite;
}

.btn-glow:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

.btn-text {
  font-weight: 600;
  letter-spacing: -0.3px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(102, 126, 234, 0.6);
  }
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 100%;
  }
}

.btn-secondary {
  background: #f5f5f7;
  color: #1a1a1a;
}

.btn-secondary:active {
  transform: scale(0.98);
  background: #e8e8eb;
}

.btn-outline {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #4b5563;
}

.btn-outline:active {
  background: #f9fafb;
}

/* Quick Actions Grid */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.quick-action-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.quick-action-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.quick-action-card:nth-child(2) .quick-action-icon {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.quick-action-card:nth-child(3) .quick-action-icon {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.quick-action-card:nth-child(4) .quick-action-icon {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.quick-action-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
}

.quick-action-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: #ffffff;
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  z-index: 1000;
}

.bottom-nav-content {
  display: flex;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  text-decoration: none;
  color: #9ca3af;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-item.active {
  color: #667eea;
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
}

/* List Items */
.list {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f5f5f7;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:active {
  background: #f9fafb;
}

.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 18px;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.list-item-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.list-item-action {
  color: #9ca3af;
  font-size: 14px;
}

/* Modal/Overlay */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 355px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
}

/* Chat Interface */
.chat-container {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.chat-message {
  margin-bottom: 12px;
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.ai {
  justify-content: flex-start;
}

.chat-message.user .text-sm {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message.ai .text-sm {
  background: white;
  color: #374151;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  max-width: 80%;
  border: 1px solid #e5e7eb;
  word-wrap: break-word;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s;
}

.chat-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-submit-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-submit-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.chat-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Enhanced Toast Notifications - Modern Design */
.toast-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 3000;
  pointer-events: none;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1a1a1a;
  padding: 16px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.05),
              0 1px 0 rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.toast:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 16px 0 0 16px;
}

.toast-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: scale(1);
  animation: slideInBounce 0.4s ease;
}

@keyframes slideInBounce {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.toast.hide {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s ease-in;
}

.toast-success {
  background: rgba(236, 253, 245, 0.98);
  backdrop-filter: blur(20px);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast-success:before {
  background: linear-gradient(180deg, #10b981, #34d399);
}

.toast-success .toast-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.toast-error {
  background: rgba(254, 242, 242, 0.98);
  backdrop-filter: blur(20px);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.toast-error:before {
  background: linear-gradient(180deg, #ef4444, #f87171);
}

.toast-error .toast-icon {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.toast-warning {
  background: rgba(255, 251, 235, 0.98);
  backdrop-filter: blur(20px);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.toast-warning:before {
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.toast-warning .toast-icon {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.toast-info {
  background: rgba(239, 246, 255, 0.98);
  backdrop-filter: blur(20px);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.toast-info:before {
  background: linear-gradient(180deg, #3b82f6, #60a5fa);
}

.toast-info .toast-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Toast progress bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.2;
  animation: progress 3.5s linear forwards;
  transform-origin: left;
}

@keyframes progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Loading Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Chat Styles */
.chat-container {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  margin-bottom: 12px;
}

.chat-message.sent {
  justify-content: flex-end;
}

.chat-message.received {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  word-wrap: break-word;
}

.chat-message.sent .message-bubble {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
  background: #e5e7eb;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

.message-sender {
  font-size: 11px;
  margin-bottom: 2px;
  opacity: 0.8;
}

.message-content {
  font-size: 14px;
  line-height: 1.4;
}

.message-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.chat-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-submit-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.typing-indicator {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 8px;
}

.chat-login-prompt {
  text-align: center;
  padding: 40px 20px;
  background: #f9fafb;
  border-radius: 16px;
  margin-bottom: 20px;
}

.login-prompt-icon {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 16px;
}

.login-prompt-text {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 20px;
}

/* Chat List Modal */
.chat-list-modal {
  position: fixed;
  top: 70px;
  right: 10px;
  width: 320px;
  max-width: calc(100vw - 20px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 1001;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-list-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-list-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.chat-list-header .close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
}

.chat-list-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.chat-list-item {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f9fafb;
  position: relative;
}

.chat-list-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.chat-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding-right: 35px; /* Space for unread count */
}

.chat-item-header strong {
  font-size: 14px;
  color: #1f2937;
  margin-right: 8px;
}

.chat-meeting-title {
  font-size: 12px;
  color: #6b7280;
  flex: 1;
  text-align: right;
  margin-right: 8px;
}

.chat-item-preview {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.no-chats {
  text-align: center;
  color: #9ca3af;
  padding: 40px 20px;
  font-size: 14px;
}

/* Auth Container */
.auth-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Menu Button */
.menu-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 18px;
  color: #4b5563;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.menu-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* Chat Button with Badge */
.chat-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  color: #4b5563;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.chat-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.chat-btn.has-unread {
  position: relative;
  color: #667eea;
}

.chat-btn.has-unread::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 50%;
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 50px;
    height: 50px;
    opacity: 0;
  }
}

.chat-btn.has-unread .fa-comments {
  animation: shake 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-5deg); }
  20% { transform: rotate(5deg); }
  30% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  50% { transform: rotate(0deg); }
}

.unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.5);
  }
}

/* User Menu Container */
.user-menu-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s ease;
}

.user-avatar:hover {
  border-color: #667eea;
}

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

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 200px;
  z-index: 1000;
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.user-email {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.dropdown-item:hover {
  background: #f9fafb;
  color: #1f2937;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

/* Chat Notification Toast */
.chat-notification-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  padding: 16px;
  max-width: 350px;
  z-index: 10001;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.chat-notification-toast.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.notification-header strong {
  color: #1f2937;
}

.notification-meeting {
  font-size: 12px;
  color: #6b7280;
}

.notification-message {
  font-size: 13px;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  font-size: 14px;
  color: #6b7280;
}

/* Animations */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Platform Badges */
.platform-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  flex-wrap: wrap;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 20px;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

.platform-badge i {
  font-size: 14px;
  color: #9ca3af;
}

.platform-badge:hover {
  background: linear-gradient(135deg, #667eea08, #764ba208);
  border-color: #667eea40;
  transform: translateY(-1px);
}

.platform-text {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-full {
  width: 100%;
}

.text-sm {
  font-size: 12px;
}

.text-base {
  font-size: 14px;
}

.text-lg {
  font-size: 16px;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-gray {
  color: #6b7280;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-900 {
  color: #111827;
}

.text-primary {
  color: #667eea;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Additional layout utilities */
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.border-b { border-bottom: 1px solid; }
.border-gray-100 { border-color: #f3f4f6; }
.text-2xl { font-size: 24px; }

/* Responsive for larger screens - Limit width for desktop */
@media (min-width: 768px) {
  .mobile-container {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  }
  
  .header {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
  }
  
  .link-bar {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    max-width: 480px;
  }
  
  .link-bar.active {
    transform: translateX(-50%) translateY(0);
  }
  
  .link-bar:active {
    transform: translateX(-50%) scale(0.995);
  }
  
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
  }
  
  /* Meeting Info Card adjustments for desktop */
  .meeting-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-card {
    padding: 16px 12px;
  }
  
  .meeting-info-card {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }
  
  /* Keep login button mobile style on desktop */
  .google-login-btn {
    padding: 8px 14px !important;
    font-size: 14px !important;
    border-radius: 20px !important;
    border: 1px solid #e5e7eb !important;
    background: white !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles here if needed */
}

/* Enhanced Meeting Info Card Styles */
.meeting-info-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

/* Header Section */
.meeting-header-section {
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.meeting-title-wrapper {
  flex: 1;
}

.meeting-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.meeting-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  cursor: pointer;
  transition: all 0.2s ease;
}

.meeting-code-badge:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.meeting-code-badge i {
  font-size: 10px;
  opacity: 0.8;
}

.share-button {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #667eea;
}

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

/* Stats Grid */
.meeting-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fafbfc;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.stat-icon.calendar {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.stat-icon.time {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.stat-icon.participants {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-icon.price {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon.location {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Location Section */
.meeting-location-section {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
}

.location-header i {
  color: #ef4444;
  font-size: 14px;
}

.location-content {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.location-content p {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  margin: 0;
}

.location-detail {
  font-size: 12px !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  margin-top: 4px !important;
}

.map-button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Description Section - Updated for better layout */
.meeting-description-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

.description-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.description-header i {
  color: #6b7280;
  font-size: 16px;
}

.description-content {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Host Section */
.meeting-host-section {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafbfc;
  border-bottom: 1px solid #f0f0f0;
}

.host-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.host-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.host-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.host-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Bank Account Section */
.bank-account-section {
  padding: 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.bank-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 10px;
}

.bank-header i {
  font-size: 14px;
}

.bank-content {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.bank-number {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.copy-bank-button {
  width: 32px;
  height: 32px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.copy-bank-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

/* Print Styles */
@media print {
  .header,
  .bottom-nav,
  .icon-btn,
  .modal {
    display: none !important;
  }
}