/* Modern CSS Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  padding: 24px;
  background: linear-gradient(135deg, #c7dcff 0%, #64b5f6 40%, #1565c0 100%);
  min-height: 100vh;
  color: #1a252f;
  line-height: 1.5;
  font-weight: 500;
  font-size: 14px;
}

/* Container for main content */
.container {
  max-width: 1600px;
  width: 96%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a252f;
  margin-bottom: 28px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 20px 0 10px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid #6c757d;
}

/* Form Styling */
#newCityForm { 
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 600px;
}

#newCityForm input {
  padding: 8px 12px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  transition: all 0.3s ease;
  background: #ffffff;
  flex: 1;
  min-width: 120px;
}

#newCityForm select {
  padding: 8px 12px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #495057;
  transition: all 0.3s ease;
  background: #ffffff;
  flex: 1;
  min-width: 120px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px;
}

#newCityForm input:focus, #newCityForm select:focus {
  outline: none;
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#cityList { 
  margin-bottom: 24px; 
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #dee2e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

#cityList input { 
  width: 60px; 
  margin-left: 8px;
  padding: 8px 12px;
  border: 2px solid #ced4da;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: #495057;
  background: #ffffff;
}

/* Number input spinner buttons styling - keep default arrows but make them bigger and centered */
#cityList input[type="number"]::-webkit-outer-spin-button,
#cityList input[type="number"]::-webkit-inner-spin-button {
  height: 20px;
  width: 20px;
  opacity: 1;
  margin-left: 8px;
  margin-top: 0;
  margin-bottom: 0;
}

#newCityForm input[type="number"]::-webkit-outer-spin-button,
#newCityForm input[type="number"]::-webkit-inner-spin-button {
  height: 20px;
  width: 20px;
  opacity: 1;
  margin-left: 8px;
  margin-top: 0;
  margin-bottom: 0;
}

/* City Buttons */
.city-buttons {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.city-buttons div { 
  margin-bottom: 16px; 
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-buttons button { 
  margin: 4px 4px 4px 0; 
  padding: 12px 20px; 
  border: none; 
  cursor: pointer; 
  font-weight: 600; 
  border-radius: 8px; 
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.city-buttons button:hover:not(.draw-count-btn) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.city-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Draw Count Section */
.draw-controls {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.draw-controls label {
  font-weight: 600;
  color: #2c3e50;
  margin-right: 16px;
  font-size: 16px;
}

/* Table Styling */
table { 
  border-collapse: collapse;
  width: 100%; 
  margin-top: 16px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #dee2e6;
}

td { 
  border: 1px solid #dee2e6;
  padding: 12px 8px !important; 
  text-align: center;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  font-style: normal !important;
  color: white !important;
}

th { 
  border: 1px solid #dee2e6;
  padding: 12px 8px !important; 
  text-align: center;
  background: #e9ecef;
  color: #2c3e50 !important;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #6c757d;
  transition: background-color 0.2s ease;
  text-shadow: none !important;
}

th:hover {
  background: #dee2e6;
}

/* Sort indicator styling */
th .sort-indicator {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
}

/* Hide sort indicator on mobile */
@media (max-width: 768px) {
  th .sort-indicator {
    display: none;
  }
}

tr:nth-child(even) {
  background-color: transparent;
}

tr:hover {
  background-color: inherit;
}

td {
  color: inherit;
  font-weight: inherit;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Epidemic Board */
.epidemic-board { 
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
  margin-top: 24px;
}

.epidemic-column { 
  border: 2px solid #e9ecef;
  padding: 16px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  text-align: center; 
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Fix szélesség */
  flex: 0 0 200px; /* Nem nő, nem zsugorodik */
}

/* Removed hover effect for non-clickable epidemic columns */

.epidemic-column.active { 
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
  color: #2c3e50;
  border-color: #6c757d;
  box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.epidemic-column h3 { 
  margin: 6px 0; 
  font-size: 1em;
  font-weight: 600;
}

.card { 
  margin: 2px 0; 
  padding: 6px 12px; 
  border-radius: 6px; 
  text-align: center; 
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border: none;
}

/* Removed hover effect for non-clickable cards */

/* Button Styling */
button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  background: #4A90E2;
  color: white;
}

button:hover:not(.draw-count-btn) {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

button.draw-count-btn { 
  margin-right: 8px; 
  margin-bottom: 8px; 
  padding: 10px 20px;
  background: #000000; /* Teljesen fekete */
  color: white;
  font-weight: 600;
  cursor: default !important;
  transition: none !important;
  transform: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

button.draw-count-btn:hover {
  transform: none !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  background: #000000 !important; /* Teljesen fekete hover esetén is */
  cursor: default !important; /* Normál kurzor hover esetén is */
}

button.draw-count-btn:disabled {
  opacity: 0.6;
  cursor: default !important; /* Normál kurzor disabled esetén is */
}

button.active-draw { 
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3) !important;
  color: white;
  opacity: 1 !important;
}

button.active-draw:hover {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3) !important;
  transform: none !important;
}

button#epidemicBtn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  font-weight: 700;
  padding: 12px 24px;
  margin-left: 12px;
  margin-right: 16px;
}

button#epidemicBtn:disabled { 
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}


button#gameOver { 
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white; 
  padding: 16px 32px; 
  margin-top: 24px;
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
}

/* City List Items */
#cityList div {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

#cityList div:hover {
  background: transparent;
}

#cityList span {
  display: inline-block !important;
  width: 120px !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  color: white !important;
  text-align: center !important;
  margin-right: 10px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  font-size: 14px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

#cityList button {
  background: #dc3545;
  color: white;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
    margin: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .epidemic-board {
    grid-template-columns: 1fr;
  }
  
  .city-buttons div {
    justify-content: center;
  }
  
  .city-buttons button {
    flex: 1;
    min-width: 120px;
  }
}

/* Loading Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  animation: fadeIn 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

