/* Car Detailing Profit Calculator Stylesheet - Full Width & 100% Responsive */

.cdpc-premium-wrapper { font-family: "Outfit", -apple-system, sans-serif !important; background: #f8fafc !important; color: #0f172a !important; border-radius: 16px !important; padding: 2.5rem !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; border: 1px solid #cbd5e1 !important; width: 100% !important; max-width: 100% !important; margin: 1.5rem 0 !important; }

.cdpc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.cdpc-header-icon {
  font-size: 2.2rem;
  color: #06b6d4;
}

.cdpc-header h1, .cdpc-main-title { font-size: clamp(1.6rem, 4vw, 2.5rem) !important; font-weight: 800 !important; color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; background: none !important; margin: 0 !important; }

.cdpc-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  vertical-align: middle;
}

.cdpc-subtitle { color: #475569 !important; font-size: 1.05rem !important; max-width: 750px !important; margin: 0.5rem auto 0 !important; font-weight: 500 !important; }

.cdpc-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

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

.cdpc-card { background: #ffffff !important; padding: 1.75rem !important; border-radius: 14px !important; border: 2px solid #cbd5e1 !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important; margin-bottom: 1.5rem !important; }

.cdpc-card-title { font-size: 1.2rem !important; font-weight: 800 !important; color: #0f172a !important; border-bottom: 2px solid #e2e8f0 !important; padding-bottom: 0.75rem !important; margin-bottom: 1.25rem !important; }

.cdpc-card-title i {
  color: #22d3ee;
}

.cdpc-input-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.cdpc-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 500px) {
  .cdpc-presets-grid {
    grid-template-columns: 1fr;
  }
  .cdpc-premium-wrapper { font-family: "Outfit", -apple-system, sans-serif !important; background: #f8fafc !important; color: #0f172a !important; border-radius: 16px !important; padding: 2.5rem !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; border: 1px solid #cbd5e1 !important; width: 100% !important; max-width: 100% !important; margin: 1.5rem 0 !important; }
}

.cdpc-preset-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.cdpc-preset-btn:hover {
  background: #334155;
  color: #ffffff;
}

.cdpc-preset-btn.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
  color: #22d3ee;
  font-weight: 700;
}

.cdpc-select {
  width: 100%;
  background: #081225 !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  padding: 0.65rem 0.8rem !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  outline: none !important;
  margin-bottom: 1.25rem;
  box-sizing: border-box !important;
}

.cdpc-form-group {
  margin-bottom: 1.25rem;
}

.cdpc-form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.cdpc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cdpc-val-badge {
  background: #0891b2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.cdpc-form-group input[type="range"] {
  width: 100%;
  accent-color: #22d3ee;
  cursor: pointer;
}

.cdpc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.cdpc-input-addon {
  display: flex;
  align-items: center;
  background: #081225;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
  width: 100%;
}

.cdpc-input-addon:focus-within {
  border-color: #06b6d4;
}

.cdpc-input-addon span {
  padding: 0.6rem 0.8rem;
  background: #1e293b;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

.cdpc-input-addon input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding: 0.6rem 0.8rem !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  outline: none !important;
  width: 100%;
  box-sizing: border-box !important;
}

/* Results Output Styling */
.cdpc-summary-card {
  background: linear-gradient(145deg, #0f172a 0%, #081225 100%);
  border: 1px solid #06b6d4;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
  box-sizing: border-box;
}

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

.cdpc-summary-header span {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cdpc-summary-header h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: #22d3ee;
  margin: 0.25rem 0 0.75rem;
  word-break: break-word;
}

.cdpc-margin-pill {
  display: inline-block;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}

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

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

.cdpc-metric-item {
  background: #1e293b;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.cdpc-metric-label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

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

.cdpc-breakdown-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
}

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

.cdpc-bd-row:not(:last-child) {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.cdpc-bd-row span {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.cdpc-bd-row strong {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

/* Print Action Button Styling */
.cdpc-print-btn {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  border: 1px solid #22d3ee;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.cdpc-print-btn:hover {
  background: #0891b2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

/* Printable PDF Viewport Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .cdpc-premium-wrapper, .cdpc-premium-wrapper * {
    visibility: visible;
  }
  .cdpc-premium-wrapper { font-family: "Outfit", -apple-system, sans-serif !important; background: #f8fafc !important; color: #0f172a !important; border-radius: 16px !important; padding: 2.5rem !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important; border: 1px solid #cbd5e1 !important; width: 100% !important; max-width: 100% !important; margin: 1.5rem 0 !important; }
  .cdpc-header h1, .cdpc-card-title, .cdpc-summary-header h2, .cdpc-metric-val {
    color: #000000 !important;
  }
  .cdpc-card, .cdpc-summary-card, .cdpc-metric-item, .cdpc-breakdown-box, .cdpc-resource-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }
  .cdpc-print-btn, .cdpc-preset-btn {
    display: none !important;
  }
}
