/* General */
body {
  font-family: 'Nunito', sans-serif;
  background-color: #1A2B4C;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

header {
  background-color: #22396F;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

h1 {
  margin: 0;
}

main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Upload Section */
#uploadSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#uploadSection form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  width: 100%;
  background-color: #22396F;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

input, button {
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
}

button {
  background-color: #5DE0E6;
  color: #1A2B4C;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background-color: #49bfc1;
}

/* Custom file input */
.custom-file-label {
  display: inline-block;
  padding: 12px 20px;
  background-color: #5DE0E6;
  color: #1A2B4C;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  transition: 0.2s;
}

.custom-file-label:hover {
  background-color: #49bfc1;
}

#apkFile {
  display: none;
}

/* Delete button with bin icon */
.delete-btn {
  background-color: #FF6B6B;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  color: #1A2B4C;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.delete-btn:hover {
  background-color: #e55a5a;
}

.delete-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}
/* Download button */
.download-btn {
  background-color: #69f0ae;
  color: #1A2B4C;
  font-weight: bold;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
  text-decoration: none; /* for anchor if using <a> */
}

.download-btn:hover {
  background-color: #00e676;
}

.download-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}


/* Containers */
#apkContainer, #resetContainer, #uploadSection, #versionListSection {
  background-color: #22396F;
  padding: 20px;
  border-radius: 12px;
  max-width: 800px;
  width: 95%;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Reset Password Container */
#resetContainer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: 100%;
  padding: 25px;
  border-radius: 12px;
  background-color: #22396F;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#resetContainer h2 {
  margin-bottom: 15px;
  color: #5DE0E6;
  font-weight: bold;
}

#resetContainer input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
}

#resetContainer button {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background-color: #5DE0E6;
  color: #1A2B4C;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

#resetContainer button:hover {
  background-color: #49bfc1;
}

/* Status */
#status, #uploadStatus {
  margin-top: 15px;
  font-weight: bold;
  color: #5DE0E6;
}

/* Tables */
#versionTable {
  width: 100%;
  border-collapse: collapse;
  background-color: #22396F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#versionTable th, #versionTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #5DE0E6;
}

#versionTable th {
  background-color: #1A2B4C;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  form, #apkContainer, #versionListSection, #resetContainer {
    width: 90%;
    padding: 15px;
  }

  button, .custom-file-label {
    font-size: 14px;
    padding: 10px;
  }
}
