:root {
  --bs-body-bg: #faf7f0;
  --gradient-start: #7c5c2e;
  --gradient-mid: #a07850;
  --gradient-end: #c49a6a;
  --gradient-bg: linear-gradient(135deg, #7c5c2e 0%, #a07850 50%, #c49a6a 100%);
  --gradient-navbar: linear-gradient(90deg, #5c3d1e 0%, #7c5c2e 100%);
  --accent-blue: #7c5c2e;
  --accent-purple: #a07850;
  --accent-violet: #c49a6a;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Gradient navbar */
.navbar-gradient {
  background: var(--gradient-navbar) !important;
}

/* Gradient hero */
.hero-gradient {
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Gradient footer */
.footer-gradient {
  background: var(--gradient-navbar);
}

.tool-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(160, 120, 80, 0.25);
}

/* Gradient-themed card icon colours */
.icon-indigo  { color: var(--accent-blue); }
.icon-violet  { color: var(--accent-violet); }
.icon-purple  { color: var(--accent-purple); }

/* Gradient outline button */
.btn-outline-grad {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: transparent;
}

.btn-outline-grad:hover {
  background: var(--gradient-bg);
  border-color: transparent;
  color: #fff;
}

/* Solid gradient button */
.btn-grad {
  background: var(--gradient-bg);
  border: none;
  color: #fff;
}

.btn-grad:hover {
  background: linear-gradient(135deg, #5c3d1e 0%, #7c5c2e 50%, #a07850 100%);
  color: #fff;
}

.chart-container {
  min-height: 400px;
}

.data-input-section {
  background: #fff;
  border-radius: 0.5rem;
}

/* Section heading accent */
.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gradient-bg);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

/* ===== Comparison Table Tool ===== */

/* Input table */
.ct-input-table {
  background: #fff;
}

.ct-corner-cell {
  background: #f8fafc;
  font-weight: 600;
  color: #475569;
}

.ct-input-header {
  background: #f8fafc;
  min-width: 160px;
}

.ct-header-input {
  font-weight: 600;
  text-align: center;
  border: 1px solid transparent;
  background: transparent;
}

.ct-header-input:focus {
  border-color: var(--accent-blue);
  background: #fff;
}

.ct-feature-input {
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
}

.ct-feature-input:focus {
  border-color: var(--accent-blue);
  background: #fff;
}

.ct-cell-input {
  text-align: center;
  border: 1px solid transparent;
  background: transparent;
}

.ct-cell-input:focus {
  border-color: var(--accent-blue);
  background: #fff;
}

.ct-add-col {
  background: #f8fafc;
  vertical-align: middle;
}

.ct-highlight-btn {
  font-size: 0.7rem;
  padding: 2px 6px;
}

/* Style selector buttons */
.ct-style-btn {
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.ct-style-active {
  background: var(--gradient-bg);
  color: #fff;
  border-color: transparent;
}

.ct-style-active:hover {
  background: linear-gradient(135deg, #5c3d1e 0%, #7c5c2e 50%, #a07850 100%);
  color: #fff;
}

/* Preview area */
.ct-preview-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
}

.ct-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ct-preview th,
.ct-preview td {
  padding: 12px 16px;
  text-align: center;
}

.ct-preview .ct-feature-label {
  text-align: left;
  font-weight: 600;
}

.ct-preview .ct-item-header {
  font-weight: 700;
}

.ct-preview .ct-highlight {
  background-color: rgba(160, 120, 80, 0.10) !important;
}

/* Style: Modern */
.ct-modern th {
  background: linear-gradient(135deg, #7c5c2e, #a07850);
  color: #fff;
}

.ct-modern td {
  border-bottom: 1px solid #e8e0d0;
}

.ct-modern tr:hover td {
  background: #faf7f0;
}

.ct-modern {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style: Striped */
.ct-striped th {
  background: #1e293b;
  color: #fff;
}

.ct-striped tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.ct-striped td {
  border-bottom: 1px solid #e2e8f0;
}

/* Style: Bordered */
.ct-bordered th,
.ct-bordered td {
  border: 2px solid #a07850;
}

.ct-bordered th {
  background: #f5ede0;
  color: #5c3d1e;
}

/* Style: Minimal */
.ct-minimal th {
  border-bottom: 2px solid #d1d5db;
  color: #374151;
  font-weight: 600;
  background: transparent;
}

.ct-minimal td {
  border-bottom: 1px solid #f3f4f6;
}

/* Style: Colorful */
.ct-colorful th {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
  color: #fff;
}

.ct-colorful td {
  border-bottom: 1px solid #fce7f3;
}

.ct-colorful tr:hover td {
  background: #fef3c7;
}

.ct-colorful {
  border-radius: 12px;
  overflow: hidden;
}

/* Style: Dark */
.ct-dark {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  overflow: hidden;
}

.ct-dark th {
  background: #313244;
  color: #cba6f7;
}

.ct-dark td {
  border-bottom: 1px solid #313244;
  color: #cdd6f4;
}

.ct-dark tr:hover td {
  background: #282838;
}

.ct-dark .ct-feature-label {
  color: #a6adc8;
}
