/* Custom Styles for Image Tools Pro */

:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-bg: #f8f9fa;
  --dark-bg: #212529;
  --light-text: #212529;
  --dark-text: #f8f9fa;
}

[data-theme="dark"] {
  --light-bg: #212529;
  --dark-bg: #f8f9fa;
  --light-text: #f8f9fa;
  --dark-text: #212529;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #fcfdfe;
  color: #2b2b2b;
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  padding-top: 80px;
}

[data-theme="dark"] body {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

/* Header - Logo Left, Menu Center, Buttons Right */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.container-large {
  max-width: 1300px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon-container {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0dcaf0, #0d6efd);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #4a4a4a !important;
  margin: 0 10px;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

.header-actions .btn-login {
  color: #4a4a4a;
  font-weight: 600;
}

.btn-get-started {
  background: linear-gradient(135deg, #0dcaf0, #00d2ff);
  color: white;
  border-radius: 30px;
  padding: 10px 24px;
  font-weight: 600;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 210, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-get-started:hover {
  background: #0baccc;
  transform: translateY(-2px);
  color: white;
}

/* Logo icon adjustment - circle container */
.logo-icon-container {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0dcaf0, #0d6efd);
  border-radius: 50%;
  /* Circle logo as per screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(13, 202, 240, 0.2);
}

/* Hero Banner Section */
.hero-banner-container {
  background: radial-gradient(circle at top right, #e3f2fd 0%, #ffffff 60%);
  border-radius: 40px;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  min-height: 480px; /* Refined landscape height */
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.25rem;
  color: #6c757d;
  font-weight: 400;
}

/* Floating Assets */
.floating-asset {
  position: absolute;
  z-index: 1;
  border-radius: 24px;
  /* Larger radius for larger images */
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  /* More prominent shadow */
  transition: transform 0.4s ease;
}

.floating-asset:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 100 !important;
  /* Bring to front on hover */
  box-shadow: 0 30px 60px rgba(13, 110, 253, 0.25);
  cursor: pointer;
}

.floating-asset img {
  object-fit: cover;
  display: block;
}

/* Individual Asset Sizes & Positions - Matching Screenshot Collage */
.asset-1 img { width: 230px; height: 230px; }
.asset-1 { top: -20px; left: -30px; transform: rotate(-8deg); z-index: 5; }

.asset-5 img { width: 180px; height: 180px; }
.asset-5 { top: 50%; left: 80px; transform: translateY(-50%) rotate(5deg); z-index: 4; }

.asset-2 img { width: 190px; height: 190px; }
.asset-2 { bottom: -20px; left: -10px; transform: rotate(8deg); z-index: 3; }

.asset-3 img { width: 220px; height: 220px; }
.asset-3 { top: -30px; right: -20px; transform: rotate(12deg); z-index: 5; }

.asset-6 img { width: 180px; height: 180px; }
.asset-6 { top: 48%; right: 100px; transform: translateY(-50%) rotate(-5deg); z-index: 4; }

.asset-4 img { width: 190px; height: 190px; }
.asset-4 { bottom: -10px; right: 0px; transform: rotate(-8deg); z-index: 3; }

/* Search Bar in Banner */
.search-box-container {
  max-width: 600px;
}

.search-box {
  background: white;
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
  transition: all 0.3s;
}

.search-box {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-box:focus-within {
  box-shadow: 0 25px 50px rgba(13, 110, 253, 0.15);
  border-color: #0d6efd;
  transform: translateY(-4px) scale(1.01);
}

.search-box:focus-within .search-box-icon {
  color: #0d6efd !important;
  transform: scale(1.2);
}

.search-box-icon {
  transition: all 0.3s ease;
}

.btn-search {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: white !important;
  font-weight: 700;
  border-radius: 30px !important;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.2);
  border: none;
  padding: 10px 25px !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-search:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 25px rgba(13, 110, 253, 0.3);
  filter: brightness(1.1);
}

/* Tool Cards Redesign (Screenshot Match) */
.tool-card-modern {
  background: #f5faff !important;
  /* Light blue tint from mockup */
  border: 1px solid #e1effe !important;
  /* Specific border color */
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.03);
  cursor: pointer;
}

.tool-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.08);
  border-color: #c9e2ff !important;
  background: #ffffff !important;
  /* Slight shift to white on hover */
}

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-link:hover {
  background: #eef2f6;
  color: #0d6efd !important;
  transform: translateY(-3px);
}

.footer-links a:hover {
  color: #0d6efd !important;
}

.dropdown-menu {
  padding: 1rem;
  margin-top: 10px !important;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #4a4a4a;
}

.dropdown-item:hover {
  background-color: #f0f7ff;
  color: #0d6efd;
}

.icon-sq-container {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f2ff;
  /* Mockup light blue square */
  color: #0d6efd;
  font-size: 1.1rem;
}

.preview-mini-box {
  width: 60px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: #e9f0f7;
  border: 1px dashed rgba(13, 110, 253, 0.15);
}

.tool-title {
  color: #1a1a1a;
  font-size: 1.15rem;
  font-weight: 700;
}

/* Internal Page Styles */
.page-hero {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(circle at center, #f5faff 0%, #ffffff 100%);
  border-radius: 40px;
  margin-bottom: 4rem;
}

.feature-pill {
  padding: 8px 20px;
  background: #e1effe;
  color: #0d6efd;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Pricing Section */
.pricing-card {
  border-radius: 30px;
  padding: 3rem 2rem;
  border: 1px solid #e1effe;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.pricing-card.popular {
  border-color: #0d6efd;
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: white;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Gallery Section */
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 2rem 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Blog Section */
.blog-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.05);
}

/* Show More Button Styling */
.btn-show-more {
  background: #f0f7ff;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-show-more:hover {
  background: #0d6efd;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
}

/* Tool Page Design System */
.tool-container {
  max-width: 900px;
  margin: 120px auto 60px auto;
  background: white;
  padding: 50px;
  border-radius: 40px;
  border: 1px solid #eef2f6;
  box-shadow: 0 40px 100px rgba(13, 110, 253, 0.05);
}

.upload-zone {
  border: 2px dashed #0d6efd44;
  background: #f8fbff;
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  margin-bottom: 2rem;
}

.upload-zone:hover {
  border-color: #0d6efd;
  background: #f0f7ff;
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.08);
}

.upload-zone i {
  color: #0d6efd;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.upload-zone:hover i {
  transform: translateY(-10px) scale(1.1);
}

.control-panel {
  background: white;
  border-radius: 30px;
  padding: 30px;
  border: 1px solid #f1f5f9;
  margin-top: 2rem;
}

.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: #eef2f6;
  outline: none;
  margin: 20px 0;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d6efd;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
  transition: all 0.2s ease;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-amount-badge {
  background: #0d6efd;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-action {
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  color: white !important;
  border: none;
  padding: 14px 30px !important;
  border-radius: 50px !important;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-action:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.25);
  filter: brightness(1.1);
}

.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 4rem;
}

.preview-container {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  background: #f8fbff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.btn-back-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 12px;
  background: #f8fbff;
}

.btn-back-link:hover {
  color: #0d6efd;
  background: #f0f7ff;
  transform: translateX(-5px);
}

.btn-back-link i {
  transition: transform 0.3s ease;
}

.btn-nav-back {
  background: white;
  border: 1px solid #0d6efd44;
  color: #0d6efd;
  font-weight: 600;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.section-title {
  font-size: 2.5rem;
  color: #1a202c;
  margin-bottom: 15px;
}

/* Split Tool Layout Styles */
.tool-split-wrapper {
  margin-top: 100px !important;
  margin-bottom: 80px !important;
}

.tool-demo-card {
  position: relative;
  background: white;
  border-radius: 40px;
  padding: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 40px 100px rgba(13, 110, 253, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-demo-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: 0 60px 120px rgba(13, 110, 253, 0.1);
}

.demo-main-img {
  width: 100%;
  height: 450px;
  object-fit: contain;
  background-color: #f8fafc;
  border-radius: 30px;
  transition: opacity 0.3s ease-in-out, transform 0.4s ease;
}

.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

.demo-badge {
  position: absolute;
  top: 40px;
  left: 40px;
  background: rgba(13, 110, 253, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.bg-primary-subtle {
  background-color: #e1effe !important;
}

/* Fix for tool container in split view */
#toolInteractionPanel .tool-container {
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

@media (max-width: 991px) {
  .tool-split-wrapper {
    margin-top: 60px !important;
  }
  
  .demo-main-img {
    height: 300px;
  }
}

.tool-description {
  line-height: 1.6;
  color: #636e72;
}

.action-link {
  color: #0d6efd;
  font-size: 0.95rem;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
}

.action-link:hover {
  color: #0056b3;
}

.action-link:hover i {
  margin-left: 8px !important;
}

/* --- Responsive Media Queries --- */

/* Laptops & Desktop (large) */
@media (min-width: 1200px) {
  .hero-banner-container {
    padding: 120px 60px;
  }
}

/* Tablets (medium) */
@media (max-width: 991px) {
  .hero-headline {
    font-size: 2.8rem;
  }

  .asset-1,
  .asset-3 {
    opacity: 0.5;
    /* Fade decorative images on tablets */
    transform: scale(0.8);
  }

  .site-header .navbar-nav {
    padding: 1rem 0;
  }

  .header-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Mobile Phones (small) */
@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }

  .hero-banner-container {
    padding: 60px 20px;
    border-radius: 24px;
    margin-top: 10px;
  }

  .hero-headline {
    font-size: 2.1rem;
    letter-spacing: -1px;
  }

  .hero-subtext {
    font-size: 1.05rem;
  }

  .floating-asset {
    display: none;
    /* Keep it clean on mobile */
  }

  .search-box {
    padding: 6px 6px 6px 18px;
  }

  .btn-search {
    padding: 8px 16px !important;
    font-size: 0.9rem;
  }

  .btn-search span {
    display: none;
    /* Hide 'Search' text, keep icon */
  }

  .tool-card-modern {
    border-radius: 20px;
  }

  .footer-links {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 15px !important;
  }
}

/* Extra Small (very small phones) */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.8rem;
  }
}

.tool-card .card-body {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.tool-card .fas {
  opacity: 0.85;
  margin-bottom: 1.5rem !important;
  transition: transform 0.3s;
}

.tool-card:hover .fas {
  transform: scale(1.1);
}

.tool-card .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tool-card .card-text {
  font-size: 0.95rem;
  color: var(--secondary-color);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

[data-theme="dark"] .tool-card .card-text {
  color: #adb5bd;
}

.tool-card .btn {
  border-radius: 30px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  /* Make button stretch at bottom */
  margin-top: auto;
}

/* Tool Page Styles */
.tool-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.upload-zone {
  border: 3px dashed var(--primary-color);
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  background-color: rgba(13, 110, 253, 0.05);
  transition: all 0.3s;
  cursor: pointer;
}

.upload-zone:hover {
  background-color: rgba(13, 110, 253, 0.1);
  border-color: var(--info-color);
}

.upload-zone.dragover {
  background-color: rgba(13, 110, 253, 0.2);
  border-color: var(--success-color);
}

.preview-container {
  position: relative;
  margin: 2rem 0;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-panel {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .control-panel {
  background-color: #2d2d2d;
}

.btn-action {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-action:hover {
  transform: scale(1.05);
}

.progress-container {
  margin: 1rem 0;
}

.status-indicator {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-processing {
  background-color: var(--info-color);
  color: white;
}

.status-completed {
  background-color: var(--success-color);
  color: white;
}

.status-error {
  background-color: var(--danger-color);
  color: white;
}

/* Comparison View */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
}

.comparison-item {
  text-align: center;
}

.comparison-item h5 {
  margin-bottom: 1rem;
}

/* Premium Slider UI */
.custom-range-container {
  padding: 1.5rem;
  background: rgba(13, 110, 253, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(13, 110, 253, 0.1);
  margin-bottom: 2rem;
}

[data-theme="dark"] .custom-range-container {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
}

.range-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.05rem;
}

.range-amount-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  outline: none;
}

[data-theme="dark"] .custom-range-slider {
  background: #495057;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: grab;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.2), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.custom-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.custom-range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: grab;
  border: none;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15), 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Crop Tool Styles */
.crop-container {
  position: relative;
  display: inline-block;
  margin: 2rem 0;
}

.crop-overlay {
  position: absolute;
  border: 2px dashed var(--primary-color);
  background-color: rgba(13, 110, 253, 0.1);
  cursor: move;
}

.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border: 2px solid white;
  border-radius: 50%;
  cursor: nwse-resize;
}

/* Footer Styles */
.main-footer {
  margin-top: auto;
}

.ad-placeholder {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .tool-container {
    padding: 1rem;
  }

  .upload-zone {
    padding: 2rem 1rem;
  }

  .btn-action {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Loading Spinner */
.spinner-border-custom {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* File Info Display */
.file-info {
  background-color: rgba(13, 110, 253, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

[data-theme="dark"] .file-info {
  background-color: rgba(13, 110, 253, 0.2);
}

/* Preset Buttons */
.preset-btn {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
}

/* QR Code Display */
.qr-code-display {
  padding: 2rem;
  background: white;
  border-radius: 10px;
  display: inline-block;
  margin: 1rem 0;
}

[data-theme="dark"] .qr-code-display {
  background: #2d2d2d;
}

/* Clear Pic Modern Additions */
.glass-header {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .glass-header {
  background: rgba(33, 37, 41, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.glass-header .navbar-brand,
.glass-header .nav-link {
  color: var(--light-text) !important;
}

[data-theme="dark"] .glass-header .navbar-brand,
[data-theme="dark"] .glass-header .nav-link {
  color: var(--dark-text) !important;
}

.modern-title {
  background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  font-size: 1.2rem;
  z-index: 10;
  pointer-events: none;
}

.custom-search-input {
  padding-left: 3.5rem;
  padding-right: 1.5rem;
  height: 3.5rem;
  border-radius: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.custom-search-input:focus {
  box-shadow: 0 15px 35px rgba(13, 110, 253, 0.15);
  border-color: #0d6efd;
  background: #fff;
}

[data-theme="dark"] .custom-search-input {
  background: rgba(45, 45, 45, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .custom-search-input:focus {
  background: #333;
  border-color: #0dcaf0;
  box-shadow: 0 15px 35px rgba(13, 202, 240, 0.15);
}

[data-theme="dark"] .custom-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light {
  color: var(--light-text);
  border-color: rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-light {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-outline-light:hover {
  background-color: var(--primary-color);
  color: white;
}