/* Print-on-Demand Profit Margin Calculator Stylesheet - Premium Light Theme (2026) */

.ppc-premium-wrapper {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #334155;
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  width: 100% !important;
  max-width: 100% !important;
  position: static !important;
  box-sizing: border-box !important;
  margin: 1.5rem 0 !important;
}

.ppc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ppc-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ppc-header-icon {
  font-size: 2rem;
  color: #0284c7;
}

.ppc-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}

.ppc-subtitle {
  font-size: 0.95rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.ppc-presets-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.ppc-preset-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.ppc-preset-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ppc-preset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ppc-preset-btn.active {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
  color: #0284c7;
}

.ppc-workspace-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

@media (max-width: 960px) {
  .ppc-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.ppc-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.ppc-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
}

.ppc-card-header i {
  color: #0284c7;
  font-size: 1.2rem;
}

.ppc-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.ppc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 500px) {
  .ppc-form-row {
    grid-template-columns: 1fr;
  }
}

.ppc-form-group {
  display: flex;
  flex-direction: column;
}

.ppc-form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.ppc-help-text {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.ppc-input-addon {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  height: 50px;
  box-sizing: border-box;
}

.ppc-input-addon span {
  padding: 0.6rem 0.8rem;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  background: #e2e8f0;
  height: 100%;
  display: flex;
  align-items: center;
}

.ppc-input-addon input {
  width: 100%;
  background: transparent;
  border: none;
  color: #0f172a;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  height: 100%;
}

.ppc-summary-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.ppc-summary-header {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.ppc-summary-header span {
  font-size: 0.85rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ppc-summary-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0284c7;
  margin: 0.4rem 0;
}

.ppc-margin-pill {
  display: inline-block;
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}

.ppc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .ppc-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.ppc-metric-item {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.ppc-metric-label {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 0.3rem;
}

.ppc-metric-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
}

.ppc-breakdown-box {
  background: rgba(2, 132, 199, 0.05);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
}

.ppc-bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ppc-bd-row:not(:last-child) {
  border-bottom: 1px dashed rgba(2, 132, 199, 0.15);
}

.ppc-bd-row span {
  font-size: 0.9rem;
  color: #475569;
}

.ppc-bd-row strong {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

/* Print Action Button Styling */
.ppc-print-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
}

.ppc-print-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(2, 132, 199, 0.45);
}

/* Printable PDF Viewport Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .ppc-premium-wrapper, .ppc-premium-wrapper * {
    visibility: visible;
  }
  .ppc-premium-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .ppc-header h1, .ppc-card-title, .ppc-summary-header h2, .ppc-metric-val {
    color: #000000 !important;
  }
  .ppc-card, .ppc-summary-card, .ppc-metric-item, .ppc-breakdown-box, .ppc-resource-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }
  .ppc-print-btn, .ppc-preset-btn {
    display: none !important;
  }
}
