/*
Theme Name: Pan Theme Web 
Theme URI: https://onlinepanresizer.in/
Author: Sudip Biswas
Description: A simple HTML to WordPress theme conversion.
Version: 1.0
*/

/* Critical CSS - Load immediately */
/* SEO-Friendly Heading Styles */
.seo-subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  font-weight: normal;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  content-visibility: auto;
  contain-intrinsic-size: 0 40px;
}

@media (max-width: 768px) {
  .seo-subtitle {
    font-size: 16px;
  }
}

/* Ensuring H1 is properly styled */
.resizer-card h1 {
  color: #212529;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 0 50px;
  display: block;
}

@media (max-width: 480px) {
  .resizer-card h1 {
    font-size: 22px;
  }
}

/* FAQ Section Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: visible;
}

.faq-question {
  padding: 20px 20px 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e1e4e8;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.faq-answer {
  padding: 20px;
  background-color: #fff;
}

.faq-answer p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* SEO Section Styles - Lazy loaded */
.seo-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.seo-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.seo-item h3 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.seo-item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Toggle Styles */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f0f2f5;
}

.toggle-icon {
  font-size: 20px;
  font-weight: bold;
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .seo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .seo-item {
    padding: 20px;
  }
  
  .seo-item h3 {
    font-size: 16px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }
  
  .faq-question {
    padding: 15px 15px 12px 15px;
  }
  
  .faq-answer {
    padding: 15px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Optimize paint performance */
.image-container, .editor-container, .preview-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimize paint performance */
.image-container, .editor-container, .preview-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e88e5;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

body {
  background-color: #f5f7f8;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: #1e88e5; /* Blue color for header */
  border-bottom: 1px solid #0d47a1;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}





header h1 {
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  margin-right: 15px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

header h1 {
  flex: 1;
  margin: 0;
}

.menu-toggle:hover {
  opacity: 0.8;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
}

.mobile-menu a:hover {
  background: #f5f5f5;
}

/* Main Content */
main {
  padding: 10px 0;
}

.resizer-card {
  background-color: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 30px;
  margin-top: 20px;
  text-align: center;
}

h2 {
  color: #212529;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.description {
  color: #444a50;
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Upload Box */
.upload-container {
  max-width: 450px;
  margin: 0 auto;
}

.upload-box {
  border: 2px dashed #3b82f6;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background-color: #f0f7ff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box:hover {
  background-color: #e6f0ff;
}

.upload-box i {
  font-size: 48px;
  color: #3b82f6;
  margin-bottom: 15px;
}

.upload-text {
  color: #212529;
  font-size: 16px;
  margin-bottom: 10px;
}

.error-message {
  background-color: #fee2e2;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.supported-formats {
  color: #555b61;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.choose-file-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.choose-file-btn:hover {
  background-color: #2563eb;
}

/* File Preview */
.file-preview {
  margin-top: 20px;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.file-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: #f0f7ff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.file-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f0f7ff;
  flex: 1;
  aspect-ratio: 1;
  contain: layout paint;
}

/* Prevent layout shifts by reserving space */
img {
  max-width: 100%;
  height: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* Reserve space for dynamic content */
[data-height] {
  min-height: var(--min-height);
  contain: layout paint;
}

.file-info {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0f7ff;
}

.file-details {
  text-align: left;
}

.file-size, .file-dimensions {
  color: #6c757d;
  font-size: 14px;
}

.delete-btn {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delete-btn:hover {
  background-color: #dc2626;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.reset-btn {
  background-color: white;
  color: #212529;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reset-btn:hover {
  background-color: #f5f5f5;
}

.next-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.next-btn:hover, .next-btn:focus {
  background-color: #2563eb;
  outline: 2px solid #0047b3;
  outline-offset: 2px;
}

/* Step 2: Type Selection */
.step-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #212529;
}

.type-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.type-option {
  cursor: pointer;
}

.type-option input[type="radio"] {
  display: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 120px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  background-color: white;
}

.type-option input[type="radio"]:checked + .type-card {
  border-color: #3b82f6;
  background-color: #f0f7ff;
}

.type-card i {
  font-size: 32px;
  margin-bottom: 10px;
  color: #424242;
}

.type-option input[type="radio"]:checked + .type-card i {
  color: #3b82f6;
}

.type-card span {
  font-size: 16px;
  font-weight: 500;
  color: #424242;
}

.back-btn {
  background-color: white;
  color: #212529;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn:hover {
  background-color: #f5f5f5;
}

/* Button Disabled State */
.next-btn:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.next-btn:disabled:hover {
  background-color: #94a3b8;
}

/* Step 3: Editor Containers */
.editor-container {
  max-width: 750px;
  margin: 0 auto;
}

.editor-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editing-symbols {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.edit-symbol {
  background-color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  font-size: 20px;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.edit-symbol:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  background-color: #f0f7ff;
  border-color: #3b82f6;
  color: #3b82f6;
}

.editor-panel {
  margin-top: 10px;
  padding: 15px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.05);
  display: none;
}

.editor-panel.active {
  display: block;
}

.slider-value {
  margin-left: 10px;
  font-size: 0.9em;
  font-weight: bold;
  color: #555;
}

@media (min-width: 768px) {
  .image-container {
    flex: 1;
  }
}

.image-container {
  position: relative;
  background-color: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image Editor Area */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

/* Photo Selection Overlay */
.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.photo-overlay-area {
  position: absolute;
  width: 243px;
  height: 307px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  z-index: 6;
}

/* Document overlay has been removed */

.image-canvas-container {
  position: relative;
  cursor: move;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-canvas-container canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Image editing controls */
.zoom-value {
  margin: 0 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  user-select: none;
}

.editor-controls {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.control-group {
  margin-bottom: 15px;
}

.control-label {
  display: block;
  margin-bottom: 5px;
  color: #6c757d;
  font-size: 14px;
}

.control-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 3px;
  background-color: #e0e0e0;
  outline: none;
}

.control-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #3b82f6;
  cursor: pointer;
}

.control-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #3b82f6;
  cursor: pointer;
}

.control-btn {
  background-color: white;
  color: #212529;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 5px;
  margin-bottom: 5px;
}

.control-btn:hover {
  background-color: #f5f5f5;
}

.download-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.download-btn:hover {
  background-color: #2563eb;
}

.preview-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.preview-btn:hover {
  background-color: #2563eb;
}

.size-info {
  margin: 15px 0;
  text-align: center;
}

.size-text {
  color: #6c757d;
  font-size: 14px;
}

/* Crop Overlay */
.crop-overlay {
  position: absolute;
  border: 2px solid #1e90ff;
  background-color: rgba(30, 144, 255, 0.1);
  z-index: 10;
  cursor: move;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75);
}

.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #1e90ff;
  border: 2px solid white;
  border-radius: 50%;
  z-index: 11;
}

.crop-handles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: white;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 11;
}

.crop-handle.tl {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}


/* Specifications Section */
.specifications-section {
  padding: 60px 0;
  background-color: #eef2f6;
  margin-top: 40px;
}

.specs-title {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}

.specs-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #3b82f6;
  margin: 15px auto 0;
  border-radius: 2px;
}

.specs-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  flex-direction: row;
  flex-wrap: wrap;
}

.specs-card {
  flex: 1;
  width: calc(33.33% - 14px);
  min-width: 250px;
  max-width: 350px;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  background-color: white;
}

.specs-card.selected {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.photo-specs.selected {
  background-color: #e6f0ff;
  border: 2px solid #1e63e0;
}

.signature-specs.selected {
  background-color: #e6ffe6;
  border: 2px solid #17a160;
}

.document-specs.selected {
  background-color: #ffe6e6;
  border: 2px solid #cc3f3f;
}

.photo-specs.selected {
  background-color: #e6f0ff;
  border: 2px solid #1e63e0;
}

.signature-specs.selected {
  background-color: #e6ffe6;
  border: 2px solid #17a160;
}

.document-specs.selected {
  background-color: #ffe6e6;
  border: 2px solid #cc3f3f;
}

.specs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.specs-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.specs-header i {
  font-size: 24px;
  margin-right: 15px;
}

.specs-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.specs-list li:last-child {
  margin-bottom: 0;
}

.specs-list li i {
  margin-right: 10px;
  font-size: 14px;
}

/* Photo Specifications Card - Light Blue */
.photo-specs {
  background-color: #f0f5ff;
  border: 1px solid #e1e9ff;
}

.photo-specs .specs-header i,
.photo-specs .specs-list li i {
  color: #1e63e0;
}

/* Signature Specifications Card - Light Green */
.signature-specs {
  background-color: #f0fff5;
  border: 1px solid #e1ffd9;
}

.signature-specs .specs-header i,
.signature-specs .specs-list li i {
  color: #17a160;
}

/* Document Requirements Card - Light Red */
.document-specs {
  background-color: #fff5f5;
  border: 1px solid #ffe1e1;
}

.document-specs .specs-header i,
.document-specs .specs-list li i {
  color: #cc3f3f;
}

/* Responsive adjustments for specifications section */
@media (max-width: 900px) {
  .specs-container {
    flex-direction: column;
    align-items: center;
  }

  .specs-card {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .specs-header h3 {
    font-size: 18px;
  }

  .specs-list li {
    font-size: 14px;
  }
}

/* Key Features Section */
.key-features-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.features-title {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
  position: relative;
}

.features-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #666;
  font-size: 18px;
}

.features-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  flex: 1;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 24px;
}

.feature-content h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #333;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #555;
}

