/* ===============================================
   MAIN STYLESHEET - PROPERTY FLIP CALCULATOR
   Color theme: #00537e (primary)
   =============================================== */

/* Hide test section */
section#test {
  display: none;
}

/* Root variables */
:root {
  --primary: #00537e;
  --primary-light: rgba(0, 83, 126, 0.1);
  --primary-dark: #003d5e;
  --border: #e5e7eb;
  --text-muted: #6b7280;
  --bg-dark: #1e293b;
  --bg-card: #0f172a;
}

/* Startup Section */
.startup-section {
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  color: #111;
}

.startup-section h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #00537e;
}

.startup-section p {
  font-size: 18px;
  color: #555;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  padding: 8px 12px;
  max-width: max-content;
}

.icon {
  stroke: #fff;
  flex-shrink: 0;
  background-color: transparent;
}

/* Card Styles */
.card {
  border-radius: 12px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  color: #f8fafc;
}

.card-1 {
  background: #095075;
  margin-block: 40px !important;
  color: white;
}

.card-2 {
  padding: 20px;
}

.card-2-inner {
  height: 100%;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.card-2-inner h4 {
  font-size: 26px;
  font-weight: 700;
  color: #00537e;
}

.card-2-inner h5 {
  font-size: 22px;
  font-weight: 700;
  padding-bottom: 20px;
  color: #00537e;
}

.card-2-inner p {
  font-size: 22px;
  font-weight: 700;
}

.card-service {
  gap: 20px;
  justify-content: space-around;
}

.card button {
  background-color: #00537e;
  color: #0f172a;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: 0.3s;
}

.card button:hover {
  background-color: #bfa55a;
}

/* Input Styles */
.form-control {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 4px 10px !important;
  transition: all 0.25s ease;
}

.form-floating>.form-control-plaintext~label,
.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  top: -4px;
  background: #fff;
}


.form-control:focus {
  /* background-color: #1e293b; */
  border-color: #00537e;
  box-shadow: 0 0 0 0.25rem rgba(0, 83, 126, 0.25);
  color: #000;
}

.form-floating {
  width: 100%;
}

.form-floating>label {
  color: var(--text-muted) !important;
  padding: 0 10px;
  height: auto !important;
  font-size: 12px;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
  color: #00537e;
}

/* Input Group */
.input-group-text {
  background-color: #334155;
  color: #00537e;
  border: 1px solid #475569;
}

/* Flex Layout */
.d-flex.gap-2 {
  align-items: center;
}

.d-flex.gap-2 .mt-3 {
  font-weight: 600;
  color: var(--primary);
  min-width: 20px;
  text-align: center;
  margin: 0 !important;
}

/* Input Circle / Tooltip Button */
.input-circle {
  position: absolute;
  right: 10px;
  top: 10px;
}

.input-circle span {
  padding: 2px 12px;
  position: absolute;
  top: 12px;
  right: 15px;
  color: #fff;
  border-radius: 34px;
  background: #00537e;
  cursor: pointer !important;
  font-weight: bold;
}

.btn-custom {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* Error Messages */
.error {
  color: #fb7185;
  font-size: 14px;
  font-weight: 500;
}

/* Select Dropdown */
.form-select {
  /* background-color: #334155; */
  color: #000;
  /* border: 1px solid #00537e; */
  border-radius: 8px;
  padding: 12px 20px !important;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 83, 126, 0.15);
}

/* select#timeDuration,
.drops {
  background-color: #334155;
  color: #00537e;
  border: 1px solid #00537e;
  border-radius: 8px;
  padding: 12px 20px !important;
} */

/* Accordion Styles */
.accordion-item {
  background-color: #1e293b;
  border: 1px solid #334155;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

.accordion-button:not(.collapsed) {
  color: #0f172a !important;
  background-color: #00537e !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0);
}

.accordion-body {
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.tab-content {
  margin-top: 0 !important;
}

/* Tab Content */
.tab-content h1 {
  font-size: 40px;
  color: #00537e;
  font-weight: 700;
  text-transform: capitalize;
  padding-bottom: 10px;
  position: relative;
}

.tab-content h1::after {
  content: "";
  border-bottom: 3px solid #00537e;
  position: absolute;
  width: 100px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Result Display */
.result {
  font-size: 24px;
  font-weight: 500;
  padding: 10px;
  margin-bottom: 10px;
  font-style: italic;
  border-radius: 15px;
  background: #ffff;
  color: #000 !IMPORTANT;
  border: 1px solid #0000001f !important;
  padding: 8px 0;
}


/* Projections Section */
div#projections h3 {
  color: #00537e;
}

p.dynamicPara {
  color: #00537e !important;
}

/* Footer */
footer {
  background: #095075;
  color: #fff;
  padding: 30px 10px;
  margin-top: 5rem;
  border-top: 3px solid #00537e;
}

.copyright p {
  color: #cbd5e1;
}

.website p {
  color: #00537e;
}

.website a {
  color: #f8fafc !important;
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .card,
  .accordion-item,
  .accordion-body {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }
}

/* Selection View */
#selection-view {
  padding-bottom: 50px;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Tool Card */
.tool-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: #fff;
}

.tool-card h3 {
  margin: 15px 0 8px;
  font-size: 20px;
}

.tool-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  min-height: 63px;
}

