/* Component Styles */

/* Loading Spinner */
.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.loading-spinner {
  position: relative;
  display: inline-block;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin: 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 16px;
}

.empty-state-icon {
  font-size: 48px;
  opacity: 0.6;
}

.empty-state-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.empty-state-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  max-width: 300px;
  line-height: 1.5;
}

.empty-state-action {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.empty-state-action:hover {
  background: #5a6fd8;
  transform: translateY(-1px);
}

/* Online Indicator */
.online-indicator {
  position: relative;
  border-radius: 50%;
  display: inline-block;
}

.indicator-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.indicator-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Status Colors */
.bg-green-500 {
  background-color: #10b981;
}

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

.bg-yellow-500 {
  background-color: #f59e0b;
}

/* Utility Classes */
.w-2 { width: 8px; }
.h-2 { height: 8px; }
.w-3 { width: 12px; }
.h-3 { height: 12px; }
.w-4 { width: 16px; }
.h-4 { height: 16px; }
.w-8 { width: 32px; }
.h-8 { height: 32px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }

/* Responsive Design */
@media (max-width: 768px) {
  .session-list-container {
    padding: 16px;
  }
  
  .session-list-header h1 {
    font-size: 20px;
  }
  
  .message-bubble-container {
    max-width: 85%;
  }
  
  .chat-room-header {
    padding: 12px 16px;
  }
  
  .chat-messages {
    padding: 16px;
  }
  
  .chat-input-form {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .session-list-item {
    padding: 12px;
  }
  
  .session-avatar {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .message-bubble-container {
    max-width: 90%;
  }
  
  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
