/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1f4037, #99f2c8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  color: #333;
  line-height: 1.6;
}

.container {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
  margin-bottom: 30px;
}

.header {
  margin-bottom: 25px;
}

.icon {
  font-size: 3rem;
  color: #1f4037;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.2rem;
  color: #1f4037;
  margin-bottom: 10px;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  color: #1f4037;
  margin-bottom: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555;
}

.upload-area {
  border: 2px dashed #99f2c8;
  border-radius: 12px;
  padding: 40px 20px;
  margin: 20px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: #1f4037;
  background: rgba(153, 242, 200, 0.1);
}

.upload-icon {
  font-size: 2.5rem;
  color: #1f4037;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0;
}

input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-info {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #1f4037;
  font-weight: 500;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

button {
  background: #1f4037;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

button:hover {
  background: #99f2c8;
  color: #1f4037;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button i {
  font-size: 1rem;
}

.progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  height: 10px;
  margin: 20px 0;
  overflow: hidden;
  display: none;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1f4037, #99f2c8);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 5px;
  font-size: 0.85rem;
  color: #555;
}

.results-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-count {
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
}

.file-container {
  margin-top: 15px;
  width: 100%;
  text-align: left;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.file-row:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-row p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  word-break: break-all;
  flex: 1;
  padding-right: 15px;
}

.file-row .file-icon {
  color: #1f4037;
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.file-row button {
  background: #1f4037;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.file-row button:hover {
  background: #99f2c8;
  color: #1f4037;
}

footer {
  margin-top: 40px;
  width: 100%;
  max-width: 800px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #1f4037;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links a:hover {
  color: #99f2c8;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-copyright a {
  color: #1f4037;
  text-decoration: none;
  font-weight: 500;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

.footer-copyright i {
  color: #e74c3c;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container, .results-container {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
  
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .results-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .file-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .file-row button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .controls {
    flex-direction: column;
  }
  
  button {
    width: 100%;
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
