@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/**
 * Ders Notu Premium Design System
 * Scoped styles for Ders Notu module only
 * Prefix: dn- (ders-notu)
 * Based on smartshop-premium design
 * 
 * @package AWP_PrintWise
 * @version 1.0.0
 */

/* ============================================
   TYPOGRAPHY & BASE
   ============================================ */
.font-inter {
  font-family: "Inter", system-ui, sans-serif !important;
}

.font-mono {
  font-family: "JetBrains Mono", monospace !important;
}

/* Visually Hidden (Accessible hiding) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================
   CONTAINER - Premium Wrapper
   ============================================ */
#tab-content-ders-notu.dn-container {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

#tab-content-ders-notu.dn-container.dn-loaded {
  opacity: 1;
}

/* Ensure premium layout has full width */
#tab-content-ders-notu.dn-premium-loaded {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure parent container allows full width */
#tab-content-ders-notu.dn-premium-loaded ~ * {
  max-width: 100% !important;
}

/* Force grid to work properly */
.dn-premium-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
}

@media (min-width: 1024px) {
  .dn-premium-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 3rem !important;
  }
}

/* ============================================
   ENHANCED EXISTING ELEMENTS
   ============================================ */

/* Premium hover effects for cards */
#tab-content-ders-notu .bg-white.rounded-lg,
#tab-content-ders-notu .bg-white.rounded-xl {
  transition: all 0.2s ease;
}

#tab-content-ders-notu .bg-white.rounded-lg:hover,
#tab-content-ders-notu .bg-white.rounded-xl:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Enhanced input focus states */
#tab-content-ders-notu input[type="number"].dn-input-enhanced,
#tab-content-ders-notu input[type="text"].dn-input-enhanced {
  transition: all 0.2s ease;
}

#tab-content-ders-notu input[type="number"].dn-input-enhanced:focus,
#tab-content-ders-notu input[type="text"].dn-input-enhanced:focus {
  transform: scale(1.01);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Enhanced select dropdowns */
#tab-content-ders-notu select.dn-select-enhanced {
  transition: all 0.2s ease;
}

/* Enhanced print options (radio cards) */
#tab-content-ders-notu .awp-print-type-option.dn-enhanced {
  transition: all 0.2s ease;
}

#tab-content-ders-notu .awp-print-type-option.dn-enhanced:hover {
  transform: translateY(-2px);
}

/* ============================================
   PREMIUM LAYOUT COMPONENTS
   ============================================ */

/* Format Buttons */
.dn-format-btn {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 0.5rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  color: rgb(100 116 139);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.dn-format-btn:hover {
  border-color: rgb(203 213 225);
}

.dn-format-btn.active {
  background: rgb(15 23 42);
  color: white;
  border-color: rgb(15 23 42);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Color Mode Buttons */
.dn-color-mode-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dn-color-mode-btn:hover {
  background: rgb(241 245 249);
}

.dn-color-mode-btn.active {
  background: white;
  border-color: rgb(99 102 241);
  color: rgb(67 56 202);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

/* Copy Type Buttons */
.dn-copy-type-btn {
  padding: 0.625rem 1.5rem;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgb(100 116 139);
  cursor: pointer;
}

.dn-copy-type-btn:hover {
  color: rgb(51 65 85);
}

.dn-copy-type-btn.active {
  background: white;
  color: rgb(15 23 42);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(226 232 240);
}

/* Premium Layout Container */
.dn-premium-layout {
  animation: dn-fade-in 0.3s ease-out;
}

/* Radio Options (Like original) */
.dn-radio-option {
  transition: all 0.2s;
}

.dn-radio-option:not(.active) .w-2 {
  background: transparent !important;
}

.dn-radio-option:not(.active):hover {
  border-color: rgb(203 213 225);
  background: rgb(248 250 252);
}

/* Service Options (Checkboxes) */
.dn-service-option {
  transition: all 0.2s;
}

.dn-service-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgb(203 213 225);
  cursor: pointer;
  transition: all 0.2s;
}

.dn-service-checkbox:checked {
  background: rgb(99 102 241);
  border-color: rgb(99 102 241);
}

.dn-service-option:has(.dn-service-checkbox:checked) {
  border-color: rgb(99 102 241);
  background: rgb(238 242 255 / 0.5);
}

/* Upload Zone */
.dn-upload-zone {
  transition: all 0.2s;
}

.dn-upload-zone:hover svg {
  color: rgb(99 102 241);
  transform: translateY(-2px);
}

/* Pulse animation for selections */
@keyframes dn-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.dn-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgb(15 23 42);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .dn-title {
    font-size: 3rem;
  }
}

.dn-subtitle {
  font-size: 1rem;
  color: rgb(100 116 139);
  font-weight: 500;
  line-height: 1.625;
  max-width: 32rem;
}

/* ============================================
   TAB SWITCHER - Segmented Control
   ============================================ */
.dn-tab-switcher {
  display: inline-flex;
  padding: 0.25rem;
  background: rgb(226 232 240 / 0.5);
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240 / 0.5);
  margin-bottom: 2rem;
}

