@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600&display=swap');

body {
    background-color: #2C3E50;
    font-family: "Comfortaa", sans-serif;
    margin-left: 20px;
    margin-right: 20px;
    padding: 0;
}


span{
  color: white;
}

.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 20px;
  animation: fadeIn 0.8s ease-in-out;
}

h1 {
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-top: 15px;
  color: #ffffff;
  font-weight: 600;
}

input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid #ffd54f;
  color: black;
  font-size: 14px;
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #ffd54f;
  box-shadow: 0 0 10px #ffd54f33;
  outline: none;
}

textarea {
  resize: none;
  height: 100px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compatibility label {
  display: inline-block;
  margin-right: 15px;
  color: #c2a8ff;
}

.repo-input {
  margin-top: 10px;
}

.warning {
  color: #ff5555;
  display: none;
}

.submit-btn {
  margin-top: 30px;
  background-color: #ffd54f;
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 25px;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background-color: #ffe97a;
  transform: translateY(-2px);
  box-shadow: 0 0 15px #ffe97a66;
}

.announce-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}






label {
    display: block;
    font-weight: bold;
    margin: 20px 0 10px;
  }

  .file-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  input[type="file"] {
    color: transparent;
    width: 160px;
  }




  input[type="file"]::file-selector-button {
    background: #ffd231;
    font-family: "Comfortaa", sans-serif;
    border: none;
    color: rgb(0, 0, 0);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  #iconPreview,
  #imagesPreview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
  }

  .img-wrapper {
    position: relative;
    display: inline-block;
  }

  .img-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d6d;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .delete-btn:hover {
    background: #ff6b8d;
  }

  /* Анимация загрузки при вводе пути */
  .loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #777;
    margin-top: 8px;
  }

  .loading::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #ff7fa1;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  font-family: 'Comfortaa', sans-serif;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal button {
  margin-top: 15px;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
}

.modal button:hover {
  background-color: #45a049;
}


.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.preview-container img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  position: relative;
  border: 1px solid #ccc;
}

.preview-container .delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
}
.preview-container .img-wrapper {
  position: relative;
  display: inline-block;
}