.notification-permission-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 2000;
}

.notification-permission-card {
  max-width: 420px;
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 18px;
  padding: 1.75rem;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.notification-permission-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.notification-permission-title {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.notification-permission-description {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.notification-permission-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-permission-primary {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.notification-permission-primary:hover:not(:disabled) {
  background: #4c8ffc;
  transform: translateY(-1px);
}

.notification-permission-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.notification-permission-secondary {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.notification-permission-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.notification-permission-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .notification-permission-overlay {
    padding: 1.5rem;
  }

  .notification-permission-card {
    padding: 1.5rem 1.25rem;
  }

  .notification-permission-title {
    font-size: 1.25rem;
  }

  .notification-permission-description {
    font-size: 0.92rem;
  }
}
/* src/styles/ActivityBubble.css */

.activity-bubble {
    background: white;
    max-width: 250px;
    min-width: 150px;
    z-index: 1000;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    pointer-events: auto;
}

.gm-style-iw-chr {
    max-height: 16px;
}

.activity-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
  z-index: 1001;
}

.activity-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #333;
  z-index: 1000;
}

.activity-bubble-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 15px;
}

.activity-bubble-content {
  margin-bottom: 8px;
  word-wrap: break-word;
}

.activity-bubble-image {
    max-width: 120px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 8px auto;
    display: block;
}

.activity-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  padding: 2px;
  line-height: 1;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.activity-bubble-close:hover {
  background: #f0f0f0;
  color: #333;
}

@keyframes bubbleAppear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Estilos para la información de acción de actividad */
.activity-action-info {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.activity-status-text {
  margin: 4px 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.activity-start-btn {
  margin-top: 6px;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.activity-start-btn:hover {
  background: #0056b3;
}

.activity-start-btn:active {
  background: #004085;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .activity-bubble {
    max-width: 200px;
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .activity-bubble-title {
    font-size: 14px;
  }
  
  .activity-start-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
}
/* Estilos para el botón de seguimiento del mapa */
.follow-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.follow-button:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.follow-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.follow-button.active {
  background-color: var(--primary-color-alpha-1);
  border: 2px solid var(--primary-color);
}

.follow-button.active:hover {
  background-color: var(--primary-color-alpha-2);
}

.follow-button svg {
  transition: fill 0.3s ease;
}

.follow-button.active svg {
  fill: var(--primary-color);
}

.follow-button:not(.active) svg {
  fill: #CCC;
}

/* Estilos para el botón de brújula */
.compass-button {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-size: 20px;
}

.compass-button:hover {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px) scale(1.05);
  border-color: var(--primary-color);
}

.compass-button:active {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Estilos para el botón de alternar brújula */
.compass-toggle-button {
  position: absolute;
  top: 140px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-size: 16px;
  color: #666;
}

.compass-toggle-button:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.compass-toggle-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.compass-toggle-button.active {
  background-color: rgba(76, 175, 80, 0.9);
  border-color: #4CAF50;
  color: #fff;
}

.compass-toggle-button.active:hover {
  background-color: rgba(76, 175, 80, 1);
}

/* Estilos para el botón de actualizar posiciones (organizador) */
.refresh-positions-button {
  position: absolute;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.4s ease;
  backdrop-filter: blur(4px);
  color: #3b82f6;
}

.refresh-positions-button:hover {
  background-color: rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  border-color: #2563eb;
  color: #2563eb;
}

.refresh-positions-button:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.refresh-positions-button svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
}

/* Responsive: ajustar tamaño en pantallas pequeñas */
@media (max-width: 768px) {
  .follow-button {
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
  }
  
  .follow-button svg {
    width: 25px;
    height: 25px;
  }
  
  .compass-button {
    width: 45px;
    height: 45px;
    top: 70px;
    right: 15px;
    font-size: 18px;
  }
  
  .compass-toggle-button {
    width: 45px;
    height: 45px;
    top: 125px;
    right: 15px;
    font-size: 14px;
  }
  
  .refresh-positions-button {
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 15px;
  }
  
  .refresh-positions-button svg {
    width: 22px;
    height: 22px;
  }
}
/* src/styles/QuestionActivity.css */
.question-activity {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background: #fff;
}

.question-activity.loading {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.activity-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.question-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.question-type {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.time-remaining {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.question-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 2rem;
}

.question-container {
  max-width: 800px;
  margin: 0 auto;
}

.question-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

/* Test Questions Styles */
.answers-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 1rem;
}

.answer-option:hover {
  border-color: var(--primary-color);
  background: #fff5f5;
}

.answer-option.selected {
  border-color: var(--primary-color);
  background: var(--primary-color-alpha-1);
}

.answer-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.answer-option.selected .answer-letter {
  background: white;
  color: var(--primary-color);
}

.answer-text {
  flex: 1;
  line-height: 1.4;
}

/* Open Questions Styles */
.open-question-item {
  margin-bottom: 2rem;
}

.open-answer-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.open-answer-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-alpha-1);
}

.open-answer-input:disabled {
  background: #f8f9fa;
  opacity: 0.6;
}

/* Actions */
.question-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.question-actions .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
}

.btn-primary:disabled {
  background: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: 2px solid #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background: #545b62;
  border-color: #545b62;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .question-activity {
    padding: 0.5rem;
  }
  
  .question-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }
  
  .question-info {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  .activity-title {
    font-size: 1.2rem;
  }
  
  .question-title {
    font-size: 1.1rem;
    padding: 0.75rem;
  }
  
  .answer-option {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .answer-letter {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .question-actions {
    flex-direction: column;
  }
  
  .question-actions .btn {
    width: 100%;
    padding: 1rem;
  }
}
.clue-activity {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.clue-activity .activity-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	overflow-y: auto;
}

.clue-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 200px;
}

.clue-description {
	max-width: 800px;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
}

.clue-description h1,
.clue-description h2,
.clue-description h3,
.clue-description h4,
.clue-description h5,
.clue-description h6 {
	color: #2c3e50;
	margin-bottom: 15px;
	margin-top: 0;
}

.clue-description p {
	color: #34495e;
	line-height: 1.6;
	margin-bottom: 15px;
	font-size: 1.1em;
}

.clue-description strong,
.clue-description b {
	color: #2980b9;
	font-weight: 600;
}

.clue-description em,
.clue-description i {
	color: #7f8c8d;
	font-style: italic;
}

.clue-description ul,
.clue-description ol {
	text-align: left;
	max-width: 600px;
	margin: 20px auto;
}

.clue-description li {
	margin-bottom: 8px;
	color: #34495e;
}

.activity-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
	flex-wrap: wrap;
}

.activity-actions .btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 120px;
}

.activity-actions .btn-primary {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
}

