/* Air - Shared Styles */

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

:root {
  /* Modern Color Palette */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  
  /* Background Colors */
  --background-color: #f0f9ff;
  --background-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --background-light: linear-gradient(180deg, #dbeafe 0%, #a5f3fc 100%);
  --card-background: #ffffff;
  --card-hover: #f0fdfa;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Border & Shadow */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-colored: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
  
  /* Border Radius */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  
  /* Transitions - Removed */
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #93c5fd 0%, #7c3aed 25%, #6366f1 50%, #3b82f6 75%, #06b6d4 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0 1rem;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 80px;
  height: 40px;
  display: inline-block;
  vertical-align: middle;
}

.hero-logo {
  width: 160px;
  height: 80px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0;
}

.footer-logo-icon {
  width: 60px;
  height: 30px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  padding: 0.1rem;
  margin-top: 0.2rem;
  margin-bottom: 0.1rem;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  opacity: 0;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.btn:hover::before {
  left: 100%;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-colored);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Enhanced Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--border-radius-lg);
}

/* Icon Buttons */
.btn-icon {
  padding: 0.75rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
  padding: 0.5rem;
}

.btn-icon.btn-lg {
  width: 60px;
  height: 60px;
  padding: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* Enhanced Status Indicators */
.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  position: relative;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.status-dot.online {
  background-color: var(--success-color);
}

.status-dot.offline {
  background-color: var(--text-muted);
}

.status-dot.speaking {
  background-color: var(--accent-color);
}

.form-input:invalid {
  border-color: var(--danger-color);
}

/* Status indicators */
.status-online {
  color: var(--success-color);
}

.status-offline {
  color: var(--secondary-color);
}

.status-blocked {
  color: var(--danger-color);
}

.status-muted {
  color: var(--warning-color);
}

/* Presence dot */
.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}

.presence-dot.online {
  background-color: var(--success-color);
}

.presence-dot.offline {
  background-color: var(--secondary-color);
}

.presence-dot.blocked {
  background-color: var(--danger-color);
}

/* Lists */
.list {
  list-style: none;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

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

.list-item-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.list-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-list {
  display: flex;
  list-style: none;
  gap: 0;
}

.tab-button {
  padding: 0.75rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
}

.tab-button:hover {
  color: var(--text-primary);
  background-color: var(--background-color);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Chat */
.chat-container {
  height: 400px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(180deg, #93c5fd, #60a5fa, #3b82f6);
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--card-background);
}

.chat-input {
  flex: 1;
  margin-right: 0.5rem;
}

.message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.message.sent {
  background-color: var(--primary-color);
  color: white;
  margin-left: auto;
}

.message.received {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
}

.message-header {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

/* Meeting */
.meeting-container {
  text-align: center;
  padding: 2rem;
}

.meeting-status {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #93c5fd, #60a5fa, #3b82f6);
  border: 1px solid #2563eb;
}

.meeting-status.active {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border-color: #86efac;
}

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.participant-card {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  text-align: center;
}

.participant-card.speaking {
  border-color: var(--success-color);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.participant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 0.5rem;
}

.participant-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.participant-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Audio controls */
.audio-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.audio-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.audio-button.mic {
  background-color: var(--success-color);
  color: white;
}

.audio-button.mic.muted {
  background-color: var(--danger-color);
}

.audio-button.mic:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.audio-button.mic:hover:not(:disabled) {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .list-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .participants-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Enhanced UI Components */
.audio-container {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 50%, #3b82f6 100%);
  border: 1px solid #2563eb;
  border-radius: var(--border-radius-lg);
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.audio-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.audio-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.audio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.audio-label .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
}


/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

/* Enhanced Card Styles */
.card {
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Status Indicators */
.presence-dot {
  position: relative;
}

.presence-dot.online {
  background: var(--success-color);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.presence-dot.offline {
  background: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.2);
}

/* Enhanced Meeting Status */
.meeting-status {
  position: relative;
  overflow: hidden;
}

.meeting-status.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);

/* Enhanced Tab Styles */
.tab-btn {
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--success-color);
  transform: translateX(-50%);
}

.tab-btn.active::after {
  width: 50%;
}

.tab-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  color: var(--text-secondary, #b3d9ff);
  font-size: 0.9rem;
  text-align: center;
}

.tab-loading-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;

/* Enhanced Form Styles */
.form-input:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Chat Container */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 500px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: var(--background-color);
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.chat-input-container {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--card-background);
  flex-shrink: 0;
}

/* Enhanced Message Styles */
.message {
  position: relative;
  margin-bottom: 0.75rem;

.message:hover {
  transform: translateX(2px);
}

.message.sent {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  margin-left: auto;
  border-radius: 18px 18px 4px 18px;
}

.message.received {
  background: linear-gradient(135deg, var(--card-background), #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: 18px 18px 18px 4px;
}

.message-header {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Enhanced Participant Cards */
.participant-card {
  position: relative;
  overflow: hidden;
}

.participant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-color);
}

.participant-card.speaking::before {
  background: linear-gradient(90deg, var(--success-color), var(--primary-color));
}

.participant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Enhanced Audio Controls */
.audio-button {
  position: relative;
  overflow: hidden;
}

.audio-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.audio-button:hover::before {
  width: 100%;
  height: 100%;
}

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

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .audio-container {
    padding: 8px;
    margin-bottom: 8px;
  }
  
  .audio-label {
    font-size: 12px;
  }
}