.dn-tab-btn {
  padding: 0.625rem 1.5rem;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgb(100 116 139);
  cursor: pointer;
}

.dn-tab-btn:hover {
  color: rgb(51 65 85);
}

.dn-tab-btn.active {
  background: white;
  color: rgb(15 23 42);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(226 232 240);
}

/* ============================================
   CARD COMPONENTS - Compact Design
   ============================================ */
.dn-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgb(226 232 240 / 0.8);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dn-card-header {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgb(241 245 249);
  background: rgb(248 250 252 / 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dn-card-header-label {
  font-size: 10px;
  font-weight: 900;
  color: rgb(148 163 184);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dn-card-header-uuid {
  font-size: 10px;
  font-family: "Courier New", monospace;
  color: rgb(148 163 184);
}

.dn-card-body {
  padding: 2rem;
}

/* ============================================
   FORM ELEMENTS - Compact & Clean
   ============================================ */
.dn-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .dn-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.dn-form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dn-label {
  font-size: 10px;
  font-weight: 900;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Button Group - Segmented */
.dn-button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.dn-button-group.four-col {
  grid-template-columns: repeat(2, 1fr);
}

.dn-btn-option {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 0.5rem;
  border: 1px solid rgb(226 232 240);
  background: white;
  color: rgb(100 116 139);
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.dn-btn-option:hover {
  border-color: rgb(203 213 225);
}

.dn-btn-option.active {
  background: rgb(15 23 42);
  color: white;
  border-color: rgb(15 23 42);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Color Mode Buttons */
.dn-color-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: rgb(248 250 252);
  color: rgb(100 116 139);
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dn-color-btn:hover {
  background: rgb(241 245 249);
}

.dn-color-btn.active {
  background: white;
  border-color: rgb(99 102 241);
  color: rgb(67 56 202);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.dn-color-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
}

.dn-color-indicator.bw {
  background: rgb(15 23 42);
}

.dn-color-indicator.color {
  background: linear-gradient(
    135deg,
    rgb(236 72 153),
    rgb(250 204 21),
    rgb(99 102 241)
  );
}

/* Number Inputs with Labels */
.dn-input-wrapper {
  position: relative;
}

.dn-input-label-inside {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 900;
  color: rgb(148 163 184);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.dn-input {
  width: 100%;
  background: rgb(248 250 252);
  border: 1px solid rgb(241 245 249);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem 0.875rem 4rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: rgb(15 23 42);
  outline: none;
  transition: all 0.2s;
}

.dn-input:focus {
  background: white;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgb(99 102 241);
}

/* ============================================
   FINISHING OPTIONS - Checkbox List
   ============================================ */
.dn-finishing-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.dn-finishing-item {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(241 245 249);
  background: white;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dn-finishing-item:hover {
  border-color: rgb(226 232 240);
}

.dn-finishing-item.selected {
  border-color: rgb(99 102 241);
  background: rgb(238 242 255 / 0.5);
}

.dn-finishing-name {
  font-size: 11px;
  font-weight: 900;
  color: rgb(100 116 139);
}

.dn-finishing-item.selected .dn-finishing-name {
  color: rgb(67 56 202);
}

.dn-finishing-price {
  font-size: 10px;
  font-weight: 900;
  color: rgb(148 163 184);
}

.dn-finishing-item:hover .dn-finishing-price {
  color: rgb(99 102 241);
}

/* ============================================
   FILE UPLOAD AREA
   ============================================ */
.dn-upload-area {
  border: 2px dashed rgb(226 232 240);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: white;
}

.dn-upload-area:hover {
  border-color: rgb(165 180 252);
  background: rgb(238 242 255 / 0.2);
}

.dn-upload-area.has-file {
  border-color: rgb(16 185 129);
  background: rgb(209 250 229 / 0.5);
  box-shadow: 0 0 0 4px rgb(16 185 129 / 0.05);
}

.dn-upload-icon {
  width: 2rem;
  height: 2rem;
  color: rgb(203 213 225);
  margin: 0 auto 0.5rem;
}

.dn-upload-area.has-file .dn-upload-icon {
  color: rgb(16 185 129);
}

.dn-upload-text {
  font-size: 0.75rem;
  font-weight: 900;
  color: rgb(51 65 85);
}

.dn-upload-hint {
  font-size: 10px;
  color: rgb(148 163 184);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Textarea */
.dn-textarea {
  width: 100%;
  background: white;
  border: 1px solid rgb(226 232 240);
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(51 65 85);
  outline: none;
  transition: all 0.2s;
  min-height: 124px;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  resize: vertical;
}

.dn-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgb(99 102 241);
}

.dn-textarea::placeholder {
  color: rgb(148 163 184);
}

/* ============================================
   SUMMARY PANEL - Dark Theme
   ============================================ */
.dn-summary {
  background: rgb(15 23 42);
  color: white;
  border-radius: 0.75rem;
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(30 41 59);
  position: sticky;
  top: 2rem;
}

.dn-summary-header {
  padding: 2rem;
  border-bottom: 1px solid rgb(30 41 59);
}

.dn-summary-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.dn-summary-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dn-summary-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.dn-summary-subtitle {
  font-size: 10px;
  font-weight: 900;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.dn-summary-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgb(99 102 241);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgb(99 102 241 / 0.2);
}

.dn-summary-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Summary Items */
.dn-summary-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dn-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dn-summary-item-label-group {
  display: flex;
  flex-direction: column;
}

.dn-summary-item-label {
  font-size: 10px;
  font-weight: 900;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dn-summary-item-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(203 213 225);
}

.dn-summary-item-value {
  font-size: 0.875rem;
  font-weight: 900;
}

/* Summary Breakdown */
.dn-summary-breakdown {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(30 41 59);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dn-summary-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  color: rgb(148 163 184);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dn-summary-breakdown-item span:last-child {
  color: white;
}

.dn-summary-breakdown-item.highlight {
  color: rgb(165 180 252);
}

/* Summary Body */
.dn-summary-body {
  padding: 2rem;
  background: rgb(255 255 255 / 0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Total Price */
.dn-total-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dn-total-label {
  font-size: 9px;
  font-weight: 900;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.dn-total-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.dn-total-price {
  font-size: 3.75rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: white;
}

.dn-total-currency {
  color: rgb(100 116 139);
  font-weight: 900;
  font-size: 0.75rem;
}

/* Professional Advice Box */
.dn-advice-box {
  position: relative;
}

.dn-advice-blur {
  position: absolute;
  inset: 0;
  background: rgb(99 102 241 / 0.1);
  filter: blur(40px);
  opacity: 0.5;
  border-radius: 9999px;
}

.dn-advice-content {
  position: relative;
  padding: 1.25rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
}

.dn-advice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dn-advice-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: rgb(99 102 241);
  border-radius: 9999px;
}

.dn-advice-title {
  font-size: 10px;
  font-weight: 900;
  color: rgb(165 180 252);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dn-advice-text {
  font-size: 11px;
  line-height: 1.625;
  color: rgb(148 163 184);
  font-weight: 500;
  font-style: italic;
}

/* Action Buttons */
.dn-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dn-btn-primary {
  width: 100%;
  background: white;
  color: rgb(15 23 42);
  font-weight: 900;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 20px 25px -5px rgb(255 255 255 / 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dn-btn-primary:hover {
  background: rgb(241 245 249);
}

.dn-btn-primary:active {
  transform: scale(0.98);
}

.dn-btn-primary svg {
  width: 1rem;
  height: 1rem;
}

.dn-btn-secondary {
  width: 100%;
  background: transparent;
  border: 1px solid rgb(30 41 59);
  color: rgb(100 116 139);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
}

.dn-btn-secondary:hover {
  color: white;
  border-color: rgb(51 65 85);
}

/* Footer Badge */
.dn-summary-footer {
  padding: 1rem 2rem;
  background: rgb(15 23 42);
  border-top: 1px solid rgb(30 41 59);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.dn-summary-footer svg {
  width: 0.75rem;
  height: 0.75rem;
  color: rgb(16 185 129);
}

.dn-summary-footer-text {
  font-size: 9px;
  font-weight: 900;
  color: rgb(71 85 105);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1023px) {
  .dn-summary {
    position: static;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes dn-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dn-animate-in {
  animation: dn-fade-in 0.3s ease-out;
}