.activity-actions .btn-primary:hover {
	background: linear-gradient(135deg, #2980b9, #1f5f8b);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.activity-actions .btn-secondary {
	background: linear-gradient(135deg, #95a5a6, #7f8c8d);
	color: white;
}

.activity-actions .btn-secondary:hover {
	background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
	.clue-activity .activity-content {
		padding: 15px;
	}
	
	.clue-description {
		padding: 20px;
		margin: 0 10px;
	}
	
	.clue-description p {
		font-size: 1em;
	}
	
	.activity-actions {
		margin-top: 20px;
		gap: 10px;
	}
	
	.activity-actions .btn {
		padding: 10px 20px;
		min-width: 100px;
		font-size: 0.9em;
	}
}

@media (max-width: 480px) {
	.clue-description {
		padding: 15px;
		margin: 0 5px;
	}
	
	.activity-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.activity-actions .btn {
		width: 100%;
		max-width: 200px;
	}
}
.jigsaw-puzzle{position:relative}.jigsaw-puzzle__piece{position:absolute;border:1px solid #cecece;cursor:pointer;z-index:1;user-select:none}.jigsaw-puzzle__piece.jigsaw-puzzle__piece--solved{border-color:#000;z-index:0}.jigsaw-puzzle__piece.jigsaw-puzzle__piece--dragging{z-index:5;box-shadow:1px 1px 5px 0 #00000091}/* src/styles/PuzzleActivity.css */

.puzzle-activity {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px;
	color: black;
}

.puzzle-activity.loading {
	justify-content: center;
	align-items: center;
}

.puzzle-header {
	text-align: center;
	margin-bottom: 20px;
}

.activity-title {
	font-size: 1.8rem;
	font-weight: bold;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.puzzle-description {
	font-size: 1rem;
	margin-bottom: 15px;
	opacity: 0.9;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.puzzle-info {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

.puzzle-pieces,
.puzzle-time {
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 12px;
	border-radius: 15px;
	backdrop-filter: blur(10px);
}

.puzzle-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
}

.puzzle-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	min-height: 300px;
	overflow: hidden;
	position: relative;
	touch-action: none;
}

.jigsaw-puzzle {
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	background: white;
	padding: 10px;
}

.jigsaw-puzzle.touch-optimized,
.jigsaw-puzzle.touch-optimized * {
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	overscroll-behavior: contain;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
}

.puzzle-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 200px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	backdrop-filter: blur(10px);
}

.puzzle-completed {
	text-align: center;
	max-width: 500px;
}

.success-icon {
	font-size: 3rem;
	margin-bottom: 15px;
}

.puzzle-completed h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: #4ade80;
}

.puzzle-completed p {
	font-size: 1rem;
	margin-bottom: 20px;
	opacity: 0.9;
}

.waiting-message {
	color: #fbbf24;
	font-weight: 500;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.8;
	}
	50% {
		opacity: 1;
	}
}

.completed-image {
	max-width: 300px;
	max-height: 300px;
	border-radius: 10px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.puzzle-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

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

/* Responsive design */
@media (max-width: 768px) {
	.puzzle-activity {
		padding: 10px;
	}
	
	.activity-title {
		font-size: 1.5rem;
	}
	
	.puzzle-info {
		flex-direction: column;
		gap: 10px;
	}
	
	.puzzle-container {
		min-height: 250px;
	}
	
	.jigsaw-puzzle {
		padding: 5px;
	}
	
	.completed-image {
		max-width: 250px;
		max-height: 250px;
	}
	
	.puzzle-actions {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.puzzle-activity {
		padding: 8px;
	}
	
	.activity-title {
		font-size: 1.3rem;
	}
	
	.puzzle-container {
		min-height: 200px;
	}
	
	.jigsaw-puzzle {
		padding: 3px;
	}
	
	.completed-image {
		max-width: 200px;
		max-height: 200px;
	}
}

@media (orientation: landscape) and (max-height: 600px) {
	.puzzle-activity {
		padding: 10px;
	}
	
	.puzzle-header {
		margin-bottom: 10px;
	}
	
	.activity-title {
		font-size: 1.3rem;
		margin-bottom: 5px;
	}
	
	.puzzle-info {
		margin-bottom: 10px;
	}
}
/* src/styles/PairsActivity.css */

.pairs-activity {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px;
	max-width: 100%;
	overflow: hidden;
}

.pairs-activity.loading,
.pairs-activity.error {
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 200px;
}

.pairs-header {
	margin-bottom: 20px;
	text-align: center;
}

.activity-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
}

.pairs-description {
	margin-bottom: 15px;
	color: #666;
	font-size: 1rem;
	line-height: 1.4;
}

.pairs-info {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: #555;
}

.pairs-info span {
	background: #f0f0f0;
	padding: 5px 10px;
	border-radius: 15px;
	white-space: nowrap;
}

.pairs-content {
	flex: 1;
	justify-content: center;
	align-items: center;
	overflow: auto;
	padding: 10px 0;
}

.pairs-grid {
	display: grid;
	max-width: 100%;
	max-height: 100%;
	padding: 10px;
	box-sizing: border-box;
  justify-items: center;
  align-items: center;
  height: 100%;
}

.pairs-card {
	aspect-ratio: 1;
	perspective: 1000px;
	cursor: pointer;
	transition: transform 0.1s ease;
  min-width: auto;
  min-height: 100%;
}


.pairs-card.matched {
	cursor: default;
}

.pairs-card.matched:hover {
	transform: none;
}

.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pairs-card.flipped .card-inner {
	transform: rotateY(180deg);
}

.pairs-card.matched .card-inner {
	transform: rotateY(180deg) !important;
	animation: matchSuccess 0.3s ease-in-out;
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-front {
	background: #fff;
	border: 2px solid #ddd;
}

.card-back {
	background: #fff;
	border: 2px solid #4CAF50;
	transform: rotateY(180deg);
}

.pairs-card.matched .card-back {
	border-color: #FFC107;
	background: #fff9c4;
}

.card-back-image,
.card-front-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.card-back-image {
	opacity: 0.8;
}

.pairs-completed {
	text-align: center;
	padding: 40px 20px;
	max-width: 500px;
	margin: 0 auto;
}

.success-icon {
	font-size: 4rem;
	margin-bottom: 20px;
}

.pairs-completed h3 {
	font-size: 1.8rem;
	color: #4CAF50;
	margin-bottom: 15px;
}

.pairs-completed p {
	font-size: 1.1rem;
	color: #666;
	margin-bottom: 20px;
	line-height: 1.5;
}

.pairs-stats {
	background: #f9f9f9;
	border-radius: 10px;
	padding: 15px;
	margin-top: 20px;
}

.pairs-stats p {
	font-size: 1rem;
	font-weight: bold;
	color: #333;
	margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
	.pairs-activity {
		padding: 15px 10px;
	}
	
	.activity-title {
		font-size: 1.3rem;
	}
	
	.pairs-info {
		gap: 10px;
		font-size: 0.8rem;
	}
	
	.pairs-grid {
		gap: 8px !important;
		padding: 5px;
	}
	
	.pairs-card {
		min-width: 65px;
		min-height: 65px;
		max-width: 100px;
		max-height: 100px;
	}
}

@media (max-width: 480px) {
	.pairs-info {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}
	
	.pairs-grid {
		gap: 6px !important;
	}
	
	.pairs-card {
		min-width: 65px;
		min-height: 65px;
		max-width: 80px;
		max-height: 80px;
	}
	
	.activity-title {
		font-size: 1.2rem;
	}
	
	.pairs-description {
		font-size: 0.9rem;
	}
}

/* Animaciones */
@keyframes cardFlip {
	0% { transform: rotateY(0deg); }
	100% { transform: rotateY(180deg); }
}

@keyframes matchSuccess {
	0% { 
		transform: rotateY(180deg) scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
	50% { 
		transform: rotateY(180deg) scale(1.05);
		box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
	}
	100% { 
		transform: rotateY(180deg) scale(1);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}
}

.pairs-card.matched .card-inner {
	animation: matchSuccess 0.3s ease-in-out;
}

/* Estados de carga y error */
.pairs-activity.loading p,
.pairs-activity.error p {
	font-size: 1.1rem;
	color: #666;
}

.pairs-activity.error p {
	color: #e74c3c;
}
/* src/styles/WordRelationsActivity.css */

.word-relations-activity {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px;
	max-width: 100%;
	overflow: hidden;
	position: relative;
}

.word-relations-activity.loading,
.word-relations-activity.error {
	justify-content: center;
	align-items: center;
	text-align: center;
	min-height: 200px;
}

.word-relations-header {
	margin-bottom: 20px;
	text-align: center;
}

.activity-title {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 10px;
	color: #333;
}

.word-relations-description {
	margin-bottom: 15px;
	color: #666;
	font-size: 1rem;
	line-height: 1.4;
}

.word-relations-info {
	display: flex;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 10px;
}

.word-relations-info span {
	background: #f0f0f0;
	padding: 5px 10px;
	border-radius: 15px;
	font-weight: 500;
}

.word-relations-instructions {
	font-size: 0.9rem;
	color: #666;
	font-style: italic;
	margin-bottom: 0;
}

.word-relations-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	position: relative;
	min-height: 400px;
}

.words-container {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	flex: 1;
	position: relative;
	z-index: 2;
	padding: 20px 0;
}

.words-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 45%;
}

.words-column h3 {
	text-align: center;
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e0e0e0;
}

.word-item {
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 12px;
	padding: 15px 20px;
	font-size: 1.1rem;
	font-weight: 500;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.word-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	border-color: #2196F3;
}

.word-item.selected {
	border-color: #2196F3;
	background: #e3f2fd;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.word-item.connected {
	border-color: #4CAF50;
	background: #e8f5e8;
	cursor: default;
	transform: none !important;
}

.word-item.connected:hover {
	transform: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.connections-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.pulse-circle {
	animation: pulse 1.5s infinite;
}

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

.success-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	animation: fadeIn 0.5s ease;
}

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

.success-message {
	text-align: center;
	padding: 30px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	max-width: 400px;
}

.success-icon {
	font-size: 3rem;
	margin-bottom: 15px;
	animation: bounce 1s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.success-message h3 {
	font-size: 1.5rem;
	color: #4CAF50;
	margin-bottom: 10px;
}

.success-message p {
	color: #666;
	font-size: 1rem;
	line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
	.word-relations-activity {
		padding: 15px;
	}
	
	.words-container {
		gap: 20px;
		align-items: center;
	}
	
	.words-column {
		max-width: 100%;
		width: 100%;
	}
	
	.words-column h3 {
		font-size: 1.1rem;
	}
	
	.word-item {
		font-size: 1rem;
		padding: 12px 15px;
		min-height: 45px;
	}
	
	.activity-title {
		font-size: 1.3rem;
	}
	
	.word-relations-info {
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 480px) {
	.word-relations-activity {
		padding: 10px;
	}
	
	.word-item {
		font-size: 0.9rem;
		padding: 10px 12px;
		min-height: 40px;
	}
	
	.activity-title {
		font-size: 1.2rem;
	}
}

/* Animación para las líneas cuando se crean */
.connections-svg line {
	animation: drawLine 0.5s ease-out;
}

@keyframes drawLine {
	from {
		stroke-dasharray: 1000;
		stroke-dashoffset: 1000;
	}
	to {
		stroke-dasharray: 1000;
		stroke-dashoffset: 0;
	}
}
/* src/styles/ActivityRunner.css */
.activity-runner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1002;
  display: flex;
  flex-direction: column;
}

.activity-runner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

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

.activity-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  object-fit: none;
  background: #fff;
  padding: 2px;
}

.activity-details h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.activity-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.activity-meta span {
  display: flex;
  align-items: center;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  border-radius: 50%;
}

.btn-close:hover {
  background: #e9ecef;
}

.activity-runner-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.activity-runner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.team-name {
  font-weight: bold;
  color: #333;
}

.event-name {
  font-size: 0.9rem;
  color: #666;
}

/* Photo/Video Activity Styles */
.photo-video-activity {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2rem;
}

.photo-selector img.team-detail-icon {
  width: 10rem;
  margin: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-selector img.team-detail-icon:hover {
  transform: scale(1.05);
}

.activity-description {
  text-align: center;
  margin-bottom: 2rem;
}

.activity-instructions {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
}

.capture-area {
  /* flex: 1; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.captured-media {
  text-align: center;
  max-width: 100%;
}

.captured-photo,
.captured-video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.captured-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.camera-view {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.camera-video {
  width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.camera-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.activity-timer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  background: var(--primary-color-alpha-1);
  border-radius: 20px;
  border: 2px solid var(--primary-color-alpha-3);
  flex: 1;
}

.time-left {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.upload-error {
  margin-top: 1rem;
  text-align: center;
}

.upload-error p {
  color: #c00;
  font-weight: bold;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-image {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.btn-image:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Visualización de imagen en pantalla completa */
.image-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-fullscreen-container {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-fullscreen {
  width: auto;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.btn-close-fullscreen {
  position: absolute;
  top: -20px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-close-fullscreen:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #545b62;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover {
  background: #1e7e34;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

/* Footer Styles */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.activity-image-thumbnail {
  cursor: pointer;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-image-thumbnail:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Activity Debug Panel */
.activity-debug-panel {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  z-index: 9999;
  max-width: 280px;
  font-family: 'Courier New', monospace;
  border: 1px solid #ff4444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  font-size: 12px;
}

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

.debug-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.debug-info strong {
  color: #ffaa00;
  margin-right: 8px;
}

.debug-info span {
  color: #00ff00;
  font-weight: bold;
}

.debug-actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
}

.debug-btn {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.debug-btn:hover {
  background: #ff6666;
}

.debug-btn:active {
  background: #cc2222;
}

/* Activity Result Styles */
.activity-result {
  position: relative;
  padding: 2rem;
  padding-bottom: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  width: 100%;
}

.activity-result-content {
  margin-bottom: 2rem;
  max-width: 100%;
}

.activity-result-content img {
  max-width: 100%;
  height: 70vh;
  border-radius: 8px;
  margin: 1rem 0;
  object-fit: contain;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.result-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  min-width: 280px;
}

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

.stat-label {
  font-weight: bold;
  color: #333;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.result-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 45%, #ffffff 100%);
  border-top: 1px solid #dee2e6;
  z-index: 2;
}

.result-actions .btn {
  min-width: 120px;
  padding: 0.75rem 1.5rem;
}

/* Pending Review Styles */
.pending-review .result-icon {
  color: #ffc107;
}

.pending-review .result-title {
  color: #ffc107;
}

.pending-review .result-message {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ffeaa7;
  margin-top: 1rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .activity-runner-header {
    padding: 0.5rem;
  }
  
  .activity-info {
    gap: 0.5rem;
  }
  
  .activity-icon {
    width: 32px;
    height: 32px;
  }
  
  .activity-details h2 {
    font-size: 1rem;
  }
  
  .activity-meta {
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  
  .activity-runner-content {
    padding: 0.5rem;
  }
  
  .camera-controls {
    bottom: 0.5rem;
  }
  
  .capture-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .result-icon {
    font-size: 3rem;
  }
  
  .result-title {
    font-size: 1.3rem;
  }
  
  .result-message {
    font-size: 1rem;
  }
  
  .result-stats {
    min-width: auto;
    width: 100%;
  }
  
  .result-actions {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
  }
  
  .result-actions .btn {
    width: 100%;
  }
}
/* src/styles/sessionControl.css */

.session-control-page {
	padding: 20px;
	max-width: 800px;
	margin: 0 auto;
	color: #000;
}

.session-control-header {
	text-align: center;
	margin-bottom: 30px;
}

.session-control-header h1 {
	font-size: 2rem;
	margin-bottom: 10px;
	color: #000;
}

.session-control-header p {
	font-size: 1.1rem;
	opacity: 0.9;
}

.session-control-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.session-info-section,
.associated-teams-section {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 20px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-info-section h2,
.associated-teams-section h2 {
	margin-bottom: 15px;
	color: var(--primary-color);
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.realtime-indicator {
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--primary-color);
	border-radius: 50%;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 var(--primary-color-alpha-8);
	}
	70% {
		box-shadow: 0 0 0 10px var(--primary-color-alpha-05);
	}
	100% {
		box-shadow: 0 0 0 0 var(--primary-color-alpha-05);
	}
}

.session-info {
	margin-bottom: 20px;
}

.session-info p {
	margin-bottom: 8px;
	font-size: 1rem;
}

.session-info strong {
	color: var(--primary-color);
}

.btn-clear-session {
	background: linear-gradient(135deg, var(--primary-color), var(--primary-color-darker));
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px var(--primary-color-alpha-3);
}

.btn-clear-session:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px var(--primary-color-alpha-5);
}

.btn-clear-session:active {
	transform: translateY(0);
}

.teams-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.team-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	padding: 15px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.team-name {
	font-weight: bold;
	font-size: 1.1rem;
	color: var(--primary-color);
}

.team-device {
	font-size: 0.9rem;
	opacity: 0.7;
}

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

.btn-refresh-team {
        background: linear-gradient(135deg, #2196F3, #1976D2);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.btn-refresh-team:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.5);
}

.btn-refresh-team:active {
        transform: translateY(0);
}

.btn-disassociate {
        background: linear-gradient(135deg, var(--primary-color-alpha-8), var(--primary-color));
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px var(--primary-color-alpha-3);
}

.btn-disassociate:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px var(--primary-color-alpha-5);
}

.btn-disassociate:active {
        transform: translateY(0);
}.no-teams {
	text-align: center;
	font-style: italic;
	opacity: 0.7;
	padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
        .session-control-page {
                padding: 15px;
        }

        .team-item {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
        }

        .team-actions {
                align-self: flex-start;
        }
}/* TeamConnectionStatus.css */

.team-connection-status {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background-color: #f8f9fa;
}

.team-connection-status.compact {
  padding: 4px 8px;
  min-width: auto;
}

/* Estados de conexión */
.team-connection-status.online {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.team-connection-status.offline {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.team-connection-status.loading {
  background-color: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

/* Indicador de estado */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.team-connection-status.compact .status-indicator {
  margin-right: 4px;
}

.online .status-indicator {
  background-color: #28a745;
  box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.offline .status-indicator {
  background-color: #dc3545;
}

.loading .status-indicator {
  background-color: #ffc107;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

/* Información del estado */
.status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-label {
  font-weight: 600;
  color: inherit;
}

.status-text {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.9;
}

/* Información de última vez visto */
.last-seen-info {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 16px;
}

/* Versión compacta */
.team-connection-status.compact .status-info {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.team-connection-status.compact .team-label {
  font-size: 12px;
}

.team-connection-status.compact .team-id {
  font-size: 12px;
  font-weight: 600;
}

/* Indicador especial para el equipo actual */
.team-connection-status .status-text:contains("(tú)") {
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .team-connection-status {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .team-label {
    font-size: 12px;
  }
  
  .status-text {
    font-size: 11px;
  }
  
  .last-seen-info {
    font-size: 10px;
  }
}

/* Tema oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  .team-connection-status {
    background-color: #343a40;
  }
  
  .team-connection-status.online {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
  }
  
  .team-connection-status.offline {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
  }
}
/* src/styles/valorate.css */

/* Página de valoración */
.valorate-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.error-container {
  text-align: center;
  padding: 3rem 1rem;
}

.error-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-content p {
  color: #666;
  margin-bottom: 2rem;
}

.no-pending-activities {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  margin: 20px;
}

.no-pending-activities .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
  filter: grayscale(0);
}

.no-pending-activities h3 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.no-pending-activities p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

.valorate-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: #444;
  margin-top: 5px;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.activity-name {
  margin: 0;
  color: #444;
  font-size: 1.2rem;
  font-weight: 600;
}

.activity-type {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.activity-team {
  margin-bottom: 15px;
}

.team-label {
  color: #444;
  margin-right: 8px;
}

.team-name {
  color: #444;
  font-weight: 500;
}

.activity-details {
  display: flex;
  gap: 30px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.8rem;
  color: #444;
}

.detail-value {
  color: #444;
  font-weight: 500;
}

.activity-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.activity-item {
  position: relative;
}

/* Componente ActivityValorate */
.valorate-content {
  padding: 2rem;
  background: transparent;
}

.question-content,
.media-content,
.generic-content {
  background: rgba(248, 249, 250, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-content h4,
.media-content h4,
.generic-content h4 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.question-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.question-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.question-text,
.answer-text {
  margin-bottom: 15px;
}

.question-text p,
.answer-text p {
  margin: 8px 0;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #dee2e6;
}

.team-answer {
  border-left-color: var(--primary-color) !important;
  font-style: italic;
}

.data-preview {
  background: #f1f3f4;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow-y: auto;
}

.media-note {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.photo-preview,
.video-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
}

.photo-preview {
  max-height: 400px;
  object-fit: contain;
}

.video-preview {
  max-height: 400px;
  width: 100%;
}

.valorate-form {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(222, 226, 230, 0.8);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section {
  margin-bottom: 25px;
}

.form-section h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.form-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.points-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.points-input-group label {
  font-weight: 600;
  color: #333;
}

.points-input {
  width: 200px;
  padding: 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.points-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.suggested-points {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-width: 120px;
}

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

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
  background: #545b62;
  border-color: #545b62;
}

/* Responsive */
@media (max-width: 768px) {
  .valorate-container {
    margin: 0 1rem;
  }
  
  .activity-details {
    flex-direction: column;
    gap: 15px;
  }
  
  .valorate-content {
    padding: 1rem;
  }
  
  .question-content,
  .media-content,
  .generic-content,
  .valorate-form {
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .photo-preview,
  .video-preview {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .valorate-container {
    margin: 0 0.5rem;
  }
  
  .valorate-content {
    padding: 0.75rem;
  }
  
  .question-content,
  .media-content,
  .generic-content,
  .valorate-form {
    padding: 1rem;
  }
}
/* Estilos para PhotoManagementPage */
.photo-management-container {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.no-photo-activities {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.no-photo-activities .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-photo-activities h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.photo-management-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.photo-management-stats .stat-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-management-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.photo-management-stats .stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.photo-activity-item {
  border-left: 4px solid #007bff;
}

.photo-activity-item.status-reviewed {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.05);
}

.photo-activity-item.status-pending {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.05);
}

.activity-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.activity-status.status-reviewed {
  background: #d4edda;
  color: #155724;
}

.activity-status.status-pending {
  background: #fff3cd;
  color: #856404;
}

.activity-preview {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid #007bff;
}

.preview-indicator {
  font-size: 0.85rem;
  color: #0056b3;
  font-weight: 500;
}

/* Estilos para ActivityValorate cuando ya está valorada */
.already-valued-info {
  text-align: center;
  padding: 2rem;
  background: rgba(40, 167, 69, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-badge.valued {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 20px;
  font-weight: 600;
  margin: 1rem 0;
}

.valued-actions {
  margin-top: 1.5rem;
}

.review-note {
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .photo-management-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .photo-management-stats .stat-item {
    min-width: auto;
  }
  
  .photo-management-container {
    padding: 0.5rem;
  }
  
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .activity-status {
    align-self: flex-start;
  }
}
/* src/styles/teamActivities.css */

/* Contenedor principal */
.team-activities-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
}

/* Estados vacíos */
.no-teams,
.no-activities {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  margin: 20px;
}

.no-teams .empty-icon,
.no-activities .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-teams h3,
.no-activities h3 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.no-teams p,
.no-activities p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* Estadísticas del equipo */
.team-activities-stats {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: #444;
  margin-top: 5px;
}

/* Lista de equipos */
.teams-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.team-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    border: 1px solid var(--primary-color);
}

.team-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

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

.team-name {
  margin: 0;
  color: #444;
  font-size: 1.3rem;
  font-weight: 600;
}

.team-stats {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.team-stats .stat-item {
  min-width: auto;
}

.team-stats .stat-number {
  font-size: 1.2rem;
}

.team-stats .stat-label {
  font-size: 0.75rem;
}

.team-details {
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.detail-value {
  color: #444;
  font-weight: 500;
}

.team-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Lista de actividades */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  position: relative;
}

.activity-item.activity-clickable {
  cursor: pointer;
}

.activity-item.activity-clickable:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.activity-name {
  margin: 0;
  color: #444;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  margin-right: 15px;
}

.activity-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.activity-status {
  background: #6c757d;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.activity-status.status-not-started {
  background: #6c757d;
}

.activity-status.status-completed {
  background: #28a745;
}

.activity-status.status-pending {
  background: #ffc107;
  color: #856404;
}

.activity-status.status-reviewed {
  background: #17a2b8;
}

.activity-type {
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.activity-details {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.activity-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.send-activity-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.send-activity-btn:hover {
  background: var(--primary-color-darker, #0056b3);
  transform: translateY(-1px);
}

.activity-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Actividad eliminada */
.activity-item.deleted .activity-name {
  text-decoration: line-through;
  opacity: 0.6;
  color: #999;
}

.activity-item.deleted {
  opacity: 0.7;
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
}

.activity-item.deleted:hover {
  background: rgba(220, 53, 69, 0.15);
}

.delete-activity-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.delete-activity-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.restore-activity-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.restore-activity-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

/* Error container */
.error-container {
  text-align: center;
  padding: 3rem 1rem;
}

.error-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-content h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-content p {
  color: #666;
  margin-bottom: 2rem;
}

/* Estilos para el estado de la aplicación */
.app-state.online {
  color: #28a745;
  font-weight: 500;
  font-style: italic;
}

.app-state.offline {
  color: #dc3545;
  font-weight: 500;
  font-style: italic;
}

.detail-item .app-state {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .team-activities-container {
    margin: 0 1rem;
  }
  
  .team-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .team-stats {
    gap: 10px;
  }
  
  .activity-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .activity-actions {
    justify-content: flex-start;
  }
  
  .activity-details {
    gap: 15px;
  }
  
  .activity-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .team-activities-stats {
    gap: 15px;
  }
}
/* styles/initPage.css */

.init-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--init-primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  padding: 20px;
}

.init-container {
  max-width: 500px;
  width: 100%;
}

.init-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.welcome-section,
.install-section {
  padding: 40px 30px;
  text-align: center;
}

.event-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.event-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--init-primary-light, rgba(255, 255, 255, 0.2));
  border: 3px solid var(--init-primary-dark, rgba(0, 0, 0, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.event-icon img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.event-icon-fallback {
  font-size: 32px;
  font-weight: 700;
  color: var(--init-primary-dark, #333);
}

.event-title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.event-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.5);
}

.event-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--init-primary-dark, #333);
}

.welcome-icon,
.install-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.welcome-icon {
  background: var(--init-primary-gradient, linear-gradient(135deg, #4CAF50, #45a049));
}

.install-icon {
  background: var(--init-primary-gradient, linear-gradient(135deg, #2196F3, #1976D2));
}

.welcome-icon svg,
.install-icon svg {
  width: 40px;
  height: 40px;
}

.init-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.init-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
}

.instructions-list {
  text-align: left;
  margin: 30px 0;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--init-primary, #2196F3);
}

.instruction-number {
  background: var(--init-primary, #2196F3);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  margin-right: 15px;
  flex-shrink: 0;
}

.instruction-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

.action-buttons {
  margin-top: 30px;
}

.continue-button {
  background: var(--init-primary-gradient, linear-gradient(135deg, #667eea, #764ba2));
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.continue-button:active {
  transform: translateY(0);
}

.continue-button.primary {
  background: var(--init-primary, linear-gradient(135deg, #4CAF50, #45a049));
}

.install-hint {
  margin-top: 20px;
  padding: 15px;
  background: #f1f3f4;
  border-radius: 8px;
}

.install-hint small {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
  .init-page {
    padding: 15px;
  }

  .event-badge {
    gap: 12px;
  }

  .event-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .event-title {
    font-size: 18px;
  }

  .welcome-section,
  .install-section {
    padding: 30px 20px;
  }

  .init-content h1 {
    font-size: 24px;
  }

  .continue-button {
    width: 100%;
    padding: 18px 20px;
  }

  .instruction-item {
    padding: 12px;
  }

  .instruction-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .event-badge {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .event-title-group {
    align-items: center;
  }

  .welcome-icon,
  .install-icon {
    width: 60px;
    height: 60px;
  }

  .welcome-icon svg,
  .install-icon svg {
    width: 30px;
    height: 30px;
  }

  .init-content h1 {
    font-size: 22px;
  }

  .init-content p {
    font-size: 15px;
  }
}
/* Variables CSS para el tema de colores */
:root {
  /* Color principal por defecto */
  --primary-color: rgb(192, 0, 31);
  --primary-color-values: 192, 0, 31;
  
  /* Variaciones del color principal */
  --primary-color-alpha-05: rgba(192, 0, 31, 0.05);
  --primary-color-alpha-1: rgba(192, 0, 31, 0.1);
  --primary-color-alpha-2: rgba(192, 0, 31, 0.2);
  --primary-color-alpha-3: rgba(192, 0, 31, 0.3);
  --primary-color-alpha-5: rgba(192, 0, 31, 0.5);
  --primary-color-alpha-8: rgba(192, 0, 31, 0.8);
  --primary-color-alpha-9: rgba(192, 0, 31, 0.9);
  
  /* Color más oscuro para hover */
  --primary-color-darker: rgb(173, 0, 28);
}

* {
  font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  font-size: 14px;
}

.container {
	position: relative;
	width: 100dvw;
	height: 100dvh;
	overflow: hidden;
}

.background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.5);
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.4rem;
  box-sizing: border-box;
}

.content.content-no-title {
    padding-top: 18rem;
    padding-bottom: 18rem;
}

.logo {
	width: 10rem;
	height: 10rem;
  margin-bottom: 5rem;
}
  
.welcome-title {
	font-size: 4rem;
	color: #555;
	margin: 0;
}

.welcome-subtitle {
	font-size: 2rem;
	color: #555;
	text-align: center;
	width: 70%;
	margin: 2rem 0 4rem;
}

.container.main > .content > .title {
	font-size: 3rem;
	color: #333;
	margin: 1rem 0;
}

.button {
	background-color: #E3E3E3;
	border: none;
	border-radius: 1rem;
	padding: 1.25rem 2.5rem;
	font-size: 1.5rem;
	cursor: pointer;
}

.version {
	position: absolute;
	bottom: 1.25rem;
	right: 1.25rem;
	font-size: 1rem;
}

.content-header {
    display: flex;
    flex-direction: column;
    width: max-content;
    margin: auto;
    text-align: center;
    margin-top: 2dvh;
    color: var(--primary-color);
    gap: 1rem;
    margin-bottom: 2rem;
}

.content-header .subtitle {
  border-top: .25rem solid;
  padding: 1rem;
  font-size: 1.2rem;
}

.listing {
    display: flex;
    flex-direction: column;
}

.listing-item {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 2rem;
    justify-content: flex-start;
    border-bottom: .5rem solid #DDD;
    padding-bottom: 1rem;
    padding-top: 1rem;
    /* ✅ OPTIMIZACIÓN: Transición suave al cambiar el orden */
    transition: order 0.3s ease;
}

.listing-item img {
    width: 8rem;
}

/* ✅ Pestañas de ordenamiento de chats */
.chat-sort-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
    position: fixed;
    width: 25%;
    background: white;
    z-index: 99999;
    margin-left: auto;
    margin-right: auto;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
}

.sort-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.chat-sort-tabs ~ .listing {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.sort-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.content-body {
    width: 80vw;
    max-width: 60rem;
    max-height: calc(98dvh - 10rem);
    overflow: auto;
}

.eventLabelDate {
    display: flex;
    margin-top: .8rem;
    margin-bottom: .5rem;
}

.eventLabelDate img {
    width: 1rem;
    margin-right: .5rem;
}

p.eventDate {
    margin-left: 1rem;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    text-align: center;
}

h3.grid-item-name {
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: #666;
}

.grid-item {
    margin: auto;
}

img.grid-item-img {
    width: 11rem;
}

button.back-button svg {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    fill: var(--primary-color);
}

button.back-button {
    background: none;
    border: none;
    padding: 1rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

img.team-preview,
img.team-event-logo {
  object-fit: cover;
  margin: auto;
  display: block;
  max-width: 240px;
}

img.team-detail-icon {
    width: 10rem;
    margin: auto;
    display: block;
}

img.team-default-icon {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    margin: auto;
    display: block;
    opacity: 0.7;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.team-photo-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.camera-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.camera-overlay:hover {
    background: rgba(255, 255, 255, 1);
}

.camera-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.5rem;
}

.camera-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

h2.team-title {
    text-align: center;
    margin: 5rem 0;
    font-size: 3rem;
    font-weight: 400;
}

button.play-button {
    background: var(--primary-color);
    border: 0;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
    font-size: 2rem;
    color: white;
    margin-top: 6rem;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

button.play-button > img {
    width: 3.5rem;
}

.content.content-no-title:has( > .team-detail) {
    padding-top: 10rem;
}

.map-container {
    height: calc(100dvh - 10rem);
    position: relative; 
}

body:has(.event-header.collapsed) .map-container { 
    height: calc(100dvh - 4rem);
}

/* Ajustes para cuando hay barra de tareas del administrador */
body:has(.admin-taskbar) .map-container {
    height: calc(100dvh - 10rem - 100px);
}

body:has(.event-header.collapsed):has(.admin-taskbar) .map-container {
    height: calc(100dvh - 4rem - 50px);
}

.event-page {
    position: relative;
}

.event-page .event-header .header-content {
    display: flex;
    height: 10rem;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary-color);
    align-items: center;
}

.event-page .event-header .header-content img.team-photo, .event-page .event-header .header-content .event-logo {
    width: 100%;
    
    height: 100%;
    object-fit: cover;
}

.event-page .event-header .header-content img.team-photo {
    border-radius: 1rem;
    overflow: hidden;
}

header.event-header {
    position: relative;
}

button.collapse-button {
    position: absolute;
    z-index: 99999;
    bottom: -16px;
    right: calc(50% - 16px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button.collapse-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

button.collapse-button .collapse-icon {
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

h1.event-title {
    text-align: center;
    font-size: 1.5rem;
}

h2.team-name {
    font-size: 1.2rem;
}

.titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    color: #666;
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 24px;
}

img.brand-icon {
    width: 2rem;
    opacity: 0.5;
    margin-bottom: 11px;
}

.logo-container {
    width: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}


header.event-header.collapsed .header-content {
    height: 4rem;
}

header.event-header.collapsed .logo-container {
    width: auto;
    padding: .2rem;
    max-width: 5rem;
    max-height: 3rem;
}

header.event-header.collapsed .logo-container img {
    object-fit: cover;
}

header.event-header.collapsed .titles {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

header.event-header.collapsed img.brand-icon {
    width: 1.5rem;
    margin-right: .5rem;
    margin-bottom: 0;
}

header.event-header.collapsed h1.event-title {
    font-size: 1.3rem;
}

header.event-header.collapsed h2.team-name {
    font-size: 1rem;
}

header.event-header {
    z-index: 1;
}

.collapsed button.collapse-button {
    transform: scale(0.75);
}

/* Estilos para iconos de actividades personalizados */
.custom-activity-icon {
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.default-activity-icon {
    border: none;
}

/* Estilos del componente Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  pointer-events: none;
}

.popup-overlay-active {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.popup-container {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  padding: 20px;
  margin: 20px;
  overflow: auto;
}

.popup-layout-top {
  align-self: flex-start;
  margin-top: 20px;
}

.popup-layout-center {
  align-self: center;
}

.popup-layout-bottom {
  align-self: flex-end;
  margin-bottom: 20px;
}

.popup-close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.popup-close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.popup-close-button img {
  width: 16px;
  height: 16px;
}

.popup-header {
  margin-bottom: 15px;
  padding-right: 30px;
}

.popup-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
  color: #333;
}

.popup-body {
  margin-bottom: 20px;
}

.popup-text {
  margin: 0;
  line-height: 1.5;
  color: #666;
}

.popup-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.popup-button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.popup-button:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.popup-button:active {
  background: #dee2e6;
}

.team-info-popup {
    width: 100%;
    height: calc(100vh - 220px);
}

.team-info-popup:has(img.team-photo-preview) {
    max-width: 100%;
}

.team-info-popup img.team-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos del sistema de notificaciones */
.notification-container {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: 90%;
}

.notification-container-top {
  top: 20px;
  right: 20px;
}

.notification-container-center {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.notification-container-bottom {
  bottom: 20px;
  right: 20px;
}

.notification {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  pointer-events: auto;
  animation: notification-slide-in 0.3s ease-out;
  transition: all 0.3s ease;
  border-left: 4px solid #ddd;
}

.notification:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.notification-clickable:hover {
  transform: translateX(-6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.notification-clickable:active {
  transform: translateX(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.notification-info {
  border-left-color: #007bff;
}

.notification-success {
  border-left-color: #28a745;
}

.notification-warning {
  border-left-color: #ffc107;
}

.notification-error {
  border-left-color: #dc3545;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-body {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  word-wrap: break-word;
}

.notification-close-button {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

.notification-close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.notification-close-button img {
  width: 14px;
  height: 14px;
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.notification-progress-bar {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  animation: notification-progress linear forwards;
  transform-origin: left;
}

.notification-info .notification-progress-bar {
  background-color: #007bff;
}

.notification-success .notification-progress-bar {
  background-color: #28a745;
}

.notification-warning .notification-progress-bar {
  background-color: #ffc107;
}

.notification-error .notification-progress-bar {
  background-color: #dc3545;
}

/* Animaciones */
@keyframes notification-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Admin Taskbar Styles */
.admin-taskbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 2px solid var(--primary-color);
  padding: 15px 20px;
  z-index: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-taskbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  background: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.admin-label {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
}

.admin-tools {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  justify-content: space-around;
}

.admin-tool-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* Necesario para posicionar la burbuja */
}

.admin-tool-button:hover {
  transform: translateY(-1px);
}

.admin-tool-button:active {
  transform: translateY(0);
}

/* Burbuja de notificación para botones de admin */
.admin-tool-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  border: 2px solid white;
  animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
  0%, 70%, 100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.1);
  }
}

.admin-tool-button-active {
  border: 3px solid #d32f2f;
  border-radius: 8px;
  background: rgba(211, 47, 47, 0.1);
  padding: 4px;
}

.admin-tool-button-active:hover {
  background: rgba(211, 47, 47, 0.2);
  transform: translateY(-1px);
}

.admin-tool-button img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.admin-tools-placeholder {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Event Footer Styles */
.event-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-color);
  padding: 10px 20px;
  z-index: 1001;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: padding 0.3s ease;
}

/* Footer colapsado */
.event-footer.collapsed {
  padding: 5px 15px;
}

.event-footer.collapsed .footer-controls {
  max-width: 300px;
}

.event-footer.collapsed .footer-control {
  padding: 4px;
  min-width: 50px;
}

.event-footer.collapsed .control-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}

.event-footer.collapsed .control-label {
  font-size: 0.7rem;
}

/* Ajustes específicos para el control de posición cuando está colapsado */
.event-footer.collapsed .position-control svg {
  width: 50px;
  height: 50px;
}

.event-footer.collapsed .position-control .position-background {
  width: 25px;
  height: 25px;
  top: calc(50% - 12.5px);
  left: calc(50% - 12.5px);
}

.footer-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  transition: max-width 0.3s ease;
}

/* Share Team Button Styles */
.share-team-button {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

.share-team-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.share-team-button:active {
  transform: translateY(0);
}

.share-team-button .share-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Hacer el icono blanco */
}

.share-team-button .share-error {
  position: absolute;
  top: -40px;
  right: 0;
  background: #ff4444;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  max-width: 200px;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Team Viewer Styles */
.viewer-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

/* Overlay para el botón de inicio */
.viewer-start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 200;
}

.start-content {
  max-width: 400px;
  padding: 2rem;
}

.start-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.start-button {
  background: var(--primary-color, #c0001f);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(192, 0, 31, 0.3);
}

.start-button:hover {
  background: #a00018;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(192, 0, 31, 0.4);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading overlay que se muestra encima del video */
.viewer-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 100;
}

.viewer-loading, 
.viewer-error {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.loading-content,
.error-content {
  max-width: 400px;
  padding: 2rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.reconnect-delay {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
  font-style: italic;
}

.loading-content h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.loading-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0;
}

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

.main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.main-video.hidden,
.camera-video.hidden {
  opacity: 0;
  pointer-events: none;
}

.camera-video {
  bottom: 20px;
  right: 20px;
  width: 200px;
  height: 150px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  background: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.viewer-info {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  z-index: 10;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.team-label {
  opacity: 0.8;
}

.team-id {
  font-weight: bold;
  color: var(--primary-color);
}

.retry-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}

.retry-button:hover {
  opacity: 0.9;
}

/* Responsive para móviles */
@media (max-width: 768px) {

  .camera-video {
    width: 120px;
    height: 90px;
    bottom: 10px;
    right: 10px;
  }
  
  .viewer-info {
    top: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.footer-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, padding 0.3s ease, min-width 0.3s ease;
  min-width: 60px;
}

.footer-control:hover {
  transform: translateY(-2px);
}

.footer-control:active {
  transform: translateY(0);
}

.control-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  transition: width 0.3s ease, height 0.3s ease, margin-bottom 0.3s ease;
}

.control-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
}

/* Posición control especial */
.position-control .position-background {
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}

.position-control svg {
  transition: width 0.3s ease, height 0.3s ease;
}

.position-number {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.admin-icon {
  font-size: 1.2rem;
}

.timer-display {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

/* Notification Bubble Styles */
.notification-bubble {
  position: absolute;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.7rem;
  z-index: 10;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  padding: 0 2px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-bubble-small {
  font-size: 0.6rem;
  min-width: 16px;
  height: 16px;
  top: -4px;
  right: -4px;
}

.notification-bubble-large {
  font-size: 0.8rem;
  min-width: 20px;
  height: 20px;
  top: -6px;
  right: -6px;
}

/* Para el footer, posicionamiento específico */
.footer-control {
  position: relative;
}

.footer-control .notification-bubble {
  top: 5px;
  right: 5px;
}

/* Chat Page Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
  background: var(--primary-color);
  color: white;
  padding: 15px;
  text-align: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.team-info {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.message {
  margin-bottom: 15px;
  max-width: 70%;
}

.message.admin.received {
  align-self: flex-start;
}

.message.team,
.message.admin:not(.received) {
  align-self: flex-end;
  margin-left: auto;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #666;
}

.sender {
  font-weight: bold;
}

.message-text {
  padding: 10px;
  word-wrap: break-word;
}

.message.admin .message-text {
  background: #e3f2fd;
  border-color: #2196f3;
}

.message.team .message-text {
  background: #f3e5f5;
  border-color: var(--primary-color);
}

.chat-input {
  display: flex;
  padding: 15px;
  background: white;
  border-top: 1px solid #ddd;
  gap: 10px;
}

.chat-input textarea {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  font-family: inherit;
}

.send-button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
}

.send-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Ranking Page Styles */
.ranking-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.current-team-position {
  background: linear-gradient(135deg, var(--primary-color), #000);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.current-team-position h3 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
}

.position-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.position-badge .position-number {
  font-size: 2rem;
  font-weight: bold;
}

.position-badge .team-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFF;
}

.position-badge .points {
  font-size: 1rem;
  opacity: 0.9;
}

.ranking-list {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-list h3 {
  margin: 0 0 20px 0;
  color: var(--primary-color);
  text-align: center;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-rank-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.team-rank-item.current-team {
  border-color: var(--primary-color);
  background: var(--primary-color-alpha-1);
}

.team-rank-item .position {
  font-size: 1.2rem;
  font-weight: bold;
  width: 50px;
  text-align: center;
}

.team-rank-item .team-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-rank-item .team-name {
  font-weight: bold;
  color: #333;
}

.status.online {
  color: #28a745;
  font-size: 0.8rem;
}

.team-rank-item .points {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.no-teams {
  text-align: center;
  color: #666;
  padding: 40px;
}

.admin-stats {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-stats h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: bold;
  color: var(--primary-color);
}

/* Gadgets Page Styles */
.gadgets-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.gadgets-intro {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 32px;
}

.gadgets-category {
  margin-bottom: 30px;
}

.category-title {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: bold;
}

.gadgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.gadget-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gadget-item.available {
  border-color: #28a745;
}

.gadget-item.locked {
  opacity: 0.6;
  border-color: #dc3545;
}

.gadget-item:hover.available {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gadget-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
}

.gadget-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #333;
}

.gadget-description {
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.requirement {
  color: #dc3545;
  font-weight: bold;
}

.gadget-status {
  text-align: right;
  margin-top: 10px;
}

.status-available {
  color: #28a745;
  font-weight: bold;
  font-size: 0.9rem;
}

.status-locked {
  color: #dc3545;
  font-weight: bold;
  font-size: 0.9rem;
}

.admin-controls {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-controls h4 {
  color: var(--primary-color);
  margin: 0 0 10px 0;
}

.admin-controls p {
  color: #666;
  margin-bottom: 15px;
}

/* === CHAT STYLES === */

/* Chat List Styles - integrados con la arquitectura existente */
.chat-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
}

.chat-icon {
  font-size: 3rem;
}

.chat-type {
  color: var(--primary-color-alpha-8);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.chat-description {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Chat Last Message Styles */
.chat-last-message {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.last-message-text {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-message-time {
  color: #999;
  font-size: 0.8rem;
  align-self: flex-end;
}

/* Chat Container Styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 24rem);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Messages Area */
.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.8);
}

.empty-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
}

.empty-chat .empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color-alpha-5);
}

.empty-chat p {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #666;
}

.empty-chat small {
  font-size: 1rem;
  color: #999;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message Styles */
.message {
  display: flex;
  margin-bottom: 1rem;
}

.message.my-message {
  justify-content: flex-end;
  min-width: 100%;
}

.message.other-message {
  justify-content: flex-start;
  min-width: 100%;
}

.message-content {
  max-width: 70%;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  position: relative;
}

.my-message .message-content {
  background: var(--primary-color-alpha-9);
  color: white;
  border-bottom-right-radius: 0.5rem;
}

.other-message .message-content {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  border-bottom-left-radius: 0.5rem;
}

.message-sender {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary-color-alpha-8);
}

.my-message .message-sender {
  color: rgba(255, 255, 255, 0.9);
}

.message-text {
  font-size: 1.1rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  opacity: 0.7;
}

/* Chat Input */
.chat-input-form {
  padding: 1.5rem 2rem;
  background: white;
  border-top: 1px solid #ddd;
}

.input-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  border-radius: 2rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
}

.message-input {
  flex: 1;
  background: none;
  border: none;
  color: #333;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  resize: none;
  font-family: inherit;
}

.message-input::placeholder {
  color: #999;
}

.message-input:focus {
  outline: none;
  background: var(--primary-color-alpha-05);
}

.send-button {
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 1.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.send-button:hover:not(:disabled) {
  background: var(--primary-color-alpha-8);
  transform: scale(1.05);
}

.send-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Loading and Error States */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #666;
}

.loading-spinner {
  width: 4rem;
  height: 4rem;
  border: 3px solid var(--primary-color-alpha-3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.jigsaw-puzzle {
  width: 100%;
  height: 100%;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  border: 2px solid var(--primary-color);
}

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

.error-container {
  padding: 4rem 2rem;
  text-align: center;
  color: #666;
}

.error-text {
  color: #dc3545;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.retry-btn {
  background: var(--primary-color-alpha-1);
  border: 1px solid var(--primary-color-alpha-3);
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.retry-btn:hover {
  background: var(--primary-color-alpha-2);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  color: #666;
}

.empty-state .empty-icon {
  font-size: 6rem;
  margin-bottom: 2rem;
  color: var(--primary-color-alpha-3);
}

.empty-state .empty-text {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #666;
}

/* Responsive Chat Styles */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 20rem);
  }
  
  .message-content {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
  }
  
  .chat-messages {
    padding: 1rem;
  }
  
  .chat-input-form {
    padding: 1rem;
  }
  
  .input-container {
    padding: 0.3rem;
  }
  
  .message-input {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
  
  .send-button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .chat-container {
    height: calc(100vh - 18rem);
  }
  
  .empty-chat .empty-icon {
    font-size: 3rem;
  }
  
  .empty-chat p {
    font-size: 1.2rem;
  }
  
  .message-text {
    font-size: 1rem;
  }
}
img.photo-preview {
  width: 100%;
  margin-top: 8px;
}

/* Estilos para el botón de compartir en el footer */
.footer-control.share-control {
  position: relative;
}

.sharing-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #28a745;
  border-radius: 50%;
  border: 2px solid white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

button.share-control .control-icon {
    width: 25px;
    height: 25px;
    margin:0;
    /*Color wite*/
    filter: brightness(0) invert(1);
    transition: transform 0.2s;
}

button.share-control {
  padding: 6px;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  border-radius: 50%;
  transition: background-color 0.2s, transform 0.2s;
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.content.content-no-title {
    max-height: calc(100vh - 0px);
    overflow-y: auto;
}

:focus-visible {
    outline: none;
}

span.stat-value {
    margin-top: 6px;
}

/* Estilos para el popup de información del equipo */
.team-info-popup {
    text-align: center;
    padding: 1rem;
    max-width: 300px;
    font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.team-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.team-stats p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.team-stats strong {
    color: var(--primary-color);
}

.activity-description p {
    line-height: 24px;
}

/* Estilos para popups de actividades */
.popup-activity-notification {
    --popup-bg: #f8f9fa;
    --popup-border: #007bff;
}

.popup-activity-forced {
    --popup-bg: #fff3cd;
    --popup-border: #856404;
}

.popup-activity-forced .popup-title {
    color: #856404 !important;
    font-weight: bold;
}

.popup-activity-forced .popup-text {
    color: #856404 !important;
}

.popup-send-activity-options {
    --popup-bg: #f8f9fa;
    --popup-border: #6c757d;
}

.popup-send-activity-options .popup-text {
    white-space: pre-line;
    text-align: left;
    line-height: 1.5;
}

/* Estilos para el cuadro informativo de equipo ya asignado */
.team-already-assigned {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 20px;
}

.team-already-assigned .info-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-already-assigned .info-box h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.team-already-assigned .info-box p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1em;
}

.team-already-assigned .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.team-already-assigned .btn-primary:hover {
    background-color: var(--primary-color-darker);
}

.team-already-assigned .btn-primary:active {
    transform: translateY(1px);
}

/* Estilos para la página 404 / No encontrado */
.not-found-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.not-found-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.not-found-code {
    font-size: 4em;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.not-found-title {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

.not-found-message,
.not-found-suggestion {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1em;
}

.not-found-suggestion {
    font-style: italic;
    color: #666;
}

.btn-status {
    z-index: 9999;
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 0.4;
}

.btn-status svg{
  width: 24px;
  height: 24px;
}

/* Device Not Assigned Page */
.device-not-assigned {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.error-container {
    max-width: 500px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-icon {
    margin-bottom: 20px;
}

.error-symbol {
    font-size: 4rem;
    display: block;
    opacity: 0.8;
}

.error-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.error-message {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.error-details {
    background: rgba(var(--primary-color-values), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.error-details p {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1rem;
}

.error-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-details li {
    color: #555;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.error-details li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.return-home-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color-values), 0.3);
    margin-top: 20px;
}

.return-home-button:hover {
    background: var(--primary-color-darker);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-values), 0.4);
}

.return-home-button:active {
    transform: translateY(0);
}

/* ========== SYSTEM STATUS PAGE STYLES ========== */

.system-status-refresh {
    margin: 1rem 0 2rem 0;
    text-align: center;
}

.system-status-refresh .button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: bold;
    transition: all 0.2s ease;
    cursor: pointer;
}

.system-status-refresh .button:hover:not(:disabled) {
    background-color: var(--primary-color-darker);
}

.system-status-refresh .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.system-status-refresh .button.loading {
    animation: pulse 2s infinite;
}

.system-status-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.system-status-context {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(var(--primary-color-values), 0.1);
}

.context-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .context-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.context-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.context-label {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.context-value {
    color: #333;
    font-size: 0.9rem;
}

.context-value small {
    color: #666;
    font-size: 0.75rem;
}

.context-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    max-width: fit-content;
}

.context-badge.admin {
    background-color: var(--primary-color-alpha-2);
    color: var(--primary-color);
}

.context-badge.team {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(37, 99, 235);
}

.system-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .system-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.status-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 2px solid rgba(var(--primary-color-values), 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--primary-color-values), 0.1);
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    color: #555;
    font-weight: 500;
    flex: 1;
}

.status-value {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #333;
    max-width: 60%;
    text-align: right;
    word-break: break-all;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

.status-badge.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(21, 128, 61);
}

.status-badge.error {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(185, 28, 28);
}

.status-badge.pending {
    background-color: rgba(245, 158, 11, 0.2);
    color: rgb(146, 64, 14);
}

.future-sections {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 2px solid rgba(var(--primary-color-values), 0.1);
    text-align: center;
}

.development-notice {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
}

.development-notice p {
    color: rgb(146, 64, 14);
    margin: 0;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========== STATUS CARD COMPONENTS ========== */

.status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.status-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-card-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.status-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.status-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tamaños de StatusCard */
.status-card-small {
    padding: 1rem;
}

.status-card-small .status-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.status-card-small .status-card-content {
    gap: 0.5rem;
}

.status-card-small .status-card-title {
    font-size: 1rem;
}

.status-card-normal {
    padding: 1.5rem;
}

.status-card-large {
    padding: 2rem;
}

.status-card-span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .status-card-span-2 {
    grid-column: span 1;
  }
}

/* Status Grid - Responsive System */
.status-grid {
    display: grid;
    gap: var(--grid-gap, 1.5rem);
    grid-template-columns: repeat(var(--grid-columns, 1), 1fr);
    width: 100%;
}

.status-grid[data-columns="2"] {
    --grid-columns: 2;
}

.status-grid[data-columns="3"] {
    --grid-columns: 3;
}

.status-grid[data-gap="small"] {
    --grid-gap: 1rem;
}

.status-grid[data-gap="normal"] {
    --grid-gap: 1.5rem;
}

.status-grid[data-gap="large"] {
    --grid-gap: 2rem;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .status-grid[data-columns="2"],
    .status-grid[data-columns="3"] {
        --grid-columns: 1;
        --grid-gap: 1rem;
    }
    .status-grid-3 {
      grid-template-columns: repeat(1, 1fr) !important;
    }
    .status-grid-2 {
      grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .status-card {
        padding: 1rem;
    }
    
    .status-card-small {
        padding: 0.75rem;
    }
}

/* Status Row */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.status-row:last-child {
    border-bottom: none;
}

.status-label {
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.status-value {
    color: var(--text-color);
    font-weight: 400;
    text-align: right;
    word-break: break-word;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.success {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #ffffff;
    border-color: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.status-badge.error {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.status-badge.warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.status-badge.info {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.status-badge.pending {
    background: linear-gradient(135deg, #a1a1aa, #71717a);
    color: #ffffff;
    border-color: #52525b;
    box-shadow: 0 2px 8px rgba(113, 113, 122, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Development Notice */
.development-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* System Status Actions */
.system-status-actions {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.refresh-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.refresh-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.refresh-button.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

.refresh-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.refresh-text {
    font-weight: 500;
}

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

@media (min-width: 768px) {
    .status-grid-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .status-grid-auto {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-grid-1 { grid-template-columns: 1fr; }
.status-grid-2 { grid-template-columns: repeat(2, 1fr); }
.status-grid-3 { grid-template-columns: repeat(3, 1fr); }
.status-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Grid gaps */
.status-grid-gap-small { gap: 0.75rem; }
.status-grid-gap-normal { gap: 1.5rem; }
.status-grid-gap-large { gap: 2rem; }

.activity-check-card .activity-check-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.activity-check-last-run {
  font-size: 0.85rem;
  opacity: 0.8;
}

.activity-check-summary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.activity-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  /* max-height: 320px; */
  overflow-y: auto;
  padding-right: 0.5rem;
}

.activity-check-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-check-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.activity-check-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.activity-check-meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

.activity-check-metadata {
  font-size: 0.8rem;
  opacity: 0.8;
}

.activity-check-errors,
.activity-check-warnings {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
}

.activity-check-errors li {
  color: #b91c1c;
}

.activity-check-warnings li {
  color: #b45309;
}

.activity-check-loading,
.activity-check-empty {
  font-size: 0.85rem;
  opacity: 0.8;
}

.activity-check-error {
  font-size: 0.85rem;
  color: #b91c1c;
  margin: 0;
}

/* Status Badges mejorados */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
    justify-content: center;
}

.status-badge-icon {
    font-size: 0.8rem;
}

.status-badge-success {
    background-color: rgba(34, 197, 94, 0.2);
    color: rgb(21, 128, 61);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: rgb(185, 28, 28);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: rgb(146, 64, 14);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge-pending {
    background-color: rgba(156, 163, 175, 0.2);
    color: rgb(75, 85, 99);
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.status-badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: rgb(37, 99, 235);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Metric Value */
.metric-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    font-family: 'Courier New', monospace;
}

.metric-number {
    font-weight: bold;
    font-size: 1rem;
}

.metric-unit {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

h3.activities-section-title {
    margin: 48px 0 18px;
}

.activity-description ul {
	list-style: none;
	margin-bottom: 48px;
	line-height: 26px;
}

.activities-list {
    border-bottom: 8px solid var(--primary-color);
    padding-bottom: 57px;
}

.activities-list:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.logo-container:has(>.team-photo) {
    padding: 28px;
}

h1.title {
  max-width: 80vw;
}@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima%20Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F, U+1E00-1EFF;
}
/* @font-face {
  font-family: 'Optima';
  src: url('/fonts/OPTIMA.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F, U+1E00-1EFF;
} */
/* @font-face {
  font-family: 'Optima';
  src: url('/fonts/OPTIMA_B.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F, U+1E00-1EFF;
} */
@font-face {
  font-family: 'Optima';
  src: url('/fonts/Optima_Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F, U+1E00-1EFF;
}@media (max-width: 768px) {
  html {
    font-size: 12px;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .admin-tool-button img {
    width: 52px;
    height: 52px;
    object-fit: contain;
  }
}

@media (max-width: 400px) {
  .admin-tool-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
}/* Clear default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Gadget System Styles */

/* Configuration Info */
.gadgets-config-info {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.gadgets-config-info h4 {
  margin: 0 0 12px 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.config-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.config-label {
  color: #666;
  font-weight: 500;
}

.config-value {
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.config-value.enabled {
  background: #d4edda;
  color: #155724;
}

.config-value.disabled {
  background: #f8d7da;
  color: #721c24;
}

/* Gadget Selector Modal */
.gadget-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gadget-selector-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gadget-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: var(--primary-color);
  color: white;
}

.gadget-selector-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.gadget-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.gadget-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gadget-selector-content {
  padding: 20px;
  overflow-y: auto;
}

.gadget-selector-description {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.5;
}

.gadgets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gadget-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.gadget-option:hover {
  border-color: var(--primary-color);
  background: rgba(192, 0, 31, 0.05);
  transform: translateY(-1px);
}

.gadget-option .gadget-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.gadget-option .gadget-info {
  flex: 1;
}

.gadget-option .gadget-name {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.gadget-option .gadget-description {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.gadget-option .gadget-cooldown {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
}

/* Team Selector Modal */
.team-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.team-selector-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.team-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: var(--primary-color);
  color: white;
}

.team-selector-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.team-back-btn,
.team-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.team-back-btn:hover,
.team-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.team-selector-content {
  padding: 20px;
  overflow-y: auto;
}

.selected-gadget-info {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(192, 0, 31, 0.1);
  border-radius: 8px;
}

.gadget-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gadget-preview .gadget-icon {
  font-size: 1.5rem;
}

.gadget-preview .gadget-name {
  font-weight: bold;
  color: var(--primary-color);
}

.team-selector-description {
  margin: 0 0 20px 0;
  color: #666;
  line-height: 1.5;
}

.teams-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.team-option:hover:not(.disabled) {
  border-color: var(--primary-color);
  background: rgba(192, 0, 31, 0.05);
  transform: translateY(-1px);
}

.team-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.team-option.blocked {
  opacity: 0.7;
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.team-option.blocked:hover {
  border-color: #ff5252;
  background: rgba(255, 82, 82, 0.15);
  transform: none;
}

.team-option .team-info {
  flex: 1;
}

.team-option .team-name {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.team-option .team-points {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.team-restrictions {
  margin-top: 6px;
}

.restriction-reason {
  display: block;
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.team-option .team-device {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.activity-indicator {
  color: #ff9800;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-teams-available {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

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

/* Updated Gadgets Page Styles */
.gadgets-main-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.available-gadgets-preview {
  margin-bottom: 30px;
}

.available-gadgets-preview h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.gadgets-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gadgets-click-hint {
  margin: 10px 0;
  padding: 10px;
  background: var(--primary-color-alpha-1);
  border-radius: 6px;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid var(--primary-color-alpha-2);
}

.gadget-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #f9f9f9;
  transition: all 0.2s ease;
}

.gadget-preview-item.clickable {
  cursor: pointer;
  border: 2px solid #eee;
  position: relative;
}

.gadget-preview-item.clickable:hover {
  border-color: var(--primary-color);
  background: var(--primary-color-alpha-05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gadget-preview-item.clickable:hover::after {
  opacity: 1;
}

.gadget-preview-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.gadget-preview-item .gadget-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.gadget-preview-info h5 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: bold;
}

.gadget-preview-info p {
  margin: 0 0 4px 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

.gadget-preview-info small {
  color: #999;
  font-size: 0.7rem;
}

.gadgets-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.gadget-send-btn {
  font-size: 1.1rem;
  padding: 12px 30px;
  min-width: 200px;
}

.gadget-send-btn.disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cooldown-info {
  margin-top: 10px;
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
}

.admin-gadgets-section {
  background: rgba(192, 0, 31, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid rgba(192, 0, 31, 0.2);
}

.admin-gadgets-section h4 {
  margin: 0 0 10px 0;
  color: var(--primary-color);
}

.admin-gadgets-section p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.gadgets-rules {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.gadgets-rules h4 {
  margin: 0 0 15px 0;
  color: #333;
}

.gadgets-rules ul {
  margin: 0;
  padding-left: 20px;
}

.gadgets-rules li {
  margin-bottom: 8px;
  color: #666;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gadget-selector-overlay,
  .team-selector-overlay {
    padding: 10px;
  }
  
  .gadget-selector-modal,
  .team-selector-modal {
    max-height: 90vh;
  }
  
  .gadgets-preview-grid {
    grid-template-columns: 1fr;
  }
  
  .gadget-preview-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .gadget-send-btn {
    width: 100%;
    min-width: auto;
  }
}

/* Panel de prueba de gadgets */
.gadget-test-panel {
	background: rgba(0, 0, 0, 0.8);
	border: 2px solid #3498db;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	color: white;
}

.gadget-test-panel.disabled {
	border-color: #7f8c8d;
	opacity: 0.6;
}

.gadget-test-panel h3 {
	color: #3498db;
	margin: 0 0 16px 0;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.test-controls {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.control-group label {
	color: #bdc3c7;
	font-size: 14px;
	font-weight: bold;
}

.control-group select {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid #3498db;
	border-radius: 4px;
	color: white;
	padding: 10px;
	font-size: 14px;
}

.control-group select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.control-group select option {
	background: #2c3e50;
	color: white;
}

.action-buttons {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.send-gadget-button,
.complete-gadget-button {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

.send-gadget-button {
	background: #e74c3c;
	color: white;
}

.send-gadget-button:hover:not(:disabled) {
	background: #c0392b;
	transform: translateY(-2px);
}

.complete-gadget-button {
	background: #27ae60;
	color: white;
}

.complete-gadget-button:hover:not(:disabled) {
	background: #229954;
	transform: translateY(-2px);
}

.send-gadget-button:disabled,
.complete-gadget-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.gadget-test-panel .gadget-preview {
	margin-top: 20px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	border: 1px solid rgba(52, 152, 219, 0.3);
}

.gadget-test-panel .gadget-preview h4 {
	color: #3498db;
	margin: 0 0 12px 0;
	font-size: 16px;
}

.gadget-test-panel .gadget-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.gadget-test-panel .gadget-info .gadget-icon {
	font-size: 24px;
}

.gadget-test-panel .gadget-info .gadget-name {
	font-weight: bold;
	color: white;
}

.gadget-test-panel .gadget-info .gadget-description {
	color: #bdc3c7;
	font-style: italic;
}

/* Página de prueba de gadgets */
.dev-info {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid #34495e;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
	color: white;
}

.dev-info h3 {
	color: #f39c12;
	margin: 0 0 12px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.dev-info ul {
	margin: 0;
	padding: 0 0 0 20px;
}

.dev-info li {
	margin-bottom: 8px;
	color: #ecf0f1;
}

.test-instructions {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(52, 152, 219, 0.3);
	border-radius: 8px;
	padding: 20px;
	margin-top: 20px;
	color: white;
}

.test-instructions h3 {
	color: #3498db;
	margin: 0 0 16px 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.test-instructions ol {
	margin: 0 0 20px 0;
	padding: 0 0 0 20px;
}

.test-instructions ol li {
	margin-bottom: 8px;
	color: #ecf0f1;
	line-height: 1.5;
}

.test-tips {
	border-top: 1px solid rgba(52, 152, 219, 0.3);
	padding-top: 16px;
}

.test-tips h4 {
	color: #f39c12;
	margin: 0 0 12px 0;
}

.test-tips ul {
	margin: 0;
	padding: 0 0 0 20px;
}

.test-tips li {
	margin-bottom: 6px;
	color: #bdc3c7;
	line-height: 1.4;
}
/* src/styles/ranking.css */

/* Navegación entre vistas del ranking */
.ranking-navigation {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.nav-button {
  flex: 1;
  max-width: 200px;
  padding: 12px 20px;
  border: 2px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.nav-button:hover {
  background: var(--primary-color-alpha-1);
}

.nav-button.active {
  background: var(--primary-color);
  color: white;
}

/* Contenedor general del ranking */
.ranking-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sección de actividades del equipo */
.team-activities-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.activities-stats {
  margin-bottom: 30px;
}

.activities-stats h3 {
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  text-align: center;
}

.stats-summary {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 20px;
}

.stats-summary .stat-item {
  text-align: center;
  flex: 1;
}

.stats-summary .stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
}

.stats-summary .stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  display: block;
}

/* Lista de actividades en el ranking */
.activities-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.activity-item.activity-clickable {
  cursor: pointer;
}

.activity-item.activity-clickable:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.activity-name {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  flex: 1;
}

.activity-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.activity-status {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-status.status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.activity-status.status-reviewed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.activity-type {
  font-size: 0.8rem;
  font-style: italic;
}

.activity-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.detail-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.activity-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.7;
}

/* Estado vacío */
.no-activities {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  margin: 20px 0;
}

.no-activities .empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-activities h3 {
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.no-activities p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .ranking-navigation {
    padding: 0 10px;
  }
  
  .nav-button {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .ranking-container {
    padding: 0 10px;
  }
  
  .team-activities-section {
    padding: 15px;
  }
  
  .stats-summary {
    flex-direction: column;
    gap: 15px;
  }
  
  .stats-summary .stat-item {
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
  }
  
  .activity-item {
    padding: 15px;
  }
  
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .activity-actions {
    align-items: flex-start;
    width: 100%;
  }
  
  .activity-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .activity-arrow {
    position: static;
    transform: none;
    align-self: center;
    margin-top: 10px;
  }
}

/* Sección de acceso a medios */
.media-access-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
}

.media-list-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.media-list-button:hover {
  background: var(--accent-color-dark, #e67e22);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.media-icon {
  font-size: 1.2rem;
}
/* src/styles/mediaList.css */

/* Contenedor principal de la lista de medios */
.media-list-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header con estadísticas y botón de resubida */
.media-list-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-stats {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  margin-top: 5px;
}

/* Botón de resubida */
.reupload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  min-width: 180px;
}

.reupload-button:hover:not(:disabled) {
  background: var(--primary-color-dark);
  transform: translateY(-2px);
}

.reupload-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.reupload-button.loading {
  background: var(--accent-color);
}

.reupload-icon, .loading-spinner {
  font-size: 1.2rem;
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* Progreso de resubida */
.reupload-progress {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-info {
  text-align: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-color-secondary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

/* Estado sin medios */
.no-media {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-media h3 {
  color: var(--text-color-primary);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.no-media p {
  color: var(--text-color-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Grid de medios */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Item de medio */
.media-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.media-type {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 1.5rem;
}

.type-text {
  font-weight: 600;
  color: var(--primary-color);
}

.media-activity {
  font-size: 0.85rem;
  color: var(--text-color-secondary);
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 8px;
}

/* Detalles del medio */
.media-details {
  margin-bottom: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--text-color-secondary);
  font-weight: 500;
  min-width: 80px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text-color-primary);
  text-align: right;
  word-break: break-all;
  flex: 1;
}

/* URLs del medio */
.media-urls {
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.url-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.url-item:last-child {
  margin-bottom: 0;
}

.url-label {
  color: var(--text-color-secondary);
  font-weight: 500;
  min-width: 100px;
  flex-shrink: 0;
}

.url-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.url-link:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

/* Metadata del medio */
.media-metadata {
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.metadata-row:last-child {
  margin-bottom: 0;
}

.metadata-label {
  color: var(--text-color-secondary);
  font-weight: 500;
}

.metadata-value {
  color: var(--text-color-primary);
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Estado de carga */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-container p {
  color: var(--text-color-secondary);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .media-list-container {
    padding: 0 15px;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .media-list-header {
    padding: 15px;
  }
  
  .media-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .reupload-button {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: 160px;
  }
  
  .media-item {
    padding: 15px;
  }
  
  .media-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  
  .detail-value {
    text-align: left;
    padding-left: 10px;
  }
  
  .url-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .media-list-header {
    margin-bottom: 20px;
    padding: 12px;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .media-item {
    padding: 12px;
  }
}/* src/styles/teamActivityReadOnly.css */

/* Contenedor principal de la página de solo lectura */
.team-activity-readonly-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Cabecera con información de la actividad */
.activity-info-header {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.activity-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.95rem;
  color: #333;
  font-weight: 600;
}

.meta-value.status-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.meta-value.status-badge.status-pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.meta-value.status-badge.status-reviewed {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Sección de contenido de la actividad */
.activity-content-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.activity-content-section h4 {
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

/* Contenido de preguntas */
.question-content {
  width: 100%;
}

.question-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.question-text {
  margin-bottom: 15px;
}

.question-text strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 8px;
}

.question-text p {
  margin: 0;
  color: #333;
  line-height: 1.5;
}

.answer-text {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 15px;
}

.answer-text strong {
  color: #333;
  display: block;
  margin-bottom: 8px;
}

.team-answer {
  margin: 0;
  color: #444;
  font-style: italic;
  line-height: 1.5;
  background: white;
  padding: 10px;
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
}

.test-answer {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.test-answer strong {
  color: #333;
  display: block;
  margin-bottom: 8px;
}

/* Contenido multimedia */
.media-content {
  text-align: center;
}

.media-preview {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.image-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.video-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Contenido genérico */
.generic-content {
  width: 100%;
}

.activity-data {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.data-preview {
  background: white;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  border-left: 4px solid var(--primary-color);
  word-break: break-word;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Estadísticas de actividades */
.activity-stats {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
  color: #555;
  flex: 1;
}

.stat-value {
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
  margin-left: 10px;
}

/* Aviso de solo lectura */
.readonly-notice {
  background: linear-gradient(135deg, var(--primary-color-alpha-1), var(--primary-color-alpha-05));
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--primary-color-alpha-2);
}

.notice-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.notice-icon {
  font-size: 1.2rem;
}

.notice-text {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Indicador de color del evento */
.event-color-indicator {
  height: 4px;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  .team-activity-readonly-container {
    padding: 15px;
    margin: 10px;
  }
  
  .activity-info-header {
    padding: 15px;
  }
  
  .activity-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .activity-content-section {
    padding: 20px;
  }
  
  .question-item {
    padding: 15px;
  }
  
  .readonly-notice {
    padding: 12px;
  }
  
  .notice-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .notice-text {
    font-size: 0.85rem;
  }
}

/* Estados de error y loading */
.error-container,
.loading-container {
  text-align: center;
  padding: 3rem 1rem;
}

.error-content,
.loading-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.error-content h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-content p,
.loading-content p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.5;
}
