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

body {
  background: #f6f8fb;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.5
}

header {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-content i {
  color: #0b874b;
  font-size: 1.5rem;
}

.header-content h1 {
  font-size: 1.5rem;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 90%;
  max-width: 900px; /* 56.25rem */
  margin: 0 auto;
}

.section-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  width: 100%;
}

.upload-box {
  text-align: center;
}

#upload-heading {
  margin-bottom: 0.5rem;
}

.subtext {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.drop-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 2rem;
  background: #f9f9f9;
  cursor: pointer;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

#drop-area.highlight {
  border-color: #4caf50;
  background-color: #eaffea;
}

#drop-area.highlight .upload-icon {
  transform: scale(1.5);
}

.upload-icon {
  font-size: 2rem;
  color: #5fd788;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.browse {
  color: #66bb6a;
  cursor: pointer;
}

.browse:hover {
  color: #43a047;
  text-decoration: underline;
}

.small-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  height: 44px;
  min-width: 140px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.button i {
  margin-right: 0.5rem;
}

.cancel {
  background: #f0f0f0;
  color: #555;
}

.cancel:hover {
  background: #e0e0e0;
}

.analyze,
.download {
  background: #000;
  color: white;
}

.analyze:hover,
.download:hover {
  background: #222;
}

.download {
  display: none;
}

#upload-status {
  margin-top: 1.2rem;
  font-weight: 500;
  color: green;
}

#status-message{
  margin-top: 0.5rem;
  color: #000;
}

#progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  height: 25px;
  display: none;
  position: relative;
}

.progress-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 0.2s ease;
}

#progress-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ffffff;
  z-index: 1;
  pointer-events: none;
}


#file-display-container {
  margin-top: 10px;
}

.file-display-container .file-info {
  display: grid;
  grid-template-columns: 1fr 80px 30px;
  align-items: center;
  background: #cff5cf;
  border: 1px solid #b2f2bb;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1rem;
  color: #222;
  gap: 10px;
}

#file-display .file-info:nth-child(odd) {
  background: #e7fee7;
}

.file-display-container .file-info .file-name {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}

.file-display-container .file-info .file-size {
  text-align: right;
  color: #333;
}

.file-display-container .file-info .remove-file {
  text-align: center;
  color: red;
  font-weight: bold;
  cursor: pointer;
}

.file-display-container .file-info span {
  margin-right: 10px;
}

.toggle-files {
  background-color: #000;
  color: white;
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
  display:none;
}

.toggle-files:hover {
  background-color: #222;
}

.how-it-works {
  background-color: #fdfeff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.how-it-works h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #222;
}

.how-steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.how-step {
  flex: 1 1 200px;
  max-width: 300px;
}

.how-icon {
  width: 70px;
  height: 70px;
  background-color: #b7f9b9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: #0b874b;
}

.how-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

.how-step p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .button {
    min-width: unset;
    width: 100%;
  }

  .file-display-container .file-info {
    grid-template-columns: 1fr auto auto;
    font-size: 0.95rem;
  }

  .drop-area {
    padding: 1rem;
  }
}
