@keyframes enter_bottom {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0%);
  }
}

.animate-enter-bottom {
  animation: enter_bottom 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes ease_in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ease-in {
  animation: ease_in 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.delayed {
  animation-delay: 1s;
}

.sidebar-shell {
  position: relative;
  background: radial-gradient(circle at 12% 8%, #1f2937 0%, #0b1220 42%, #060a13 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.sidebar-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(148, 163, 184, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.55;
}

.sidebar-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px 14px;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 22, 0.96),
    rgba(8, 12, 22, 0.78)
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #67e8f9;
}

.sidebar-title {
  margin-top: 2px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  color: #f8fafc;
}

.sidebar-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
  max-width: 230px;
}

.sidebar-scroll {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  padding: 0 14px 24px;
}

.sidebar-section-title {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.sidebar-section-row {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -14px;
  padding: 12px 16px 6px;
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 0.95),
    rgba(11, 18, 32, 0.78)
  );
  backdrop-filter: blur(6px);
}

.sidebar-divider {
  height: 1px;
  margin: 0 2px 10px;
  background: linear-gradient(
    to right,
    rgba(103, 232, 249, 0.32),
    rgba(59, 130, 246, 0.08)
  );
}

.sidebar-field {
  margin: 8px 2px;
}

.sidebar-input,
.sidebar-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: rgba(2, 6, 23, 0.84);
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.35;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.sidebar-input {
  padding: 18px 12px 7px;
}

.sidebar-textarea {
  min-height: 118px;
  padding: 18px 12px 9px;
  resize: vertical;
}

.sidebar-input:focus,
.sidebar-textarea:focus {
  border-color: rgba(34, 211, 238, 0.95);
  background: rgba(2, 6, 23, 0.98);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.sidebar-label {
  position: absolute;
  top: 4px;
  left: 12px;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #64748b;
}

.sidebar-add-btn,
.sidebar-remove-btn,
.sidebar-print-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background-color 0.16s ease;
}

.sidebar-add-btn {
  flex: 0 0 auto;
  padding: 7px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: linear-gradient(135deg, #34d399, #14b8a6);
  color: #022c22;
}

.sidebar-remove-btn {
  width: 100%;
  background: linear-gradient(135deg, #fb7185, #ef4444);
  color: white;
}

.sidebar-print-btn {
  min-width: 112px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  color: #082f49;
}

.sidebar-add-btn:hover,
.sidebar-remove-btn:hover,
.sidebar-print-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.preview-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100%;
  padding: 28px 0 48px;
}

.preview-paper {
  width: calc(8.5in / 0.7);
  min-height: calc(11in / 0.7);
  background: white;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  transform: scale(0.7);
  transform-origin: top center;
}

@media print {
  @page {
    margin: 0;
    size: auto;
  }

  html,
  body {
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print {
    display: none !important;
  }

  * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  *::-webkit-scrollbar {
    display: none !important;
  }

  #preview-scroll-area {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    background: white !important;
  }

  .preview-stage {
    display: block !important;
    width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .preview-paper {
    width: 100% !important;
    min-height: auto !important;
    transform: none !important;
    box-shadow: none !important;
  }

  #rusume {
    background: white !important;
    transform: scale(0.7) !important;
    transform-origin: top left !important;
    width: 142.8571428571% !important;
    min-height: auto !important;
    box-shadow: none !important;
  }
}
