/* ===== PDF TO WORD STYLES ===== */

/* Success and Error Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #c3e6cb;
  animation: slideIn 0.3s ease;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #f5c6cb;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-header {
  text-align: center;
  padding: 3rem 2rem 1rem;
  background: var(--accent);
  background-size: cover;
}

.tool-header-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.tool-title {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 800;
}

.tool-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(44, 62, 80, 0.08);
  color: var(--secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  margin-top: 1rem;
}

.tool-header-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2.5rem;
  opacity: 0.9;
}

.graphic-pdf, .graphic-doc {
  width: 100px;
  height: 130px;
  /* background: tomato; */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transform: rotate(3deg);
}

.graphic-pdf {
  background: var(--primary);
}

.graphic-doc {
  background: var(--word-primary);
  transform: rotate(-3deg);
}

.graphic-pdf i {
  font-size: 3.5rem;
  color: var(--light);
}

.graphic-doc i {
  font-size: 3.5rem;
  color: var(--light);
}

.graphic-arrow i {
  font-size: 2.5rem;
  color: var(--secondary-light);
  opacity: 0.7;
}


.tool-container {
  max-width: 1000px;
  margin: -50px auto 0;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 10;
}

.tool-wrapper {
  background: var(--light);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.upload-area {
  border: 2px dashed rgba(51, 51, 51, 0.2);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  transition: all 0.3s;
  background: var(--accent);
  cursor: pointer;
  margin: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.upload-area.highlight {
  border-color: var(--primary);
  background: rgba(217, 79, 79, 0.03);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.upload-icon {
  font-size: 4.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.upload-text h3 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.upload-text p {
  color: var(--secondary-light);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.upload-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--light);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(217, 79, 79, 0.3);
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.upload-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 79, 79, 0.4);
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(44, 62, 80, 0.05);
  padding: 0.7rem 1.3rem;
  border-radius: 30px;
  font-size: 0.95rem;
  color: var(--secondary);
}

.file-info-container {
  padding: 0 2.5rem 1rem;
  display: none;
}

.file-info-card {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: 12px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.file-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 79, 79, 0.1);
  border-radius: 10px;
  margin-right: 1.2rem;
  flex-shrink: 0;
}

.file-icon i {
  color: var(--primary);
  font-size: 1.5rem;
}

.file-name {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.file-size {
  font-size: 0.9rem;
  color: var(--secondary-light);
}

.file-actions {
  display: flex;
  gap: 0.8rem;
}

.file-action-btn {
  background: transparent;
  border: none;
  color: var(--secondary-light);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-action-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--primary);
}

.conversion-options {
  padding: 0 2.5rem 2rem;
  display: none;
}

.options-header {
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.options-title {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.options-title i {
  color: var(--primary);
}

.options-subtitle {
  color: var(--secondary-light);
  font-size: 1rem;
  margin-left: 2.3rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.option-card {
  background: white;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  border: 1px solid #f0f4ff;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  border-color: #e0e7ff;
}

.option-icon {
  width: 50px;
  height: 50px;
  background: rgba(29, 53, 87, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon i {
  color: var(--primary);
  font-size: 1.4rem;
}

.option-content {
  flex-grow: 1;
}

.option-content h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.option-control {
  margin-top: 1rem;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--secondary);
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  background: #e0e0e0;
  border-radius: 34px;
  transition: .4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.option-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: white;
  color: var(--secondary);
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.select-wrapper select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.select-wrapper i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-light);
  pointer-events: none;
}

.convert-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem 2.5rem;
}

.convert-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 5px 25px rgba(225, 29, 72, 0.3);
  margin-bottom: 1.5rem;
}

.convert-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(225, 29, 72, 0.4);
}

.convert-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quality-assurance {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
}

.quality-assurance i {
  color: #f59e0b;
}

/* Progress Indicator */
.progress-container {
  width: 100%;
  padding: 2.5rem;
  display: none;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.progress-header h4 {
  font-size: 1.3rem;
  color: var(--secondary);
  font-weight: 600;
}

.progress-percent {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
}

.progress-bar {
  height: 12px;
  background-color: #e0e7ff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  font-size: 1.05rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 2rem;
}

.progress-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  margin: 0 auto;
}

.progress-details .detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--secondary);
  font-size: 1rem;
}

.progress-details .detail i {
  font-size: 1.3rem;
  color: var(--primary);
}

#originalFile, #outputFile {
  font-weight: 500;
}

/* Quality Section */
.quality-section {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #ffffff 0%, #f9fbfd 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quality-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 4rem;
  align-items: center;
}

.quality-content {
  flex: 1;
}

.quality-content h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1.8rem;
  font-weight: 700;
}

.quality-content p {
  font-size: 1.1rem;
  color: var(--secondary-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.quality-features {
  list-style: none;
}

.quality-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  color: var(--secondary);
}

.quality-features li i {
  color: #10b981;
  font-size: 1.3rem;
}

.quality-image {
  flex: 1;
  position: relative;
}

.image-comparison {
  display: flex;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  position: relative;
}

.before, .after {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.before {
  background: linear-gradient(135deg, #f1faee 0%, #e9f5e9 100%);
}

.after {
  background: linear-gradient(135deg, #ebf3fb 0%, #e1ebf7 100%);
}

.before:before, .after:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}
/* .tool-header-graphic {
  gap: 1.5rem;
}

.graphic-pdf, .graphic-doc {
  width: 80px;
  height: 100px;
}

.graphic-pdf i, .graphic-doc i {
  font-size: 2.5rem;
} */

@media (max-width: 600px) {
  .upload-area {
    margin: 1rem auto;
    padding: 2rem 0.5rem;
    max-width: 95vw;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .file-info-container {
    margin: 1rem auto;
    width: 100%;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .file-info-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1rem auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .file-info {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .upload-area, .file-info-container, .file-info-card {
    max-width: 99vw;
    padding: 1rem 0.2rem;
  }
}