/* liquidity.css — Desktop-First, Dark Mode Enhanced */

.hero-section {
    background-color: #f0f0f0;
    color: #000;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-section .page-title,
  .page-title .h1   {
    font-size: 2rem;
    color: #fff;
  }

  
  body.dark-mode .hero-section {
    background-color: #111;
    color: #eee;
  }
  
  body.dark-mode .hero-section .page-title {
    color: #fff;
  }
  
  body.dark-mode .hero-section .lead {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #fff;
  }
  
  .liquidity-container {
    max-width: 1140px;
    padding: 2.5rem;
    margin: 2rem auto;
    background-color: var(--color-card-light);
    color: var(--color-text-light);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
  }
  
  /* Dark Mode Overrides */
  body.dark-mode .liquidity-container {
    background-color: var(--color-card-dark);
    color: var(--color-text-dark);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.05);
  }
  
  
  /* Section spacing
  .section {
    margin-bottom: 3rem;
  } */
  
  /* Headers */
  .liquidity-container h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    text-align: center;
  }
  
  .liquidity-container h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
  }
  
  .liquidity-container h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Paragraphs and text */
  .liquidity-container p {
    margin-bottom: 1rem;
    line-height: 1.7;
  }
  
  .liquidity-container ul,
  .liquidity-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .liquidity-container li {
    margin-bottom: 0.5rem;
  }
  
  /* Table Styles */
  .liquidity-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
  }
  
  .liquidity-container table th,
  .liquidity-container table td {
    padding: 12px;
    border: 1px solid #555;
    text-align: center;
  }
  
  .liquidity-container table th {
    background-color: #333;
    color: #fff;
  }
  
  body.dark-mode .liquidity-container table th {
    background-color: #444;
  }
  
  /* Buttons */
  .liquidity-container .btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-weight: bold;
    padding: 10px 16px;
    margin: 1rem 0.5rem 1.5rem 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }
  
  .liquidity-container .btn:hover {
    background-color: #0056b3;
  }
  
  /* Pre/code styling */
  .liquidity-container pre,
  .liquidity-container code {
    background-color: #111;
    color: #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
    margin-top: 1rem;
  }
  
  body.dark-mode .liquidity-container pre,
  body.dark-mode .liquidity-container code {
    background-color: #000;
    color: #ccc;
  }
  
  /* Info/tip boxes */
  .info-box,
  .warning-box,
  .tip-box {
    padding: 1rem;
    border-left: 5px solid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background-color: #222;
    color: #ddd;
  }
  
  .info-box { border-color: #4da6ff; }
  .tip-box { border-color: #6ac259; }
  .warning-box { border-color: #e74c3c; }
  
  @media (max-width: 480px) {
    .info-box, .tip-box, .warning-box {
      padding: 1.25rem;
    }
  }
  

  @media (max-width: 768px) {
    .liquidity-container {
      padding: 1rem;
    }
  
    .liquidity-container h1 {
      font-size: 1.6rem;
    }
  
    .liquidity-container h2 {
      font-size: 1.25rem;
    }
  
    .liquidity-container h3 {
      font-size: 1.1rem;
    }
  
    .liquidity-container .btn {
      width: 100%;
      margin-bottom: 1rem;
    }
  
    .info-box,
    .warning-box,
    .tip-box {
      font-size: 0.95rem;
    }
  }
  .toast {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 800px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
    overflow: hidden;
    max-height: 100px;
  }
  
  .toast.success {
    background-color: #d4edda;
    color: #155724;
  }
  
  .toast.closing {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
    margin: 0 auto;
    padding: 0;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #111;
  }
  
  body.dark-mode .form-input {
    background-color: #1e1e1e;
    color: #eee;
    border-color: #444;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  
  .form-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #111;
  }
  
  body.dark-mode .form-input {
    background-color: #1e1e1e;
    color: #eee;
    border-color: #444;
  }
  
  button.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
  }
  
  button.btn:hover {
    background-color: #0056b3;
  }

  .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
  }
  
  .form-check label {
    margin: 0;
  }

  @media (prefers-color-scheme: light) {
    .hero-content h1,
    .hero-content p {
      color: #111 !important;  /* or #000 if needed */
      text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* subtle contrast */
    }
  }
  
  .hero-section .lead,
  .page-subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #fff;
  }

  body.liquidity.dark-mode .hero-section .container {
    background-color: rgba(30, 30, 30, 0.8); /* richer dark */
    color: #eee;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.8);
    text-align: center;
  }

  body.profile.dark-mode .hero-section .container {
    background-color: rgba(30, 30, 30, 0.8); /* richer dark */
    color: #eee;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.8);
    text-align: center;
  }

  .liquidity-container .container h2{
    margin: 10px;
  }

  .liquidity-container .container p{
    margin: 10px;
  }

  .liquidity-container .section.section h2{
    margin: 10px;
  }

  .liquidity-container .section.section p{
    margin: 10px;
  }
  .liquidity-container .section.section ul{
    margin-left: 40px;
  }

  .liquidity-container .section-alt h2{
    margin-left: 10px;
  }

  .liquidity-container .section-alt p{
    margin-left: 10px;
  }
  .liquidity-container .section-alt ul{
    margin-left: 40px;
  }

  /* Layout for side-by-side info sections */
.section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section > * {
  flex: 1 1 48%;
  min-width: 320px;
}

body:not(.dark-mode) .info-box {
  background-color: #f0f8ff;
  color: #111;
  border: none;
  border-left: 5px solid #007acc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .tip-box {
  background-color: #f6fff4;
  color: #111;
  border: none;
  border-left: 5px solid #2e8b57;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .warning-box {
  background-color: #fff5f5;
  color: #111;
  border: none;
  border-left: 5px solid #e74c3c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .tip-box {
  background-color: #f6fff4; /* light green tint */
  border-left: 5px solid #2e8b57;
}

body:not(.dark-mode) .warning-box {
  background-color: #fff5f5; /* light red tint */
  border-left: 5px solid #e74c3c;
}

.tip-box a.btn {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  margin-top: 1rem;
}

li i {
  margin-right: 0.5rem;
}

.info-box ul li,
.tip-box ul li,
.warning-box ul li {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

li i.fa-check-circle {
  color: var(--color-accent); /* or #28a745 if you want green */
  font-size: 1rem;
}

.tip-box .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .liquidity-container .info-box,
body:not(.dark-mode) .liquidity-container .tip-box,
body:not(.dark-mode) .liquidity-container .warning-box {
  border: none !important;
}

body:not(.dark-mode) .section {
  border: none !important;
}
