body.image-tool-page {
  background: linear-gradient(180deg, #f0f7ff 0%, #f7fbff 100%);
}

.image-tool-page .breadcrumbs-area,
.image-tool-page .card.height-auto {
  border-radius: 20px;
  border: none;
  box-shadow: 0 24px 60px rgba(20, 65, 110, 0.08);
  background: #ffffff;
}

.image-tool-card {
  position: relative;
  overflow: hidden;
}

.image-tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 55%),
              radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.08), transparent 50%);
  pointer-events: none;
}

.image-tool-card > .card-body {
  position: relative;
  z-index: 1;
}

.image-tool-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.image-tool-header .item-title h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0;
}

.image-tool-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 680px;
  line-height: 1.6;
}

.image-tool-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.08);
  color: #1f2937;
}

.image-tool-hints strong {
  color: #1d4ed8;
}

.image-transform-panel {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 255, 0.8);
  padding: 1.35rem 1.5rem;
}

.image-transform-panel h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.image-transform-panel .form-check {
  margin-bottom: 0.5rem;
}

.image-tool-form .row {
  margin-bottom: 0.25rem;
}

.image-tool-inline-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.image-tool-page .card.height-auto .card-body {
  padding: 2.25rem;
}

.image-dropzone {
  position: relative;
  margin-top: 0.75rem;
  border: 2px dashed rgba(37, 99, 235, 0.35);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 244, 255, 0.96) 100%);
  color: #1d2b44;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.75rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.image-dropzone.highlight,
.image-dropzone:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 18px 44px rgba(29, 78, 216, 0.25);
  transform: translateY(-2px);
}

.image-dropzone__icon {
  font-size: 3.2rem;
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.image-dropzone__headline {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.image-dropzone__subhead {
  font-size: 1rem;
  color: #516079;
  margin-bottom: 1.35rem;
}

.image-dropzone__button {
  border: none;
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #fff;
  padding: 0.95rem 2.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-dropzone__button:hover,
.image-dropzone__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.35);
}

.image-dropzone__list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: 520px;
  text-align: left;
  display: grid;
  gap: 0.75rem;
}

.image-dropzone__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 0.9rem;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

.image-dropzone__thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-dropzone__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.image-dropzone__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.image-dropzone__name {
  font-weight: 600;
  color: #1f2937;
}

.image-dropzone__size {
  font-size: 0.85rem;
  color: #5b6b85;
}

.image-dropzone__hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.image-tool-page .btn-fill-lg,
.image-tool-page .btn.btn-lg,
.image-tool-page button[type='submit'] {
  border-radius: 999px;
  padding: 0.9rem 2.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.image-advanced {
  margin-top: 1.85rem;
  border-radius: 18px;
  background: rgba(226, 237, 255, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0;
  overflow: hidden;
}

.image-advanced > summary {
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.image-advanced > summary::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #1d4ed8;
  transition: transform 0.2s ease;
}

.image-advanced[open] > summary::after {
  transform: rotate(180deg);
}

.image-advanced__content {
  padding: 0 1.5rem 1.6rem;
  display: grid;
  gap: 1.1rem 1.5rem;
}

.image-advanced__content .form-group {
  margin-bottom: 0;
}

.image-tool-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.image-tool-actions .btn {
  min-width: 200px;
}

.image-preview-pair {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.75rem;
}

.image-preview-card {
  border-radius: 18px;
  background: #f8fbff;
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(59, 130, 246, 0.12);
}

.image-preview-card p:last-child {
  margin-bottom: 0;
}

.image-preview-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.image-preview-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.image-preview-card--nested {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.image-preview-card--nested h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.image-preview-download {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.image-preview-download .btn {
  border-radius: 999px;
  padding: 0.85rem 2.1rem;
}

.image-results-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.75rem;
}

.image-results-grid .image-preview-card {
  background: #ffffff;
}

.image-results-grid .image-preview-card footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #475569;
}

.image-results-grid .image-preview-card footer a {
  font-weight: 600;
}

.image-gif-preview {
  margin-top: 1.75rem;
  border-radius: 18px;
  background: rgba(231, 240, 255, 0.6);
  padding: 1.5rem;
}

.image-gif-preview[hidden] {
  display: none !important;
}

.image-gif-preview__timeline {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.image-gif-preview__frame {
  min-width: 92px;
  max-width: 110px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}

.image-gif-preview__frame img {
  width: 100%;
  border-radius: 10px;
}

.image-gif-preview__controls {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.image-gif-preview__play {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #fff;
  padding: 0.75rem 2.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-gif-preview__play:hover,
.image-gif-preview__play:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.35);
}

.image-gif-preview__canvas {
  margin-top: 1.1rem;
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

@media (max-width: 767px) {
  .image-dropzone {
    padding: 2.35rem 1.25rem;
  }

  .image-dropzone__list li {
    grid-template-columns: 56px 1fr;
  }

  .image-tool-page .card.height-auto .card-body {
    padding: 1.6rem;
  }
}

