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

/* Page background */
html, body {
  width: 100%;
  height: 100%;
  background-color: #222831;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Center SVG */
.container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* SVG sizing */
svg {
  width: 90vw;
  max-width: 500px;
  height: auto;
  display: block;
}

/* Heart sections */
.section {
  fill: #ffffff;
  cursor: pointer;
  transition: fill 0.25s ease;
}

/* On click */
.section.active {
  fill: #e63946;
}

.section {
  fill: #ffffff;
  cursor: pointer;
  transition: fill 0.25s ease;
}

/* لون الباث لما يتفعل */
.section.active {
  fill: #e63946;
}

/* شكل التيكست */
.section-text {
  fill: #000000;
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  transition: fill 0.25s ease;
}

/* لما الباث يبقى active → التيكست أبيض */
.section.active + .section-text {
  fill: #ffffff;
}

/* Download Buttons */
.download-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.download-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background-color: rgba(34, 40, 49, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.download-btn:hover {
  background-color: rgba(34, 40, 49, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.download-btn svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #2d3440;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(34, 40, 49, 0.6);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #e63946;
  background-color: rgba(34, 40, 49, 0.8);
}

.modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.download-btn-primary {
  background-color: #e63946;
  color: #ffffff;
}

.download-btn-primary:hover {
  background-color: #d62839;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .download-buttons {
    bottom: 15px;
    left: 15px;
    gap: 10px;
  }

  .download-btn {
    width: 45px;
    height: 45px;
  }

  .download-btn svg {
    width: 20px;
    height: 20px;
  }

  .modal-content {
    padding: 24px;
    width: 85%;
  }
}

