/* Tool Section */
.tool-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tool-section h1 {
  color: #4a6bff;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.tool-section h2 {
  color: #4a6bff;
  margin: 2rem 0 1rem 0;
  font-size: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.tool-section h3 {
  color: #4a6bff;
  margin: 1.5rem 0 1rem 0;
  font-size: 1.25rem;
}

.tool-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tool-section ol, .tool-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.tool-section li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

input[type="file"],
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #4a6bff;
  box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.btn {
  background-color: #4a6bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background-color: #3a5be0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

/* Signature Canvas */
#signaturePad {
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  cursor: crosshair;
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#clearSig {
  margin-top: 10px;
  background-color: #6c757d;
}

#clearSig:hover {
  background-color: #5a6268;
}

.sig-input-section {
  margin: 1rem 0;
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: #f8f9fa;
}

/* Options Panel */
.options-panel {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

.options-panel > label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
  font-size: 1.1rem;
}

/* Progress Bar */
.progress {
  height: 25px;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin: 1.5rem 0;
  overflow: hidden;
  display: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(45deg, #4a6bff, #6a8aff);
  text-align: center;
  color: white;
  line-height: 25px;
  transition: width 0.3s ease;
  font-weight: 500;
}

/* File List */
.file-list {
  list-style-type: none;
  margin: 1rem 0;
}

.file-list li {
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  border-left: 4px solid #4a6bff;
  display: flex;
  align-items: center;
}

.file-list li::before {
  content: "📄";
  margin-right: 10px;
}

/* Ads */
.ads-block {
  margin: 2rem auto;
  max-width: 800px;
  text-align: center;
  border-radius: 5px;
  overflow: hidden;
}

.inline-ad {
  margin: 2rem auto;
}

.footer-ad {
  margin-top: 2rem;
}

/* Error Message */
.error-message {
  color: #d9534f;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 15px 0;
  display: none;
  font-weight: 500;
}

/* Success Message */
.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 15px 0;
  display: none;
  font-weight: 500;
}

/* Responsive for tool page */
@media (max-width: 768px) {
  .tool-section {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .tool-section h1 {
    font-size: 1.75rem;
  }
  
  .tool-section h2 {
    font-size: 1.3rem;
  }
  
  .tool-section h3 {
    font-size: 1.1rem;
  }
  
  .sig-input-section {
    padding: 1rem;
  }
  
  .options-panel {
    padding: 1rem;
  }
  
  #signaturePad {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .tool-section {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
}
