html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Hafif tasarım eklemeleri */
.hero-section {
  background: radial-gradient(circle at 20% 20%, #e8f0ff 0, #fff 40%),
    radial-gradient(circle at 80% 0, #f7f5ff 0, #fff 35%);
}

.glass-card {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.upload-area,
.preview-area {
  background: #fff;
}

.preview-canvas-wrap {
  height: 90%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.preview-pages {
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  padding: 12px;
  gap: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  max-width: 100%;
}

.preview-page-label {
  font-size: 12px;
  color: #6c757d;
}

#previewPlaceholder {
  position: absolute;
  inset: 0;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding: 5px;
}

.thumb-card {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.thumb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.thumb-card.selected {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.thumb-card canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f8f9fa;
}

.thumb-label {
  position: absolute;
  top: 6px;
  left: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
}

.pool-add-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 8px;
  font-size: 12px;
}

.pool-grid .thumb-card {
  cursor: grab;
}

.pool-thumb-box {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 6px;
}

[data-bs-theme="dark"] .pool-thumb-box {
  background: rgba(255, 255, 255, 0.05);
}

.floating-nav {
  z-index: 1080;
}

.floating-nav .btn {
  border-radius: 8px;
}

.upload-area {
  position: relative;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .upload-progress {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(33, 37, 41, 0.6);
}

.notification-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.notification {
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dropzone {
  border: 1.5px dashed rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-within {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dropzone .drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  display: grid;
  place-items: center;
}

.dropzone .drop-icon svg {
  width: 28px;
  height: 28px;
}

.workspace-modal .workspace-scroll {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  background: var(--bs-body-bg, #fff);
}

.workspace-modal .modal-content {
  border-radius: 16px;
}

.workspace-modal .modal-dialog {
  max-width: 1400px;
  width: 96%;
}

[data-bs-theme="dark"] .notification {
  background: rgb(33, 37, 41);
  color: #e5e7eb;
}

[data-bs-theme="dark"] body {
  background-color: #0f131a;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .hero-section {
  background-color: #0f131a;
  background-image: radial-gradient(
      circle at 22% 18%,
      rgba(255, 255, 255, 0.08),
      transparent 42%
    ),
    radial-gradient(
      circle at 78% 6%,
      rgba(255, 255, 255, 0.06),
      transparent 38%
    );
}

[data-bs-theme="dark"] section {
  background-color: #0f131a;
}

[data-bs-theme="dark"] section + section {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .bg-light {
  background-color: #0f131a !important;
}

[data-bs-theme="dark"] .border {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .border.rounded,
[data-bs-theme="dark"] .border.rounded-2,
[data-bs-theme="dark"] .border.rounded-3,
[data-bs-theme="dark"] .border.rounded-4,
[data-bs-theme="dark"] .glass-card,
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .upload-area,
[data-bs-theme="dark"] .preview-area,
[data-bs-theme="dark"] .thumb-card {
  background-color: rgb(33, 37, 41);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .thumb-card:hover,
[data-bs-theme="dark"] .feature-card:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

[data-bs-theme="dark"] .thumb-label {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

[data-bs-theme="dark"] .thumb-card.selected {
  border-color: #66b2ff;
  box-shadow: 0 0 0 3px rgba(102, 178, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] #previewContainer {
  background: rgb(33, 37, 41);
}

[data-bs-theme="dark"] .border-top {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
