/* ===== TOOL CONTAINER ===== */
.tool-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
  min-height: 80vh;
}

/* ===== TOOL HEADER ===== */
.tool-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.tool-title {
  font-size: 2.8rem;
  color: #1a365d;
  margin-bottom: 10px;
  font-weight: 800;
  background: linear-gradient(90deg, #3182ce, #805ad5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-description {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ===== TOOL TIP ===== */
.tool-tip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ebf8ff, #e6fffa);
  padding: 12px 20px;
  border-radius: 12px;
  color: #2d3748;
  border-left: 4px solid #3182ce;
  box-shadow: 0 2px 10px rgba(49, 130, 206, 0.1);
}

.tool-tip svg {
  color: #3182ce;
  stroke-width: 2;
}

.tool-tip a {
  color: #3182ce;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.tool-tip a:hover {
  color: #2c5282;
  text-decoration: underline;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
}

/* ===== DROP ZONE ===== */
.drop-zone {
  border: 3px dashed #cbd5e0;
  border-radius: 16px;
  padding: 70px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #f7fafc, #edf2f7);
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(66, 153, 225, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.drop-zone:hover {
  border-color: #4299e1;
  background: linear-gradient(145deg, #ebf8ff, #e6fffa);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(66, 153, 225, 0.15);
}

.drop-zone.dragover {
  border-color: #4299e1;
  background: #bee3f8;
  border-style: solid;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(66, 153, 225, 0); }
}

.dropzone-icon {
  color: #4299e1;
  margin-bottom: 25px;
  filter: drop-shadow(0 4px 6px rgba(66, 153, 225, 0.2));
}

.dropzone-icon svg {
  width: 80px;
  height: 80px;
  stroke-width: 1.5;
}

.drop-zone h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 700;
}

.drop-zone p {
  color: #718096;
  margin: 6px 0;
  font-size: 1.1rem;
}

.file-info {
  font-size: 0.95rem;
  color: #a0aec0;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
}

/* ===== FILE LIST ===== */
.file-list {
  margin-top: 30px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.file-list-header h4 {
  margin: 0;
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-list-header h4::before {
  content: '📁';
  font-size: 1.2rem;
}

.btn-clear {
  background: linear-gradient(135deg, #fc8181, #f56565);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear:hover {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.btn-clear::before {
  content: '🗑️';
}

#fileItems {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.file-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.file-icon {
  margin-right: 15px;
  color: #4299e1;
  font-size: 1.5rem;
  background: #ebf8ff;
  padding: 10px;
  border-radius: 10px;
}

.file-name {
  flex: 1;
  color: #2d3748;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
}

.file-size {
  color: #718096;
  font-size: 0.95rem;
  margin: 0 15px;
  background: #f7fafc;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.btn-remove {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  font-size: 1.8rem;
  padding: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: #fed7d7;
  color: #e53e3e;
  transform: rotate(90deg);
}

/* ===== PROGRESS BAR ===== */
.progress-container {
  margin: 30px 0;
  background: #f7fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.progress-bar {
  height: 12px;
  background: linear-gradient(90deg, #4299e1, #805ad5, #d53f8c);
  border-radius: 6px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 25%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 75%);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
  min-width: 200px;
  justify-content: center;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3182ce, #2c5282);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(66, 153, 225, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, #cbd5e0, #a0aec0);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: #4299e1;
  border: 2px solid #4299e1;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 180px;
}

.btn-secondary:hover {
  background: #ebf8ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(66, 153, 225, 0.2);
}

.btn-loader {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-text {
  display: inline-block;
}

/* ===== STATUS MESSAGE ===== */
.status-message {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  margin: 25px 0;
  font-weight: 600;
  font-size: 1.1rem;
  display: none;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-success {
  background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
  color: #22543d;
  border: 2px solid #68d391;
}

.status-error {
  background: linear-gradient(135deg, #fed7d7, #feb2b2);
  color: #742a2a;
  border: 2px solid #fc8181;
}

.status-info {
  background: linear-gradient(135deg, #bee3f8, #90cdf4);
  color: #2c5282;
  border: 2px solid #4299e1;
}

/* ===== TOOL FEATURES ===== */
.tool-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.feature {
  text-align: center;
  padding: 30px 25px;
  background: linear-gradient(145deg, white, #f7fafc);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4299e1, #805ad5);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  padding: 20px;
  background: linear-gradient(135deg, #ebf8ff, #e6fffa);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h4 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.feature p {
  color: #718096;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #718096;
  margin-top: 80px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(145deg, #f7fafc, #edf2f7);
}

.footer-content p {
  margin: 10px 0;
  font-size: 1rem;
}

.footer-content p:first-child {
  color: #4a5568;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .tool-container {
    max-width: 95%;
    margin: 20px auto;
  }
  
  .tool-title {
    font-size: 2.3rem;
  }
  
  .upload-area {
    padding: 30px;
  }
  
  .tool-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .tool-title {
    font-size: 2rem;
  }
  
  .upload-area {
    padding: 25px;
  }
  
  .drop-zone {
    padding: 50px 20px;
  }
  
  .dropzone-icon svg {
    width: 60px;
    height: 60px;
  }
  
  .tool-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .file-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .file-name {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
  
  .file-size {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .tool-header {
    margin-bottom: 30px;
  }
  
  .tool-title {
    font-size: 1.8rem;
  }
  
  .tool-description {
    font-size: 1rem;
  }
  
  .upload-area {
    padding: 20px;
  }
  
  .file-list {
    padding: 20px;
  }
  
  .file-list-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  
  .btn-clear {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-header,
.upload-area,
.tool-features {
  animation: fadeIn 0.8s ease-out;
}

.tool-features {
  animation-delay: 0.3s;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(90deg, #3182ce, #805ad5, #d53f8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animated Dropzone */
.animated-dropzone {
  position: relative;
  overflow: hidden;
}

.animated-dropzone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(66, 153, 225, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite linear;
}

/* Feature Card Enhancement */
.feature-card {
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #4299e1, #805ad5) border-box;
}

.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(66, 153, 225, 0.2);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #4299e1, #805ad5);
  transition: width 0.4s ease;
}

.feature-card:hover::after {
  width: 80%;
}
