* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --green-dark: #1A3636;
  --green-light: #677D6A;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.wrapped-component {
  text-align: center;
  color: white;
  padding: 30px;
  background-color: rgba(64, 83, 76, 0.7);
  border-radius: 10px;
  width: 100%;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.wrapped-component input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.wrapped-component button {
  background-color: var(--green-light);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.wave-container {
  width: 100%;
  height: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
}

.wave-container svg {
  display: block;
}

.logo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 25;
}

.left-header img {
  height: 76px;
}

.background-gradient {
  background: linear-gradient(0deg, var(--green-light) 0%, var(--green-dark) 70%);
  width: 100%;
  min-height: 100vh; 
  position: relative;
  display: flex;
  flex-direction: column;
}

.login {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
}

.image-container {
  width: 80%;
  max-width: 500px;
  margin: 0 auto;
  flex-grow: 1;
  background-image: url('assets/login.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  max-height: 60vh;
}

.form-container {
  width: 80%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  z-index: 10;
}

@media (max-height: 700px) {
  .image-container {
    min-height: 150px;
    max-height: 40vh;
  }
  
  .form-container {
    padding: 20px 0;
  }
}

.upload {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
}

.logout-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.logout-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.upload-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: white;
}

.upload-dropzone {
  border: 3px dashed rgba(127, 160, 137, 0.5);
  border-radius: 12px;
  padding: 40px 20px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.upload-dropzone:hover {
  border-color: #7FA089;
  background-color: rgba(127, 160, 137, 0.1);
}

.upload-dropzone.dragover {
  border-color: #7FA089;
  background-color: rgba(127, 160, 137, 0.15);
  transform: scale(1.02);
}

.upload-icon {
  opacity: 0.8;
}

.dropzone-text {
  font-size: 18px;
  font-weight: 500;
  color: white;
  margin: 0;
}

.dropzone-subtext {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.file-input {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#fileLabel {
  display: inline-block;
  background-color: #7FA089;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  margin: 8px 0;
}

#fileLabel:hover {
  background-color: #8DB4A8;
}

.file-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0 0;
  display: block;
}

.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #7FA089;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.upload-button:hover {
  background-color: #8DB4A8;
  transform: translateY(-1px);
}

.upload-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-icon {
  flex-shrink: 0;
}

.upload-message {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
  color: #ff6b6b;
}

.upload-message.success {
  color: #4CAF50;
}

.upload-message.progress {
  color: #2196F3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .wrapped-component {
    padding: 20px;
  }
  
  .upload-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .upload-dropzone {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  
  .dropzone-text {
    font-size: 16px;
  }
  
}
