.loader-view,
.home-view,
.drop-zone-overlay {
  width: 100%;
  height: 100%;
}

:root {
  --header-height: 48px;
}

@media screen and (min-width: 768px) {
  :root {
    --header-height: 48px;
  }
}

body {
  display: flex;
  padding-top: var(--header-height);
}

/* HEADER */
header {
  z-index: 1;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  background: #ffffff;
  border-bottom: 1px solid rgba(37, 39, 59, 0.1);
  box-shadow: 0px 1px 4px rgba(37, 39, 59, 0.06);
}

header .left {
  display: flex;
  align-items: center;
  gap: 12px;

  height: var(--header-height);
  padding-left: 12px;
}

header .left h1 {
  user-select: none;
}

.content-area {
  position: relative;

  flex: 1;
  display: flex;
  flex-direction: column;

  padding: 12px 12px 0;
  min-width: 0;

  /*justify-content: center;
  align-items: center;*/
}

/* LOADER VIEW */
.loader-view {
  display: grid;
  place-content: center;
}

.loader-view .loader {
  margin: auto;
  flex-shrink: 0;
}

.loader-view p {
  margin-top: 1rem; color: #666;
}

/* UPLOADED FILES TO COMPRESS VIEW */
.uploaded-files-to-compress-view {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin: 0 auto;
  padding: 16px 12px;
  max-width: 600px;
  width: 100%;
}

.uploaded-files-to-compress-view h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  /* identical to box height, or 150% */
  letter-spacing: -0.01em;

  color: #000000;
}

.uploaded-files-to-compress-view ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  border-radius: 6px;
}

.uploaded-files-to-compress-view li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.uploaded-files-to-compress-view li:not(:last-child) {
  border-bottom: 1px solid rgba(37, 39, 59, 0.1);
}

.uploaded-files-to-compress-view li div:nth-child(1) {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */

  color: #25273b;

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploaded-files-to-compress-view li div:nth-child(2) {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  /* identical to box height, or 14px */
  letter-spacing: 0.04em;

  color: rgba(37, 39, 59, 0.5);
}

.uploaded-files-to-compress-view form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
}

.uploaded-files-to-compress-view input {
  align-self: stretch;
  padding: 0px 12px;

  height: 40px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  box-shadow: inset 0px 1px 2px rgba(37, 39, 59, 0.06);
  border-radius: 6px;
}

.uploaded-files-to-compress-view input::placeholder {
  font-family: "Geist Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */
  letter-spacing: -0.01em;

  color: rgba(37, 39, 59, 0.3);
}

/* UPLOADED FILES TO EXTRACT VIEW */
.uploaded-files-to-extract-view {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin: 0 auto;
  padding: 16px 12px;
  max-width: 600px;
  width: 100%;
}

.uploaded-files-to-extract-view h2 {
  margin-bottom: -8px;

  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  /* identical to box height, or 150% */
  letter-spacing: -0.01em;

  color: #000000;
}

.uploaded-files-to-extract-view .error{
  color: #f00;
}

.uploaded-files-to-extract-view ul,
.uploaded-files-to-extract-view .archive {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  border-radius: 6px;
}

.uploaded-files-to-extract-view li,
.uploaded-files-to-extract-view .archive
 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.uploaded-files-to-extract-view li:not(:last-child) {
  border-bottom: 1px solid rgba(37, 39, 59, 0.1);
}

.uploaded-files-to-extract-view li div:nth-child(1),
.uploaded-files-to-extract-view .archive div:nth-child(1) {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */

  color: #25273b;

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploaded-files-to-extract-view li div:nth-child(2),
.uploaded-files-to-extract-view .archive div:nth-child(2) {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  /* identical to box height, or 14px */
  letter-spacing: 0.04em;

  color: rgba(37, 39, 59, 0.5);
}

.uploaded-files-to-extract-view form {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
}

.uploaded-files-to-extract-view input {
  align-self: stretch;
  padding: 0px 12px;

  height: 40px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  box-shadow: inset 0px 1px 2px rgba(37, 39, 59, 0.06);
  border-radius: 6px;
}

.uploaded-files-to-extract-view input::placeholder {
  font-family: "Geist Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */
  letter-spacing: -0.01em;

  color: rgba(37, 39, 59, 0.3);
}

/* HOME VIEW */
.home-view {
  display: grid;
  place-content: center;
}

.home-view .buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-view input[type="file"] {
  display: none; /*Hide the actual input*/
}

.home-view button.action {
  display: inline-flex;
  /* margin: auto; */
}

/*DROP ZONE*/
#drop-zone {
  position: absolute;
  inset: 0;
  background-color: #fbfaf9;
  /*z-index: 100;*/

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  padding: 12px;

  transition: opacity 0.2s;
}

#drop-zone.hidden {
  display: none;
}

.drop-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border: 1px dashed rgba(37, 39, 59, 0.1);
  border-radius: 1px;

  pointer-events: none; /* Let clicks pass through if needed, mostly for visual feel */
  text-align: center;
  gap: 1rem;

  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  /* identical to box height, or 117% */

  color: #605a57;
}

/* COMPRESS SUCCESS VIEW */
#view-success-compress {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin: 0 auto;
  padding: 16px 12px;
  max-width: 600px;
  width: 100%;
}

#view-success-compress h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  /* identical to box height, or 150% */
  letter-spacing: -0.01em;

  color: #000000;
}

#view-success-compress .archive {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
}

#view-success-compress .archive div:nth-child(1) {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */

  color: #25273b;

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-success-compress .archive div:nth-child(2) {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  /* identical to box height, or 14px */
  letter-spacing: 0.04em;

  color: rgba(37, 39, 59, 0.5);
}

#view-success-compress .buttons {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
}

/* EXTRACT SUCCESS VIEW */
#view-success-extract {
  display: flex;
  flex-direction: column;
  gap: 16px;

  margin: 0 auto;
  padding: 16px 12px;
  max-width: 600px;
  width: 100%;
}

#view-success-extract h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  /* identical to box height, or 150% */
  letter-spacing: -0.01em;
  
  color: #000000;
}

#view-success-extract p {
  margin-top: -14px;
  color: rgba(37, 39, 59, 0.5);
}

#view-success-extract ul#extract-result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  padding-right: 12px;

  background: #ffffff;
  border: 1px solid rgba(37, 39, 59, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

#view-success-extract li {
  /* display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px; */
  position: relative;
}

#view-success-extract li button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
}

#view-success-extract li button::after {
  content: "";
  margin-left: -12px;
  margin-right: -12px;
  width: calc(100% + 24px);
  text-align: left;
  position: absolute;
  inset: 0;
}

#view-success-extract li:hover button::after {
  background-color: rgba(37, 39, 59, 0.05);
}

#view-success-extract li:not(:last-child) {
  border-bottom: 1px solid rgba(37, 39, 59, 0.1);
}

#view-success-extract li div:nth-child(1) {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  /* identical to box height, or 16px */

  color: #25273b;

  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-success-extract li div:nth-child(2) {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  /* identical to box height, or 14px */
  letter-spacing: 0.04em;

  color: rgba(37, 39, 59, 0.5);
}

#view-success-extract .buttons {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
}

/* MISC */
.button-group {
  display: flex;
  gap: 10px;
}