body {
  font-family: "Roboto", sans-serif;
  color: #fff;
  background-color: #061e2d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #061e2d;
}

::-webkit-scrollbar-thumb {
  background: #60b0bf;
}

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

.hero-banner {
  background: linear-gradient(135deg, #061e2d 0%, #008099 45%, #60b0bf 100%);
  padding: 6rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-content {
  max-width: 44rem;
}

.banner-content h1 {
  font-size: clamp(1rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.05;
  white-space: normal;
  word-break: break-word;
}

.banner-content p {
  color: #fff;
  line-height: 1.75;
  font-size: 1.15rem;
}

.banner-button {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 1rem 1.75rem;
  border: 1px solid #e5a92e;
  color: #fff;
  text-decoration: none;
  transition: 200ms ease;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.banner-button:hover {
  background-color: rgba(224, 169, 46, 0.16);
}

.admin-login-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid #e5a92e;
  background-color: rgba(6, 30, 45, 0.88);
  color: #fff;
  cursor: pointer;
  font: inherit;
  transition: 200ms ease;
}

.admin-login-button:hover {
  background-color: rgba(229, 169, 46, 0.18);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(6, 30, 45, 0.82);
}

.admin-modal.hide {
  display: none;
}

.admin-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(90vh, 44rem);
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid #60b0bf;
  background-color: #061e2d;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.admin-panel h2 {
  margin-bottom: 1.5rem;
  color: #e5a92e;
}

.admin-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: none;
  color: #e5a92e;
  cursor: pointer;
  font-size: 1.4rem;
}

.admin-login-form,
.admin-data-form {
  display: grid;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-logout-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid #60b0bf;
  background-color: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.admin-logout-button:hover {
  background-color: rgba(96, 176, 191, 0.16);
}

.admin-panel label {
  display: grid;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
}

.admin-panel input,
.admin-panel select {
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid #60b0bf;
  background-color: #213448;
  color: #fff;
  font: inherit;
}

.admin-panel input:focus,
.admin-panel select:focus {
  outline: 2px solid #e5a92e;
  outline-offset: 2px;
}

.admin-submit-button {
  min-height: 2.9rem;
  border: 1px solid #e5a92e;
  background-color: #008099;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.admin-submit-button:hover {
  background-color: #60b0bf;
}

.admin-submit-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.admin-message {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: #e5a92e;
  line-height: 1.5;
}

.world-map-section {
  position: relative;
}

.world-map {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background-color: #213448;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0 4rem;
}

.map-conatiner {
  width: min(1200px, 95vw);
  margin: 0 auto;
}

svg {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  transform-origin: top center;
}

path {
  fill: #000000;
  stroke: #000000;
  stroke-width: 0.4;
  transition: 100ms;
}

path:hover {
  fill: #ffffff;
}

.side-panel {
  position: fixed;
  background-color: #061e2d;
  padding: 2em;
  top: 0;
  left: -30em;
  width: 100%;
  max-width: 30em;
  height: 100vh;
  transition: 600ms cubic-bezier(0.77, 0, 0.18, 1);
  overflow: scroll;
  z-index: 9999;
}

.side-panel .container {
  padding-block: 2em;
  transition: 200ms ease-out;
}

.hide {
  display: none;
}

.side-panel-open {
  left: 0;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  transition: 200ms;
}

.close-btn {
  position: absolute;
  top: 1.5em;
  right: 1.5em;
  width: 3em;
  height: 3em;
  background: none;
  border: none;
  color: #e5a92e;
  cursor: pointer;
  font-size: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 200ms;
  padding: 0;
  margin: 0;
}

.close-btn i {
  font-size: 2.5em;
}

.close-btn:hover {
  color: #60b0bf;
  transform: scale(1.1);
}

.country-flag {
  width: 60%;
  max-width: 20em;
  margin-block: 1em;
}

.side-panel .container > ul {
  margin-top: 2em;
  list-style: none;
}

.side-panel .container > ul > li {
  margin-bottom: 2em;
}

.side-panel li {
  margin-bottom: 1em;
  font-size: 1.2em;
}

.side-panel ul ul {
  margin-top: 1em;
  font-size: 0.7em;
  list-style: circle;
  padding-left: 2em;
}

.side-panel strong {
  color: #fff;
}

.map-tools {
  position: absolute;
  top: 1em;
  right: 1em;
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  z-index: 2;
}

.active-countries-toggle {
  min-height: 3em;
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0 0.8em;
  border: 1px #60b0bf solid;
  background-color: #061e2d;
  color: #fff;
  font-size: 0.95em;
  cursor: pointer;
  user-select: none;
}

.active-countries-checkbox {
  width: 1.1em;
  height: 1.1em;
  accent-color: #60b0bf;
  cursor: pointer;
}

.zoom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zoom-controls button {
  display: block;
  width: 1.5em;
  height: 1.5em;
  font-size: 2em;
  background-color: #008099;
  color: #fff;
  border: 1px #e5a92e solid;
  cursor: pointer;
}

.zoom-controls button:hover {
  background-color: #60b0bf;
}

button:disabled {
  background-color: #061e2d;
  border: 1px #008099 solid;
  cursor: default;
  color: #ccc;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 3rem 1rem;
  }

  .admin-login-button {
    position: static;
    margin-bottom: 1.5rem;
  }

  .banner-content {
    max-width: 100%;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .banner-button {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
    margin: 0.5rem 0.35rem 0 0.35rem;
  }

  .world-map {
    min-height: 55vh;
    padding: 1.5rem 0 3rem;
  }

  .map-tools {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .zoom-controls {
    flex-direction: row;
    gap: 0.5rem;
  }

  .zoom-controls button {
    width: 2.2em;
    height: 2.2em;
    font-size: 1.5em;
  }

  .side-panel {
    top: auto;
    bottom: 0;
    height: auto;
    max-height: 70vh;
    padding: 1.5em;
  }

  .close-btn {
    top: 0.75em;
    right: 0.75em;
    width: 2.5em;
    height: 2.5em;
  }

  .country-flag {
    width: 100%;
    max-width: 18em;
  }
}

.zoom-out {
  margin-bottom: 10px;
}

.country-search {
  display: flex;
  height: 3em;
  border: 1px #e5a92e solid;
  background-color: #008099;
}

.country-search-input {
  width: min(15em, 48vw);
  padding: 0 0.9em;
  border: none;
  outline: none;
  background-color: #061e2d;
  color: #fff;
  font: inherit;
}

.country-search-input::placeholder {
  color: #e5a92e;
}

.country-search-button {
  width: 3em;
  border: none;
  border-left: 1px #e5a92e solid;
  background-color: #008099;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
}

.country-search-button:hover,
.country-search-input:focus + .country-search-button {
  background-color: #60b0bf;
}

.compare-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.selection-section {
  background-color: #213448;
  padding: 3rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.country-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-end;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.selector-group label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5a92e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.country-select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: #061e2d;
  color: #fff;
  border: 2px solid #60b0bf;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: "Roboto", sans-serif;
}

.country-select:hover {
  border-color: #e5a92e;
  background-color: #0d2a3d;
}

.country-select:focus {
  outline: none;
  border-color: #e5a92e;
  box-shadow: 0 0 10px rgba(229, 169, 46, 0.3);
}

.country-select option {
  background-color: #061e2d;
  color: #fff;
}

.flag-display {
  font-size: 3.5rem;
  text-align: center;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(96, 176, 191, 0.1);
  border-radius: 6px;
  border: 2px dashed #60b0bf;
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #e5a92e;
  height: 4rem;
}

.charts-section {
  margin-bottom: 3rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

.chart-wrapper {
  background-color: #213448;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chart-wrapper h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: #e5a92e;
  border-bottom: 2px solid #60b0bf;
  padding-bottom: 0.75rem;
}

.chart-wrapper canvas {
  max-height: 350px;
}

.table-section {
  background-color: #213448;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.table-section h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #e5a92e;
  border-bottom: 2px solid #60b0bf;
  padding-bottom: 1rem;
}

.table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.comparison-table thead {
  background-color: #008099;
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid #e5a92e;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: normal;
}

.comparison-text {
  display: block;
  line-height: 1.5;
}

.comparison-text strong {
  display: block;
  margin-top: 0.35rem;
}

.comparison-table tbody tr:hover {
  background-color: rgba(96, 176, 191, 0.1);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.2);
}

.comparison-table td strong {
  color: #e5a92e;
}


.info-section {
  text-align: center;
  padding: 2rem;
}

.loading-info {
  font-size: 1.1rem;
  color: #60b0bf;
  animation: pulse 1.5s infinite;
}

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

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .country-selector {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .flag-display {
    min-height: 3rem;
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .compare-container {
    padding: 1rem 0.5rem;
  }

  .selection-section {
    padding: 1.5rem;
  }

  .country-select {
    font-size: 0.95rem;
  }

  .chart-wrapper {
    padding: 1rem;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .banner-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
}
