/* ========================================
   InvTracker.in Public Website Styles
   ======================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --accent-color: #f093fb;

  /* Text Colors */
  --text-dark: #1a202c;
  --text-light: #718096;

  /* Background Colors */
  --bg-light: #f7fafc;
  --white: #ffffff;

  /* Border & Shadows */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}

.logo {
  font-size: 2rem;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.btn-login {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-login:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* ========================================
   Features Overview Section
   ======================================== */
.features-overview {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   Categories Section
   ======================================== */
.categories {
  padding: 5rem 0;
  background: var(--white);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.category {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category:hover {
  background: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-md);
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* TODO: Add mobile menu */
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .categories-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   Pricing Page Styles
   ======================================== */
.pricing-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0 2rem;
  text-align: center;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pricing-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

.pricing-cards {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: -3rem;
}

.pricing-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  border: 3px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.plan-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.plan-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.plan-period {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.plan-features li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.plan-features li.unavailable {
  color: var(--text-light);
  text-decoration: line-through;
}

.plan-features li.unavailable:before {
  content: "✗";
  color: var(--text-light);
}

.subscribe-btn {
  width: 100%;
  text-align: center;
}

.faq-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.faq-item {
  background: var(--white);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   Contact Page Styles
   ======================================== */
.contact-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-content {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

.contact-method-icon {
  font-size: 2rem;
}

.contact-method-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-method-info p {
  color: var(--text-light);
  margin: 0;
}

.contact-method-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-form-section {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ========================================
   Features Page Styles
   ======================================== */
.features-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.features-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.feature-section {
  padding: 5rem 0;
}

.feature-section:nth-child(even) {
  background: var(--bg-light);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.feature-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.feature-list li:before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.feature-visual {
  background: linear-gradient(135deg, #667eea20, #764ba220);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  font-size: 5rem;
}

@media (max-width: 768px) {
  .feature-content {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Tools Page Styles
   ======================================== */
.tools-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.tools-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tools-grid {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.tool-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tool-badge {
  display: inline-block;
  background: var(--success-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tool-badge.premium {
  background: var(--primary-color);
}

.tool-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.tool-link:hover {
  text-decoration: underline;
}

/* Calculator specific styles */
.calculator-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.result-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  text-align: center;
}

.result-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.result-box .result-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.result-box .result-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Backward compatibility alias */
.calculator-result {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
  text-align: center;
}

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

@media (max-width: 768px) {
  .input-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Help Page Styles
   ======================================== */
.help-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.help-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.help-search {
  max-width: 600px;
  margin: 2rem auto 0;
}

.help-search input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.help-categories {
  padding: 5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.help-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.help-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.help-category h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.help-category p {
  color: var(--text-light);
  line-height: 1.7;
}

.help-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.help-item {
  background: var(--white);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.help-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.help-item p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ========================================
   About Page Styles
   ======================================== */
.about-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-content {
  padding: 5rem 0;
}

.about-section {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.value-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ========================================
   Legal Pages (Privacy & Terms) Styles
   ======================================== */
.legal-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-dark);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-dark);
}

.legal-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-light);
  line-height: 1.8;
  margin: 1rem 0 1rem 2rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.last-updated {
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.last-updated strong {
  color: var(--text-dark);
}

/* ========================================
   Calculator Tools - Enhanced Styling
   ======================================== */

/* Result sections styling */
.result-header {
  color: #000000;
  margin-bottom: 1rem;
}

.result-box {
  margin-bottom: 2rem;
  background: var(--primary-color);
  color: #000000;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.result-box p {
  margin: 0;
}

.result-box .label {
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 0.5rem;
}

.result-box .value {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
}

/* Allocation grid */
.allocation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.allocation-section h4 {
  color: #000000;
  margin-bottom: 1rem;
}

.allocation-item {
  margin: 0.5rem 0;
  color: #000000;
}

/* Items box section - used for action items, rebalancing actions */
.items-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #000000;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.items-box h3,
.items-box h4 {
  margin-top: 0;
  color: #000000;
}

.items-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #000000;
  list-style-type: disc;
}

.items-box li {
  margin: 0.5rem 0;
  color: #000000;
}

.items-box p {
  margin: 0;
  color: #000000;
}

/* Maintain backward compatibility */
.action-items-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #000000;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

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

.transaction-item p {
  margin: 0;
  color: #000000;
}

.transaction-item .label {
  font-size: 0.9rem;
  color: #000000;
}

.transaction-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-top: 0.5rem;
}

.transaction-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #000000;
}

/* Info section - used for best practices, tips, etc */
.info-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

.info-section h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-section ul {
  color: var(--text-light);
  line-height: 1.8;
  margin-left: 2rem;
}

.info-section li {
  margin-bottom: 0.5rem;
}

/* Maintain backward compatibility */
.best-practices {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

/* Validation check box */
.validation-box {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.validation-box p {
  margin: 0;
  font-weight: 600;
}

.validation-box.success {
  background: var(--success-color);
  color: white;
}

.validation-box.warning {
  background: #f59e0b;
  color: white;
}

/* Breakdown tables */
.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.breakdown-table th {
  background: var(--bg-light);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.breakdown-table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.breakdown-table tbody tr:hover {
  background: var(--bg-light);
}

/* Shared label/value patterns */
.result-card .label,
.result-highlight .label,
.power-loss .label,
.result-split-item .label,
.pension-highlight .label,
.time-remaining-box .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

/* Backward compatibility */
.split-result-item .label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.result-card .value,
.result-highlight .value {
  font-weight: 700;
  color: var(--primary-color);
}

.result-card .value {
  font-size: 1.75rem;
}

.result-highlight .value,
.power-loss .value {
  font-size: 1.8rem;
}

/* Value color variants */
.result-card.success .value,
.result-card .value.success,
.result-highlight .value.success {
  color: var(--success-color);
}

.result-card .value.warning,
.result-highlight .value.warning,
.power-loss .value {
  color: var(--warning-color);
}

/* Result cards grid */
.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

/* Box patterns - shared styles */
.result-highlight,
.info-box {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 0.5rem;
}

.result-highlight {
  margin-top: 1rem;
  padding: 1.5rem;
}

.info-box {
  margin-top: 1.5rem;
}

.result-breakdown {
  margin-top: 1.5rem;
}

/* Power loss display */
.power-loss {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Scenario grid and cards */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.scenario-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
}

.scenario-title {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.scenario-today,
.scenario-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.scenario-future,
.scenario-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

/* Time remaining box */
.time-remaining-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.time-remaining-box .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.time-remaining-box .value {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Asset allocation bars */
.allocation-bars {
  background: var(--bg-light);
  border-radius: 0.5rem;
  height: 40px;
  display: flex;
  overflow: hidden;
  margin-bottom: 1rem;
}

.allocation-bars > div {
  transition: width 0.3s ease;
}

.bar-equity {
  background: #4caf50;
}

.bar-debt {
  background: #2196f3;
}

.bar-gold {
  background: #ffd700;
}

.bar-real-estate {
  background: #9c27b0;
}

.bar-cash {
  background: #607d8b;
}

/* Text utility classes */
.text-muted {
  color: var(--text-light);
}

.text-success {
  color: var(--success-color);
}

.flex-grow {
  flex: 1;
}

.btn-remove {
  padding: 0.75rem 1rem;
  align-self: flex-end;
}

.button-group {
  display: flex;
  gap: 1rem;
}

.btn-flex {
  flex: 1;
}

/* Chart container */
.chart-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.chart-container h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Result split display */
.result-split {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
  gap: 1rem;
}

.result-split-item {
  flex: 1;
}

.result-split-item.text-right {
  text-align: right;
}

.result-split-item .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
}

.result-split-item .value {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Backward compatibility aliases */
.split-result {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
  gap: 1rem;
}

.split-result-item {
  flex: 1;
}

.split-result-item.text-right {
  text-align: right;
}

.split-result-item .value {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Progress/Visualization bars */
.progress-bar-container {
  background: var(--bg-light);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 40px;
  display: flex;
  margin: 1rem 0 0.5rem;
}

.progress-bar-segment {
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.progress-bar-segment.primary {
  background: var(--primary-color);
}

.progress-bar-segment.success {
  background: var(--success-color);
}

.progress-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.primary {
  background: var(--primary-color);
}

.legend-color.success {
  background: var(--success-color);
}

.legend-color.warning {
  background: #f59e0b;
}

.progress-bar-segment.warning {
  background: #f59e0b;
}

/* Info/About sections */
.info-section {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

.info-section h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.info-section h4 {
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}

.info-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-section ul {
  color: var(--text-light);
  line-height: 1.8;
  margin-left: 2rem;
}

.info-section li {
  margin-bottom: 0.5rem;
}

/* Footer spacing */
.footer-spacing {
  margin-top: 5rem;
}

/* Button utilities */
.btn-full-width {
  width: 100%;
}

.btn-flex-1 {
  flex: 1;
}

.btn-spacing {
  margin-bottom: 1.5rem;
}

/* Flex utilities */
.flex-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.flex-row-tight {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.flex-1 {
  flex: 1;
}

/* Grid utilities */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.grid-auto-fit-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Text utilities */
.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* Margin/padding utilities */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.pt-1 {
  padding-top: 1rem;
}

.pb-1 {
  padding-bottom: 1rem;
}

/* Display utilities */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

/* Pension/highlight box */
.pension-highlight {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 0.5rem;
  color: white;
}

.pension-highlight .label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.pension-highlight .value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.pension-highlight .note {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Info box paragraph styles */
.info-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.25rem 0;
}

/* Explanation text */
.explanation-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* Mode toggle buttons */
.mode-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Description text */
.description-text {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Heading utilities */
.section-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Holding period info */
.holding-info {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.holding-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Result summary section */
.result-summary {
  margin-bottom: 2rem;
}

.result-summary .gain-type {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.result-summary .period-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Tax result details */
.tax-details {
  margin-top: 1.5rem;
}

.tax-detail-row {
  margin-bottom: 1rem;
}

/* Asset allocation bars */
.allocation-bars {
  background: var(--bg-light);
  border-radius: 0.5rem;
  height: 40px;
  display: flex;
  overflow: hidden;
  margin-bottom: 1rem;
}

.allocation-bar {
  transition: width 0.3s ease;
}

.allocation-bar.equity {
  background: #4caf50;
}

.allocation-bar.debt {
  background: #2196f3;
}

.allocation-bar.gold {
  background: #ffd700;
}

.allocation-bar.real-estate {
  background: #9c27b0;
}

.allocation-bar.cash {
  background: #607d8b;
}

/* Rebalancing section */
.rebalancing-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.5rem;
}

/* Goal future value box */
.goal-future-value {
  margin-bottom: 1.5rem;
}

.goal-future-value .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.goal-future-value .value {
  font-size: 2rem;
  font-weight: 700;
}

/* Time remaining box */
.time-remaining {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.time-remaining .label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.time-remaining .value {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Power loss indicator */
.power-loss {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.power-loss .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.power-loss .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f59e0b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .allocation-grid,
  .transaction-grid,
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-box .value {
    font-size: 1.5rem;
  }

  .transaction-item .value {
    font-size: 1.25rem;
  }

  .result-split,
  .split-result {
    flex-direction: column;
  }

  .result-split-item.text-right,
  .split-result-item.text-right {
    text-align: left;
  }

  .flex-row {
    flex-direction: column;
  }
}
