/* Premium Freelance Hourly Rate Calculator Stylesheet - Buzzcnn Light Theme System */

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

/* Header Styling */
.frc-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.frc-header-icon {
  font-size: 2.2rem;
  color: #0284c7 !important;
}

.frc-header h1 {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.frc-badge-fy {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  padding: 0.25rem 0.85rem !important;
  border-radius: 9999px !important;
}

.frc-subtitle {
  font-size: 0.98rem !important;
  color: #64748b !important;
  max-width: 780px;
  margin: 0.75rem auto 0 !important;
  line-height: 1.6 !important;
}

/* Workspace Layout */
.frc-workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* Forms & Columns Styling */
.frc-form-column {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.frc-dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tab Navigation */
.frc-tab-nav {
  display: flex;
  background: #e2e8f0 !important;
  padding: 5px !important;
  border-radius: 14px !important;
  border: none !important;
  margin-bottom: 2rem !important;
  gap: 4px !important;
  overflow-x: auto;
}

.frc-tab-btn {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-family: inherit;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 1rem !important;
  border-radius: 10px !important;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: none !important;
  transition: all 0.2s ease !important;
}

.frc-tab-btn:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

.frc-tab-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
}

/* Tab Panels */
.frc-tab-panel {
  display: none;
}

.frc-tab-panel.active {
  display: block;
}

.frc-tab-panel h3 {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 0.75rem !important;
}

/* Inputs styling overrides */
.frc-premium-wrapper input[type="text"],
.frc-premium-wrapper input[type="number"],
.frc-premium-wrapper select {
  width: 100% !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  height: 48px !important;
  font-family: inherit !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.frc-premium-wrapper input[type="text"]:focus,
.frc-premium-wrapper input[type="number"]:focus,
.frc-premium-wrapper select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.frc-form-group {
  margin-bottom: 1.5rem;
}

.frc-form-group label {
  display: block !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 0.5rem !important;
}

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

.input-helper {
  display: block !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin-top: 0.4rem !important;
  line-height: 1.4 !important;
}

/* Calculate Button */
.frc-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35) !important;
  margin-top: 2rem !important;
  transition: all 0.25s ease !important;
}

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

/* Rate Dashboard Cards */
.frc-rate-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.frc-rate-card {
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05) !important;
  position: relative;
}

.frc-highlight-blue {
  background: #f0f9ff !important;
  border-color: #38bdf8 !important;
}

.frc-highlight-green {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

.frc-rate-label {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #0369a1 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.frc-highlight-blue .frc-rate-label {
  color: #0369a1 !important;
}

.frc-highlight-green .frc-rate-label {
  color: #15803d !important;
}

.frc-rate-value {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.frc-highlight-green .frc-rate-value {
  color: #16a34a !important;
}

.frc-rate-desc {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.4;
}

/* Summary Table Card */
.frc-summary-table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

.frc-summary-table-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.frc-summary-table-card h3 i {
  color: #0284c7 !important;
}

.frc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem !important;
  color: #475569 !important;
  margin-bottom: 0.8rem;
  border-bottom: 1px dashed #e2e8f0 !important;
  padding-bottom: 0.5rem;
}

.frc-summary-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.frc-table-val {
  color: #0f172a !important;
  font-weight: 700 !important;
}

/* Utilities Row */
.frc-utilities-row {
  display: flex;
  gap: 1rem;
}

.frc-utility-btn {
  flex: 1;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0284c7 !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0.8rem !important;
  border-radius: 10px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease !important;
}

.frc-utility-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px);
}

/* Keyframes */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive breakdowns */
@media (max-width: 1150px) {
  .frc-workspace-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .frc-premium-wrapper {
    padding: 1.25rem 0.85rem !important;
    margin: 1rem auto !important;
  }
  .frc-header h1 {
    font-size: 1.65rem !important;
    flex-direction: column;
    gap: 0.5rem;
  }
  .frc-tab-nav {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  .frc-tab-btn {
    flex: 1 1 calc(50% - 0.25rem) !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.25rem !important;
  }
  .frc-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .frc-utilities-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}
