/* Video Chat Monitor Styles */

.video-chat-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Alerts */
.alerts-container {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.alert-error {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.alert-success {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

.alert-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.alert-close:hover {
  opacity: 1;
}

/* Header */
.video-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}

.video-chat-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
}

/* Stats Detail */
.stats-detail {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-detail h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.stats-table {
  display: grid;
  gap: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  align-items: center;
}

.stat-name {
  font-weight: 500;
  color: #333;
}

.stat-count {
  font-weight: bold;
  color: #667eea;
  text-align: center;
}

.stat-avg {
  color: #666;
  text-align: center;
  font-size: 14px;
}

/* Searches List */
.searches-list {
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  align-items: center;
  font-size: 14px;
}

.user-id {
  font-family: monospace;
  color: #333;
  font-weight: 500;
}

.gender {
  color: #667eea;
  font-weight: 500;
}

.looking-for {
  color: #666;
}

.duration {
  color: #999;
  text-align: center;
}

/* Rooms Section */
.rooms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rooms-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.room-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #ddd;
  transition: all 0.2s ease;
}

.room-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.room-card.waiting {
  border-left-color: #ffc107;
}

.room-card.active {
  border-left-color: #28a745;
}

.room-card.completed {
  border-left-color: #6c757d;
}

.room-card.disconnected {
  border-left-color: #dc3545;
}

.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.room-id {
  font-family: monospace;
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.room-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.room-status.waiting {
  background: #fff3cd;
  color: #856404;
}

.room-status.active {
  background: #d4edda;
  color: #155724;
}

.room-status.completed {
  background: #e2e3e5;
  color: #383d41;
}

.room-status.disconnected {
  background: #f8d7da;
  color: #721c24;
}

.room-users {
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.user-info:last-child {
  border-bottom: none;
}

.user-id {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.user-gender {
  color: #667eea;
  font-size: 12px;
  padding: 2px 8px;
  background: #f0f4ff;
  border-radius: 12px;
}

.connection-status {
  font-size: 16px;
}

.connection-status.connected {
  color: #28a745;
}

.connection-status.disconnected {
  color: #dc3545;
}

.waiting {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 10px;
}

.room-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #666;
}

.room-decisions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.decision {
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.decision.like {
  background: #d4edda;
  color: #28a745;
}

.decision.dislike {
  background: #f8d7da;
  color: #dc3545;
}

.no-rooms {
  text-align: center;
  padding: 40px;
  color: #666;
}

.no-rooms i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Info Section */
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-content p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Buttons */
.btn-refresh, .btn-cleanup, .btn-refresh-small {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-refresh {
  background: #667eea;
  color: white;
}

.btn-refresh:hover {
  background: #5a6fd8;
}

.btn-cleanup {
  background: #dc3545;
  color: white;
}

.btn-cleanup:hover {
  background: #c82333;
}

.btn-refresh-small {
  background: #6c757d;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-refresh-small:hover {
  background: #5a6268;
}

.btn-primary, .btn-secondary, .btn-warning {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-warning {
  background: #ffc107;
  color: #212529;
}

.btn-warning:hover {
  background: #e0a800;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .video-chat-container {
    padding: 10px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .rooms-grid {
    grid-template-columns: 1fr;
  }
  
  .video-chat-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .stat-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
} 