body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.title-bar {
  background: #FFFFFF;
  padding: 20px 40px;
  text-align: left;
  font-size: 22px;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: #000;
  font-family: Compass Serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  display: flex;
  padding: 23px 25px;
  align-items: center;
  gap: 10px;
  align-self: stretch;
}

.container {
  background: #FFFFFF;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 400px;
  margin: 64px;
  border-radius: 4px;
  border: 1px solid var(--full-palette-neutral-40, #D9D9D9);
}

/* Media query for mobile devices */
@media (max-width: 480px) {
  .container {
    width: 300px;
  }
}

.header {
  text-align: left;
  font-size: 22px;
  color: #000;
  margin-bottom: 30px;
}

.error-text {
  text-align: left;
  color: red;
  color: var(--full-palette-red-80-core, #AE0917);
  font-family: Compass Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.error-text p {
    margin-top: -12px;
}

.error-input {
  border: 1px solid var(--full-palette-red-80-core, #AE0917);
}

.form-group {
  color: var(--full-palette-neutral-120, #171717);
  text-align: center;
  font-family: Compass Sans;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 0 0;
  align-self: stretch;
}


.form-group label {
  display: block;
  text-align: center;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  font-family: Compass Sans;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
  width: 94%;
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #CCC;
}

button {
  font-family: Compass Sans;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  background-color: var(--full-palette-blue-80-core, #0063E5);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.documents-container {
  margin-top: 20px;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}


.download-link {
  color: #0000EE;
  text-decoration: none;
}

.success-state {
  display: none;
  padding: 10px;
  background-color: #D4EDDA;
  color: #155724;
  border-color: #C3E6CB;
}

.download-container {
  width: 80%;
  margin: 0 auto;
}

.download-header {
  background-color: #eaeaea;
  padding: 20px;
  text-align: center;
}

.download-documents-list {
  margin: 20px 0;
}

.download-document-item {
  background-color: #fcfcfc;
  border: 1px solid #dcdcdc;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #0056b3;
}

.download-footer {
  text-align: center;
  margin-top: 20px;
}

#download-all-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#download-all-button:hover {
  background-color: #218838;
}

.documents-container {
  margin: 0;
  padding: 20px;
  padding-bottom: 100px;
  display: flex;
  width: 918px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

/* Media query for tablets and smaller devices */
@media (max-width: 768px) {
  .documents-container {
    width: 480px;
  }
}

/* Media query for mobile devices */
@media (max-width: 480px) {
  .documents-container {
    width: 350px;
  }
}

.documents-container strong {
  display: block;
  font-size: 1.2em;
  color: #333;
  color: var(--neutrals-black-000000, #000);
  font-family: Compass Sans;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.documents-container p {
  color: #000;
  font-family: Compass Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  margin: 10px 0;
}


.doc-header {
  display: flex;
  align-items: center;
  padding: 14px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 16px 10px;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 0px 5px rgba(0,0,0,0.1);
}

.doc-name-header {
  font-size: 1em;
  color: #333;
  color: var(--full-palette-neutral-120, #171717);

  font-family: Compass Sans;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
}

.doc-name {
  font-size: 1em;
  color: #333;
  color: var(--full-palette-neutral-120, #171717);

  font-family: Compass Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.file-link {
  cursor: pointer;
}

.download-link {
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.download-link:hover,
.download-link:focus {
  background-color: #0056b3;
}

.folder-name {
  width: 90%;
}

.download-all {
  border-radius: 2px;
  background: var(--full-palette-blue-80-core, #0063E5);
  display: flex;
  padding: 6px 16px 5px 16px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  width: 18%;
  height: fit-content;
  margin: 10px 0;
  line-height: 150%;
}

/* Media query for mobile devices */
@media (max-width: 480px) {
  .download-all {
    width: 28%;
  }
}


.document-title {
  display: flex
}

#toast {
  color: var(--Full-palette-Neutral-120, #171717);
  /* Body 1 Regular */
  font-family: "Compass Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
  visibility: hidden;
  min-width: 200px;
  color: #171717;
  text-align: center;
  border-radius: 2px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 17px 16px 15px 16px;
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.12), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 3px 5px -1px rgba(0, 0, 0, 0.20);
  margin-bottom: 10px;
}

#toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#toast.success {
  background: #5EC990;
  color: #000;
}

#toast.failed {
  background: #AE0917;
  color: #FFF;
}

@-webkit-keyframes fadein {
  from {bottom: -50px; opacity: 0;} 
  to {bottom: 0; opacity: 1;}
}

@keyframes fadein {
  from {bottom: -50px; opacity: 0;}
  to {bottom: 0; opacity: 1;}
}

.loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* semi-transparent white background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100; /* Ensures it appears above other content */
}

.loading-indicator::before {
  content: '';
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
