/* Side Hustle Take-Home Wage Calculator Stylesheet */

.shwc-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; }

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

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

.shwc-header-icon {
  font-size: 2rem;
  color: #fbbf24;
}

.shwc-header h1, .shwc-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; }

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

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

.shwc-preset-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fbbf24;
}

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

.shwc-preset-btn:hover {
  background: #1e293b;
  color: #ffffff;
}

.shwc-preset-btn.active {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}

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

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

.shwc-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; }

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

.shwc-card-header i {
  color: #fbbf24;
  font-size: 1.2rem;
}

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

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

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

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

.shwc-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.shwc-help-text {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.shwc-input-addon {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

.shwc-input-addon span {
  padding: 0.6rem 0.8rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  background: #1e293b;
}

.shwc-input-addon input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}

.shwc-summary-card {
  background: #1e293b;
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid #334155;
}

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

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

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

.shwc-margin-pill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}

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

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

.shwc-metric-item {
  background: #0f172a;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

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

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

.shwc-breakdown-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
}

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

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

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

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

/* Print Action Button Styling */
.shwc-print-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid #fbbf24;
  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(217, 119, 6, 0.3);
}

.shwc-print-btn:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Printable PDF Viewport Rules */
@media print {
  body * {
    visibility: hidden;
  }
  .shwc-premium-wrapper, .shwc-premium-wrapper * {
    visibility: visible;
  }
  .shwc-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; }
  .shwc-header h1, .shwc-card-title, .shwc-summary-header h2, .shwc-metric-val {
    color: #000000 !important;
  }
  .shwc-card, .shwc-summary-card, .shwc-metric-item, .shwc-breakdown-box, .shwc-resource-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }
  .shwc-print-btn, .shwc-preset-btn {
    display: none !important;
  }
}
