/* Strategy Game Simulator Styles */

/* Smooth transitions for all interactive elements */
* {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animated gradient background */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

/* Card hover effects */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Button enhancements */
.btn {
  transition: all 0.2s ease;
  font-weight: 500;
}

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

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

/* Badge animations */
.badge {
  transition: all 0.2s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* Progress bar animations */
.progress-bar {
  transition: width 0.6s ease;
}

/* Modal enhancements */
.modal-content {
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Alert animations */
.alert {
  animation: slideInDown 0.3s ease;
}

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

/* Pulse animation for important elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Glow effect for primary elements */
.glow {
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.glow:hover {
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.7);
}

/* Text shadow for better readability */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

/* Loading spinner enhancement */
.spinner-border {
  border-width: 3px;
}

/* Custom focus styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Smooth fade-in for content */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* KPI card specific styles */
.kpi-card {
  position: relative;
  overflow: hidden;
}

.kpi-card::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.5s ease;
}

.kpi-card:hover::before {
  left: 100%;
}

/* NPC interaction styles */
.npc-item {
  border-left: 3px solid transparent;
}

.npc-item:hover {
  border-left-color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Activity log entry animation */
.activity-entry {
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Option card styles */
.option-card {
  border-left: 4px solid transparent;
}

.option-card:hover {
  border-left-color: #0d6efd;
}

/* Urgency indicator styles */
.urgency-low {
  border-left: 4px solid #17a2b8;
}

.urgency-medium {
  border-left: 4px solid #ffc107;
}

.urgency-high {
  border-left: 4px solid #dc3545;
}

/* Glassmorphism effect for cards */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip enhancements */
.tooltip {
  font-size: 0.875rem;
}

/* Custom checkbox/radio styles */
.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Disabled state improvements */
.disabled,
:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  .modal {
    display: none;
  }
}