.feature-list li i {
  color: #4cd471;
  margin-right: 10px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .features-container {
    flex-direction: column;
    align-items: center;
  }

  .feature-card {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .features-description {
    font-size: 16px;
    padding: 0 15px;
  }

  .feature-content h3 {
    font-size: 20px;
  }

  .feature-list li {
    font-size: 14px;
  }
}

/* How to Use Section Responsive */
@media (max-width: 768px) {
  .how-to-steps {
    padding: 20px !important;
    margin: 20px auto !important;
  }

  .step-item {
    margin-bottom: 15px !important;
  }

  .step-item p {
    font-size: 14px !important;
  }
}

.crop-handle.tr {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.crop-handle.bl {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.crop-handle.br {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}

.crop-handle.tc {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.crop-handle.rc {
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.crop-handle.bc {
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.crop-handle.lc {
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.crop-info {
  color: #333;
  font-size: 14px;
  margin-bottom: 5px;
}

.crop-dimensions {
  color: #1e90ff;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.crop-preview-container {
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
}

.crop-preview-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.crop-preview-image-container {
  display: flex;
  justify-content: center;
  background-color: #fff;
  padding: 5px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crop-preview-image {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* Preview Overlay */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.preview-container {
  background-color: white;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.preview-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-header h3 {
  margin: 0;
  font-size: 18px;
  color: #212529;
}

.preview-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s ease;
}

.preview-close-btn:hover {
  color: #212529;
}

.preview-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.preview-image {
  max-width: 100%;
  max-height: 50vh;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
}

.preview-file-info {
  width: 100%;
  margin-bottom: 20px;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.preview-file-info p {
  margin: 5px 0;
}

.preview-download-btn {
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-download-btn:hover {
  background-color: #2563eb;
}

/* Responsive */
/* Base Mobile First Styles */
@media (max-width: 480px) {
  .resizer-card {
    padding: 15px 10px;
  }

  h2 {
    font-size: 20px;
  }

  .description {
    font-size: 14px;
  }

  .upload-box {
    padding: 20px 10px;
  }

  .upload-box i {
    font-size: 32px;
  }

  .quick-links {
    gap: 10px;
  }

  .quick-links a {
    font-size: 13px;
  }

  .preview-container {
    width: 95%;
    padding: 15px;
  }

  .editor-controls {
    padding: 10px;
  }

  .control-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .type-card {
    width: 100px;
    height: 80px;
  }

  .features-container {
    gap: 15px;
  }

  .feature-card {
    padding: 15px;
  }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
  .resizer-card {
    padding: 20px 15px;
  }

  h2 {
    font-size: 24px;
  }

  .upload-box {
    padding: 30px 15px;
  }
  
  .type-card {
    width: 130px;
    height: 100px;
  }

  .editor-controls {
    padding: 15px;
  }

  .feature-card {
    min-width: 220px;
  }
}

/* Small Desktop Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .type-card {
    width: 150px;
  }

  .feature-card {
    min-width: 250px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .edit-symbol:hover {
    transform: none;
  }

  .type-card:hover {
    transform: none;
  }

  .control-btn:hover {
    background-color: #f0f0f0;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .upload-box i,
  .feature-icon i {
    font-weight: 300;
  }
}

/* Safe Area for Modern iOS Devices */
@supports (padding: max(0px)) {
  .header {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
}

/* Improved focus styles for accessibility */
button:focus-visible, 
a:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible, 
[tabindex]:focus-visible {
  outline: 3px solid #1e88e5;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.4);
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

/* High contrast mode support */
@media (forced-colors: active) {
  button:focus-visible, 
  a:focus-visible {
    outline: 2px solid CanvasText;
  }
}



.control-btn:focus,
.download-btn:focus,
.preview-btn:focus,
.back-btn:focus,
.share-button:focus {
  outline: 3px solid #1e88e5;
  outline-offset: 2px;
}

  .type-options {
    gap: 15px;
  }

  .type-card {
    width: 140px;
    height: 100px;
  }

  .preview-container {
    width: 95%;
    max-height: 95vh;
  }

  .preview-image {
    max-height: 40vh;
  }

  .preview-download-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 20px;
  }

  .description {
    font-size: 14px;
  }

  .upload-box i {
    font-size: 36px;
  }

  .upload-text {
    font-size: 14px;
  }

  .supported-formats {
    font-size: 12px;
  }

  .choose-file-btn, .reset-btn, .next-btn, .back-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .type-card {
    width: 110px;
    height: 90px;
  }

  .type-card i {
    font-size: 24px;
  }

  .type-card span {
    font-size: 14px;
  }
}

/* Signature Selection Overlay */
.signature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.signature-overlay-area {
  position: absolute;
  width: 288px;
  height: 128px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  z-index: 6;
}
/* Privacy Policy Section */
.privacy-section {
  padding: 60px 0;
  background-color: #f5f7f8;
}

.privacy-content {
  max-width: 800px;
  margin: 40px auto;
}

.privacy-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.privacy-card h5 {
  color: #333;
  font-size: 20px;
  margin-bottom: 15px;
}

.privacy-card p {
  color: #666;
  margin-bottom: 20px;
}

.privacy-card ul {
  list-style: none;
  padding: 0;
}

.privacy-card ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #555;
}

.privacy-card ul li i {
  color: #4cd471;
  margin-right: 10px;
}

/* Footer Styles */
.footer {
  background-color: #1e88e5;
  padding: 30px 0;
  color: white;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.quick-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.quick-links a:hover {
  opacity: 0.8;
}

.copyright {
  margin: 0;
  text-align: center;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .quick-links {
    gap: 15px;
  }

  .quick-links a {
    font-size: 14px;
  }
  
  .how-to-steps {
    padding: 20px !important;
    margin: 20px auto !important;
  }

  .step-item {
    margin-bottom: 15px !important;
  }

  .step-item p {
    font-size: 14px !important;
  }
}