/* Professional Bulk Upload Styles */

/* Upload Area - Enhanced Modern Design */
.upload-area {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 10px 36px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.upload-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(31, 122, 77, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.upload-area:hover::before,
.upload-area.drag-over::before {
  opacity: 1;
}

.upload-area:hover {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #1f7a4d;
  border-style: solid;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(31, 122, 77, 0.12), 
              0 8px 16px rgba(31, 122, 77, 0.08);
}

.upload-area.drag-over {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #10b981;
  border-style: solid;
  border-width: 3px;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.2),
              0 12px 24px rgba(16, 185, 129, 0.15);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.upload-area h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.upload-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.file-info {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: inline-block;
  line-height: 1.6;
  border: 1px solid rgba(203, 213, 225, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Button Group */
.button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0;
}

/* Choose File Button */
.btn-choose-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f7a4d 0%, #155e3b 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(31, 122, 77, 0.25),
              0 2px 6px rgba(31, 122, 77, 0.15);
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.btn-choose-file::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-choose-file:hover::before {
  left: 100%;
}

.btn-choose-file:hover {
  background: linear-gradient(135deg, #155e3b 0%, #0f4829 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(31, 122, 77, 0.4),
              0 4px 12px rgba(31, 122, 77, 0.3);
}

.btn-choose-file:active {
  transform: translateY(-1px);
}

/* Download Template Button */
.btn-download-template {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.25),
              0 2px 6px rgba(99, 102, 241, 0.15);
  position: relative;
  overflow: hidden;
  min-width: 200px;
}

.btn-download-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-download-template:hover::before {
  left: 100%;
}

.btn-download-template:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4),
              0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-download-template:active {
  transform: translateY(-1px);
}

/* Progress Container - Modern Design */
.progress-container {
  margin-top: 24px;
  display: none;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.progress-container > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  align-items: center;
}

.progress-container > div:first-child span {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1f7a4d 0%, #10b981 50%, #34d399 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Status Messages - Enhanced */
.error-message {
  color: #991b1b;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: none;
  border-left: 3px solid #dc2626;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.12),
              0 2px 6px rgba(220, 38, 38, 0.08);
  animation: slideDown 0.3s ease-out;
}

.success-message {
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: none;
  border-left: 3px solid #10b981;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12),
              0 2px 6px rgba(16, 185, 129, 0.08);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Instructions Section - Professional Design */
.required-fields {
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #1f7a4d;
  border-radius: 14px;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05),
              0 2px 6px rgba(0, 0, 0, 0.03);
}

.required-fields h4 {
  margin: 0 0 16px 0;
  color: #1f7a4d;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required-fields ul {
  margin: 0;
  padding-left: 24px;
  color: #374151;
}

.required-fields li {
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
}

.required-fields li::marker {
  color: #1f7a4d;
  font-weight: 700;
}

.required-fields strong {
  color: #111827;
  font-weight: 700;
}

/* Sample Table - If needed */
.sample-table {
  margin-top: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sample-table th {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  color: #1f7a4d;
}

.sample-table td {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .upload-area {
    padding: 40px 24px;
  }

  .upload-icon {
    font-size: 48px;
  }

  .upload-area h3 {
    font-size: 20px;
  }

  .button-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-choose-file,
  .btn-download-template {
    padding: 14px 32px;
    font-size: 14px;
    width: 100%;
    max-width: 320px;
  }
  
  .sample-table {
    font-size: 11px;
  }
  
  .sample-table th,
  .sample-table td {
    padding: 8px 10px;
  }

  .required-fields {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .upload-area {
    padding: 32px 20px;
  }

  .upload-icon {
    font-size: 40px;
  }

  .upload-area h3 {
    font-size: 18px;
  }

  .upload-subtitle {
    font-size: 14px;
  }

  .file-info {
    font-size: 12px;
    padding: 12px 20px;
  }

  .btn-choose-file,
  .btn-download-template {
    padding: 12px 24px;
    font-size: 13px;
    min-width: auto;
  }
}