/* Main Container */
.mere-tools-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
}

/* Tool Card */
.tool-card {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

/* Headings */
.tool-heading {
  font-size: 36px;
  font-weight: 700;
  color: #f15a24; /* Orange */
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.tool-description {
  font-size: 16px;
  color: #666;
  margin: 0 0 30px 0;
}

/* Upload Area */
.upload-area {
  background: #f8f9fa;
  border: 2px dashed #ddd;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.upload-area:hover {
  border-color: #f15a24;
  background: #fff5f0;
}

.upload-area input {
  display: none;
}

.upload-icon {
  font-size: 48px;
  color: #f15a24;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 14px;
  color: #888;
}

/* Preview Container */
.preview-container {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 20px;
}

.image-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid #eee;
  text-align: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

/* Dimension Inputs */
.dimension-inputs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #f15a24;
}

/* Aspect Ratio */
.aspect-ratio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 10px 15px;
  background: #fff;
  border-radius: 40px;
  border: 1px solid #eee;
}

.aspect-ratio input {
  width: 18px;
  height: 18px;
  accent-color: #f15a24;
}

.aspect-ratio label {
  color: #333;
  font-size: 15px;
  cursor: pointer;
}

/* Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #f15a24;
  color: white;
}

.btn-primary:hover {
  background: #000000; /* Black on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 2px solid #f15a24;
}

.btn-secondary:hover {
  background: #f15a24;
  color: white;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
}

.btn-secondary:disabled:hover {
  background: #fff;
  color: #333;
}

/* Image Info */
.image-info {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 12px;
  background: #fff;
  border-radius: 30px;
  border: 1px solid #f0f0f0;
}

/* Recent Section */
.recent-section {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
}

.recent-section h3 {
  color: #f15a24;
  font-size: 18px;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #f15a24;
}

.recent-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-size-item {
  background: #f8f9fa;
  color: #333;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid #f15a24;
  transition: all 0.2s;
  cursor: pointer;
}

.recent-size-item:hover {
  background: #000000;
  color: white;
  border-left-color: #f15a24;
}

/* Features */
.features {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.features span {
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  padding: 6px 16px;
  border-radius: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-card {
    padding: 25px 20px;
  }
  
  .tool-heading {
    font-size: 30px;
  }
  
  .dimension-inputs {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .features {
    gap: 10px;
  }
  
  .features span {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mere-tools-container {
    padding: 10px;
  }
  
  .tool-heading {
    font-size: 26px;
  }
  
  .upload-area {
    padding: 30px 15px;
  }
  
  .upload-icon {
    font-size: 40px;
  }
}