/* =============================================================================
 * burst.compat.css - component rules lifted out of static/dex.css
 * =============================================================================
 * Several converted pages style controls with classes that were never defined
 * in their own CSS: they came from dex.css, which every page used to load.
 * vote.html's "Read Proposal" button is class="buttons-class" and rendered as a
 * grey system button once dex.css was dropped.
 *
 * These are lifted verbatim rather than reloading 199 KB of exchange CSS. They
 * should be folded into proper components and deleted; this file exists so the
 * conversion did not have to redesign every control at the same time.
 * ========================================================================== */
.buttons-class {
            display: inline-flex;
            align-items: center;
            justify-content: center; 
            padding: 0.5rem 1.5rem; /* px-6 py-2 */
            border: 2px solid #2563eb; /* border-blue-600 */
            color: #2563eb; /* text-blue-600 */
            background-color: #f3f4f6; /* bg-white */
            font-weight: 600; /* font-semibold */
            font-size: 0.875rem; /* text-sm */
            border-radius: 9999px; /* rounded-full */
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
            cursor: pointer;
            text-decoration: none;
        }
/* .buttons-class {
            display: flex;
            align-items: center; 
            justify-content: center; 
            padding: 0.5rem 1.5rem;
            border: 2px solid #2563eb;
            color: #2563eb;
            background-color: #f3f4f6;
            font-weight: 600; 
            font-size: 0.875rem;
            border-radius: 9999px;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
            cursor: pointer;
            text-decoration: none;
            width: fit-content; 
            min-width: 120px; 
            height: 40px; 
            text-align: center;
            line-height: 1.2;
        }
*/

        /* Hover effect */
        .buttons-class:hover {
            background-color: #2563eb; /* hover:bg-blue-600 */
            color: #f3f4f6; /* hover:text-white */
        }
/* 🌙 Dark Mode Styles */
    body.dark-mode .buttons-class {
        background-color: #d1d5db; /* text-gray-300 */
        color: #2563eb; /* text-blue-600 */
    }
/* Dark Mode Hover */
    body.dark-mode .buttons-class:hover {
        background-color: #2563eb; /* border-blue-600 */
        color: #d1d5db; /* text-gray-300 */
    }
/* Dark mode: Make label text color #d1d5db */
    body.dark-mode .label {
        color: #d1d5db !important; /* text-gray-300 */ 
        font-weight: 600; /* font-semibold */
    }
/* Light mode (optional, keeping it dark for contrast) */
    body .label {
        color: #374151; /* text-gray-700 */
        font-weight: 600; /* font-semibold */
    }
/* Dark mode: Make label text color #d1d5db */
    body.dark-mode .label_value {
        color: #d1d5db !important; /* text-gray-300 */ 
    }
/* Light mode (optional, keeping it dark for contrast) */
    body .label_value {
        color: #374151; /* text-gray-700 */
    }
/* ✅ Light Mode */
    .section_custom {
        background-color: #f3f4f6; /* White background */
        border: 1px solid #0f2b68; /* Blue border */
        /* color: #000000;  */
        /* padding: 10px;
        word-wrap: break-word; */
    }
*/
    /* 🌙 Dark Mode */
    body.dark-mode .section_custom {
        background-color: #1f2937; /* Solid dark gray background */
        /* color: #d1d5db; */
        border: 1px solid #0f2b68; /* Optional: subtle border */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
*/
    .account-rows .label{grid-column:1;grid-row:1;color:var(--color-text);font-weight:500}
/* .account-rows .value{grid-column:1;grid-row:2;text-align:left;font-weight:600;word-break:normal}
#token-modal .close-btn{
      width:100%;
      padding:.65rem 1rem;
      border-radius:999px;
      background:var(--color-bg-page);
      color:var(--color-text);
      border:1px solid var(--color-border);
      font-weight:600; cursor:pointer;
    }
#token-modal .close-btn:hover{ background:rgba(92,106,196,.08); }
*/

    #add-custom-token-from-settings,
    .bn-btn,
    .btn-chip,
    .buttons-class{
      font-family: var(--ui-font) !important;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
/* two-column grid for fields; collapses on small screens */
    .settings-grid{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:.9rem 1rem;
    }
/* fix input-with-addon groups on narrow widths */
    #settings-modal .field,
    #settings-modal .settings-grid,
    #settings-modal .input-with-addon{ min-width: 0; }
/* do not let ancestors clip the bubble */
    #settings-modal .bn-sec,
    #settings-modal .settings-grid,
    #settings-modal .field{
      overflow: visible;
    }
.em-row .label{ font-weight:600; }
.em-row .value{ justify-self:end; text-align:right; }
.em-row .label{font-weight:600; color:var(--color-text);}
.em-row .value{justify-self:end; text-align:right; color:var(--color-text);}
.em-row .value .muted{color:var(--color-muted)}
/* keep values on the same line as labels */
    .account-rows .label{ grid-column:1; grid-row:1; font-weight:600; }
.account-rows .value{ grid-column:2; grid-row:1; justify-self:end;
      min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    }
.em-row--flaredrop .account_label,
    .em-row--flaredrop .label_value{ white-space: nowrap; }
.em-row--flaredrop .label_value{ justify-self:end; min-width:0; overflow:hidden; text-overflow:ellipsis; }
body.dark-mode .label_value{ color: var(--dm-text); }
/* Buttons */
    body.dark-mode :is(#add-liquidity-modal, #remove-liquidity-modal) .btn-primary{
      background: var(--brand-600);
      border-color: var(--brand-600);
      color:#fff;
    }
body.dark-mode :is(#add-liquidity-modal, #remove-liquidity-modal) .btn-primary:hover{
      background: var(--brand-700);
      border-color: var(--brand-700);
    }
body.dark-mode :is(#add-liquidity-modal, #remove-liquidity-modal) .btn-primary:focus{
      box-shadow: 0 0 0 4px var(--ring);
    }

/* --- theme-aware overrides -------------------------------------------------
 * The rules above came from dex.css and hardcode light-mode greys, so on a dark
 * page they render as pale pills. Routing them through the tokens is the point
 * of having tokens. */
.buttons-class, .btn-primary {
  background: var(--brand);
  color: var(--ground);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: .55rem 1.1rem;
  min-height: 40px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}
.buttons-class:hover, .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-md);
}
.buttons-class[disabled], .btn-primary[disabled] { opacity: .5; filter: none; }

.label       { color: var(--ink-3); }
.label_value, .value { color: var(--ink); }
.section_custom { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.close-btn { background: transparent; color: var(--ink-2); border: 0; cursor: pointer; }
.close-btn:hover { color: var(--ink); }

/* --- DEX no-wallet overlay -------------------------------------------------
 * dex.css set .overlay-message{background:#fff}, so a visitor without a wallet
 * got a white card floating on a dark page, and a toast repeating the same
 * sentence beside it. Themed, and no longer a hard wall. */
.no-wallet-overlay { background: color-mix(in srgb, var(--ground) 72%, transparent); backdrop-filter: blur(2px); }
.overlay-message {
  background: var(--surface) !important;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: min(440px, 92vw);
  text-align: left;
}
.overlay-message p { color: var(--ink-2); }
.overlay-message p:first-child { color: var(--ink); font-size: 1.0625rem; }
.overlay-message a { color: var(--brand); font-weight: 600; }
#swap-container.dimmed > *:not(.no-wallet-overlay) { opacity: 1; }