.tool-card small {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #888;
  font-size: 12px;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icon Box */
.icon-box {
  background: #00537e;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 20px;
}

/* Badges */
.badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #00537e;
  color: #00537e;
}

.badge.primary {
  background: #00537e;
  color: #fff;
  border: none;
}

/* Buttons */
.btn-use {
  width: 100%;
  background: #00537e;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-use:hover {
  background-color: #2a779e !important;
}

.btn-use i {
  margin-left: 6px;
  transition: 0.3s;
}

/* Calc Card */
.calc-card {
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.calc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.calc-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.calc-card h3 {
  color: #00537e;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.calc-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Workspace Styles */
#back-to-selection {
  background-color: transparent;
  color: #00537e;
  border: 2px solid #00537e;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  transition: 0.3s;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#back-to-selection:hover {
  background-color: #00537e;
  color: #fff;
}

.hidden {
  display: none !important;
}

.workspace-active .accordion-header {
  display: none;
}

.workspace-active .accordion-item {
  border: none;
  background: transparent;
}

.workspace-active .accordion-collapse {
  display: block !important;
}

/* Spacing Utilities */
.mb-3 {
  margin-bottom: 18px !important;
}

/* Tooltip */
.tooltip-inner {
  background-color: #111;
  font-size: 12px;
}

/* ===============================================
   KPI BUILDER SECTION STYLES
   =============================================== */
.kpi-section {
  padding: 20px;
}

.kpi-dashboard-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.q-card {
  animation: fadeInKPI 0.4s ease forwards;
}

@keyframes fadeInKPI {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.q-header {
  margin-bottom: 25px;
}

.q-text {
  font-size: 24px;
  font-weight: 600;
  color: #1a2e3b;
  display: block;
  margin-bottom: 10px;
}

.cat-badge {
  display: inline-block;
  background: #e2f0f5;
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  color: #095075;
  border: 1px solid rgba(9, 80, 117, 0.2);
}

.options-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.opt-btn {
  background: white;
  border: 1px solid #e2edf2;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  color: #5f7f91;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.opt-btn:hover {
  border-color: #0e6a96;
  background: #e2f0f5;
  color: #095075;
}

.opt-btn.active {
  background: #095075;
  border-color: #095075;
  color: #fff;
  box-shadow: 0 4px 12px rgba(9, 80, 117, 0.2);
}

.action-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-outline-kpi {
  background: white;
  border: 1px solid #e2edf2;
  color: #1a2e3b;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary-kpi {
  background: linear-gradient(135deg, #095075, #0e6a96);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn-success-kpi {
  background: #10b981;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Results Area */
.result-area-kpi {
  text-align: center;
  padding: 20px 0;
}

.result-title-kpi {
  font-size: 16px;
  font-weight: 700;
  color: #5f7f91;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.total-kpi-val {
  font-size: 80px;
  font-weight: 900;
  color: #095075;
  margin-bottom: 30px;
}

.cat-grid-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.cat-card-kpi {
  background: #f8fafc;
  border-radius: 15px;
  padding: 15px;
  border: 1px solid #e2edf2;
  text-align: center;
}

.cat-title-kpi {
  font-weight: 700;
  font-size: 12px;
  color: #5f7f91;
  margin-bottom: 5px;
}

.cat-percent-kpi {
  font-size: 24px;
  font-weight: 800;
  color: #095075;
}

.cat-detail-kpi {
  font-size: 10px;
  color: #5f7f91;
}

.download.btns,
.print-button.btns {
  background: #00537e;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-flex {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.drops {
  width: 100%;
  max-width: 220px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;

  /* remove default arrow styling inconsistencies */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 35px;
}

/* hover state */
.drops:hover {
  border-color: #8a8f98;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* focus state */
.drops:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* option styling (limited browser support) */
.drops option {
  padding: 10px;
}

.address-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  font-size: 14px;
  color: #1e3a8a;
  font-weight: 500;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
  transition: 0.2s ease;
  max-width: fit-content;
}

.address-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.12);
}

.active-kpi .col-lg-4,
.active-lead-scorer .col-lg-4,
.active-business-health .col-lg-4 {
  display: none;
}


.charts {
    display: none;
}