@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');/* Login.css */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #1a1a1a;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px;
}

.login-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#auth_output {
    margin-top: 20px;
    color: white;
}
.principal-box-container {
  position: static;
}

.principal-button {
  background-color: #7c3aed;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.principal-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1e1e2e;
  border: 1px solid #3f3f5a;
  border-radius: 8px;
  padding: 16px;
  z-index: 1000;
  max-width: 300px;
  width: 90%;
}

.principal-popup h3 {
  margin-top: 0;
  color: white;
  margin-bottom: 16px;
}

.principal-display {
  margin-bottom: 8px;
}

.principal-input {
  width: 100%;
  background-color: transparent;
  color: #a0a0b8;
  border: none;
  padding: 6px 0;
  font-family: monospace;
  font-size: 12px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  resize: none;
}

.copy-feedback-container {
  height: 20px; /* Adjust this value based on your font size */
  margin-bottom: 16px;
}

.copy-feedback {
  color: #4CAF50;
  font-size: 0.9em;
  margin: 0;
  line-height: 20px; /* Should match the container height */
}

.principal-copy-button-group {
  display: flex;
  justify-content: space-between;
}

.principal-copy-button-group button {
  background-color: #3f3f5a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  flex: 1;
  margin: 0 4px;
}

.principal-copy-button-group button:hover {
  background-color: #5a5a7d;
}

.principal-copy-button-group button:first-child {
  margin-left: 0;
}

.principal-copy-button-group button:last-child {
  margin-right: 0;
}/* Wallet.css */
body {
    font-family: "Fira Code", monospace;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #1a1a1a; /* Simple solid background color */
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-right {
    display: flex;
    align-items: center;
}

.help-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.help-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 60px;
}

.wallet-container {
    flex-grow: 1;
    padding: 20px;
    margin-top: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.card {
    background-color: rgba(255, 255, 255, 0.2);  /* Fallback */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.829);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    text-align: left;
    box-sizing: border-box;
    min-width: 280px;
    overflow: visible;
}

.card:hover {
    background: linear-gradient(
        135deg,
        rgba(180, 180, 180, 0.664) 0%,
        rgba(194, 194, 194, 0.15) 100%
    );
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: left;
    margin-bottom: 15px;
}

.card h2 {
    margin: 0 0 10px;
}

.card p {
    margin: 0;
}


.token-title {
    white-space: nowrap;
    font-size: 1.0rem;
    text-align: left;
    gap: 0.5rem; /* Space between the icon and text */
}

.token-symbol {
    font-size: 1.2rem;
}

.token-logo {
    width: auto;
    height: 36px;
    margin-right: 10px;
    margin-left: 0px;
    border-radius: 50%;
    align-self: center;
}

.swap-token-logo1 {
    width: auto;
    height: 36px;
    margin-right: 10px;
    margin-left: 0px;
    border-radius: 50%;
    align-self: center;
}
.swap-token-logo2 {
    width: auto;
    height: 36px;
    margin-right: 5px;
    margin-left: -20px;
    border-radius: 50%;
    align-self: center;
}

.balance-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
}

.balance-item + .balance-item {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.balance-label {
    font-size: 0.8rem;
    color: #ddd;
    margin-bottom: 5px;

    display: flex;
    justify-content: space-between;
}

.usd-text {
    color: #cfcfcf;
}

.token-amounts {
    display: flex;
    flex-direction: column;
}

.token-amount {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.token-symbol {
    font-size: 0.9rem;
    color: #ddd;
    min-width: 40px;
    margin-right: 5px;
    align-self: center;
}

.amount-value {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: right;
    flex-grow: 1;
}

.withdraw-button-container {
    margin-top: 10px;
    text-align: right;
}

.withdraw-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    visibility: hidden;
}

.withdraw-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.debug-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
}

.action-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
}

.swap-link-button,
.link-button,
.send-button,
.lock-button,
.claim-button,
.remove-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
}

.swap-link-button,
.link-button img,
.send-button img,
.claim-button img,
.lock-button img,
.remove-button img {
    width: auto;
    height: 20px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.add-ledger-card, .add-swap-card {
    margin: 5px;
    padding: 3px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.add-ledger-card:hover, .add-swap-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.add-plus-sign {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.spinner-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@supports (font-variation-settings: normal) {
    code {
        font-family: "Fira Code VF", monospace;
    }
}


.locks-section {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
}

.locks-header {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 10px;
}

.lock-item {
    background-color: rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lock-item:last-child {
    margin-bottom: 0;
}

.lock-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.lock-label {
    color: #ddd;
}

.lock-value {
    font-weight: bold;
}

.disclaimer {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.disclaimer h3 {
    margin-top: 0;
}

.small-text {
    font-size: 0.8rem;
}

.tooltip-wrapper {
    position: relative;
    display: inline-flex; /* Change from inline-block to inline-flex */
    align-items: center; /* Add this to vertically center the content */
    height: 20px; /* Match the height of your button images */
}

.tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    /* Animation */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.token-input-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
}

.token-input {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
}

.token-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.token-overview {
    margin-bottom: 30px;
}

.locks-section {
    margin-top: 30px;
}

.locks-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.locks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .locks-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

.tvl-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tvl-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.tvl-token-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tvl-token-info {
    text-align: left;
}

.tvl-token-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tvl-token-symbol {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.tvl-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tvl-metric {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.tvl-metric:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.tvl-metric-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.tvl-metric-value {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tvl-metric-value.placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .tvl-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tvl-section {
        padding: 24px;
    }

    .tvl-token-logo {
        width: 60px;
        height: 60px;
    }

    .tvl-token-name {
        font-size: 1.5em;
    }
}/* SendTokenModal.css */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: black;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 80%;
  border: 1px solid #ddd;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content label {
  display: block;
  margin: 10px 0;
}

.modal-content input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}

.amount-input-container {
  display: flex;
  align-items: center;
}

.amount-input-container input {
  flex-grow: 1;
  margin-right: 10px;
}

.max-button {
  padding: 8px 12px !important;
  background: #007bff !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.max-button:hover {
  background: #0056b3 !important;
}

.modal-content .button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-content button {
  padding: 10px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  flex: 1;
  margin-right: 10px;
}

.modal-content button:hover {
  background: #0056b3;
}

.cancel-button {
  background: #6c757d;
  margin-right: 0;
}

.cancel-button:hover {
  background: #5a6268;
}

.error-text {
  color: #ff0000;
  margin-top: 10px;
}/* LockModal.css */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid #ddd;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin: 10px 0;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

.modal-content .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-content button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
}

.modal-content button:hover {
    background: #0056b3;
}

.modal-content button:last-child {
    background: #6c757d;
    margin-right: 0;
}

.modal-content button:last-child:hover {
    background: #5a6268;
}

.lock-list {
    list-style-type: none;
    padding: 0;
}

.lock-item {
    background-color: #101010;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
}

.lock-item p {
    margin: 5px 0;
}/* LockModal.css */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid #ddd;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin: 10px 0;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

.modal-content .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-content button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
}

.modal-content button:hover {
    background: #0056b3;
}

.modal-content button:last-child {
    background: #6c757d;
    margin-right: 0;
}

.modal-content button:last-child:hover {
    background: #5a6268;
}

.lock-list {
    list-style-type: none;
    padding: 0;
}

.lock-item {
    background-color: #101010;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
}

.lock-item p {
    margin: 5px 0;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid #ddd;
  }
  
  .modal-content h2 {
    margin-top: 0;
  }
  
  .modal-content label {
    display: block;
    margin: 10px 0;
  }
  
  .modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
  }
  
  .modal-content .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .modal-content button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
  }
  
  .modal-content button:last-child {
    background: #6c757d;
    margin-right: 0;
  }.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid #ddd;
  }
  
  .modal-content h2 {
    margin-top: 0;
  }
  
  .modal-content label {
    display: block;
    margin: 10px 0;
  }
  
  .modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
  }
  
  .modal-content .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .modal-content button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
  }
  
  .modal-content button:last-child {
    background: #6c757d;
    margin-right: 0;
  }/* SendTokenModal.css */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: black;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid #ddd;
  }
  
  .modal-content h2 {
    margin-top: 0;
  }
  
  .modal-content label {
    display: block;
    margin: 10px 0;
  }
  
  .modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
  }
  
  .modal-content .button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .modal-content button {
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
  }
  
  .modal-content button:hover {
    background: #0056b3;
  }
  
  .modal-content button:last-child {
    background: #6c757d;
    margin-right: 0;
  }
  
  .modal-content button:last-child:hover {
    background: #5a6268;
  }
  
  .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
.doc-container {
    flex-grow: 1;
    padding: 20px;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.doc-container h1 {
    margin-bottom: 20px;
}

.doc-container p {
    line-height: 1.6;
}
.help-container {
    flex-grow: 1;
    padding: 20px;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.help-container h1 {
    margin-bottom: 20px;
}

.help-container h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.help-container p, .help-container ul {
    line-height: 1.6;
}

.help-container ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.help-container li {
    margin-bottom: 10px;
}.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}

.rll-container {
    flex-grow: 1;
    padding: 20px;
    color: white;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .rll-container {
        padding: 10px;
    }
    
    .site-header {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
} @keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} /* this gets exported as style.css and can be used for the default theming */
/* these are the necessary styles for React Flow, they get used by base.css and style.css */
.react-flow {
  direction: ltr;
}
.react-flow__container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.react-flow__pane {
  z-index: 1;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__pane.selection {
    cursor: pointer;
  }
.react-flow__pane.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__viewport {
  transform-origin: 0 0;
  z-index: 2;
  pointer-events: none;
}
.react-flow__renderer {
  z-index: 4;
}
.react-flow__selection {
  z-index: 6;
}
.react-flow__nodesselection-rect:focus,
.react-flow__nodesselection-rect:focus-visible {
  outline: none;
}
.react-flow .react-flow__edges {
  pointer-events: none;
  overflow: visible;
}
.react-flow__edge-path,
.react-flow__connection-path {
  stroke: #b1b1b7;
  stroke-width: 1;
  fill: none;
}
.react-flow__edge {
  pointer-events: visibleStroke;
  cursor: pointer;
}
.react-flow__edge.animated path {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__edge.animated path.react-flow__edge-interaction {
    stroke-dasharray: none;
    -webkit-animation: none;
            animation: none;
  }
.react-flow__edge.inactive {
    pointer-events: none;
  }
.react-flow__edge.selected,
  .react-flow__edge:focus,
  .react-flow__edge:focus-visible {
    outline: none;
  }
.react-flow__edge.selected .react-flow__edge-path,
  .react-flow__edge:focus .react-flow__edge-path,
  .react-flow__edge:focus-visible .react-flow__edge-path {
    stroke: #555;
  }
.react-flow__edge-textwrapper {
    pointer-events: all;
  }
.react-flow__edge-textbg {
    fill: white;
  }
.react-flow__edge .react-flow__edge-text {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
  }
.react-flow__connection {
  pointer-events: none;
}
.react-flow__connection .animated {
    stroke-dasharray: 5;
    -webkit-animation: dashdraw 0.5s linear infinite;
            animation: dashdraw 0.5s linear infinite;
  }
.react-flow__connectionline {
  z-index: 1001;
}
.react-flow__nodes {
  pointer-events: none;
  transform-origin: 0 0;
}
.react-flow__node {
  position: absolute;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: all;
  transform-origin: 0 0;
  box-sizing: border-box;
  cursor: -webkit-grab;
  cursor: grab;
}
.react-flow__node.dragging {
    cursor: -webkit-grabbing;
    cursor: grabbing;
  }
.react-flow__nodesselection {
  z-index: 3;
  transform-origin: left top;
  pointer-events: none;
}
.react-flow__nodesselection-rect {
    position: absolute;
    pointer-events: all;
    cursor: -webkit-grab;
    cursor: grab;
  }
.react-flow__handle {
  position: absolute;
  pointer-events: none;
  min-width: 5px;
  min-height: 5px;
  width: 6px;
  height: 6px;
  background: #1a192b;
  border: 1px solid white;
  border-radius: 100%;
}
.react-flow__handle.connectionindicator {
    pointer-events: all;
    cursor: crosshair;
  }
.react-flow__handle-bottom {
    top: auto;
    left: 50%;
    bottom: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-top {
    left: 50%;
    top: -4px;
    transform: translate(-50%, 0);
  }
.react-flow__handle-left {
    top: 50%;
    left: -4px;
    transform: translate(0, -50%);
  }
.react-flow__handle-right {
    right: -4px;
    top: 50%;
    transform: translate(0, -50%);
  }
.react-flow__edgeupdater {
  cursor: move;
  pointer-events: all;
}
.react-flow__panel {
  position: absolute;
  z-index: 5;
  margin: 15px;
}
.react-flow__panel.top {
    top: 0;
  }
.react-flow__panel.bottom {
    bottom: 0;
  }
.react-flow__panel.left {
    left: 0;
  }
.react-flow__panel.right {
    right: 0;
  }
.react-flow__panel.center {
    left: 50%;
    transform: translateX(-50%);
  }
.react-flow__attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 2px 3px;
  margin: 0;
}
.react-flow__attribution a {
    text-decoration: none;
    color: #999;
  }
@-webkit-keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
@keyframes dashdraw {
  from {
    stroke-dashoffset: 10;
  }
}
.react-flow__edgelabel-renderer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.react-flow__edge.updating .react-flow__edge-path {
      stroke: #777;
    }
.react-flow__edge-text {
    font-size: 10px;
  }
.react-flow__node.selectable:focus,
  .react-flow__node.selectable:focus-visible {
    outline: none;
  }
.react-flow__node-default,
.react-flow__node-input,
.react-flow__node-output,
.react-flow__node-group {
  padding: 10px;
  border-radius: 3px;
  width: 150px;
  font-size: 12px;
  color: #222;
  text-align: center;
  border-width: 1px;
  border-style: solid;
  border-color: #1a192b;
  background-color: white;
}
.react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
      box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
    }
.react-flow__node-default.selectable.selected,
    .react-flow__node-default.selectable:focus,
    .react-flow__node-default.selectable:focus-visible,
    .react-flow__node-input.selectable.selected,
    .react-flow__node-input.selectable:focus,
    .react-flow__node-input.selectable:focus-visible,
    .react-flow__node-output.selectable.selected,
    .react-flow__node-output.selectable:focus,
    .react-flow__node-output.selectable:focus-visible,
    .react-flow__node-group.selectable.selected,
    .react-flow__node-group.selectable:focus,
    .react-flow__node-group.selectable:focus-visible {
      box-shadow: 0 0 0 0.5px #1a192b;
    }
.react-flow__node-group {
  background-color: rgba(240, 240, 240, 0.25);
}
.react-flow__nodesselection-rect,
.react-flow__selection {
  background: rgba(0, 89, 220, 0.08);
  border: 1px dotted rgba(0, 89, 220, 0.8);
}
.react-flow__nodesselection-rect:focus,
  .react-flow__nodesselection-rect:focus-visible,
  .react-flow__selection:focus,
  .react-flow__selection:focus-visible {
    outline: none;
  }
.react-flow__controls {
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
}
.react-flow__controls-button {
    border: none;
    background: #fefefe;
    border-bottom: 1px solid #eee;
    box-sizing: content-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    padding: 5px;
  }
.react-flow__controls-button:hover {
      background: #f4f4f4;
    }
.react-flow__controls-button svg {
      width: 100%;
      max-width: 12px;
      max-height: 12px;
    }
.react-flow__controls-button:disabled {
      pointer-events: none;
    }
.react-flow__controls-button:disabled svg {
        fill-opacity: 0.4;
      }
.react-flow__minimap {
  background-color: #fff;
}
.react-flow__minimap svg {
  display: block;
}
.react-flow__resize-control {
  position: absolute;
}
.react-flow__resize-control.left,
.react-flow__resize-control.right {
  cursor: ew-resize;
}
.react-flow__resize-control.top,
.react-flow__resize-control.bottom {
  cursor: ns-resize;
}
.react-flow__resize-control.top.left,
.react-flow__resize-control.bottom.right {
  cursor: nwse-resize;
}
.react-flow__resize-control.bottom.left,
.react-flow__resize-control.top.right {
  cursor: nesw-resize;
}
/* handle styles */
.react-flow__resize-control.handle {
  width: 4px;
  height: 4px;
  border: 1px solid #fff;
  border-radius: 1px;
  background-color: #3367d9;
  transform: translate(-50%, -50%);
}
.react-flow__resize-control.handle.left {
  left: 0;
  top: 50%;
}
.react-flow__resize-control.handle.right {
  left: 100%;
  top: 50%;
}
.react-flow__resize-control.handle.top {
  left: 50%;
  top: 0;
}
.react-flow__resize-control.handle.bottom {
  left: 50%;
  top: 100%;
}
.react-flow__resize-control.handle.top.left {
  left: 0;
}
.react-flow__resize-control.handle.bottom.left {
  left: 0;
}
.react-flow__resize-control.handle.top.right {
  left: 100%;
}
.react-flow__resize-control.handle.bottom.right {
  left: 100%;
}
/* line styles */
.react-flow__resize-control.line {
  border-color: #3367d9;
  border-width: 0;
  border-style: solid;
}
.react-flow__resize-control.line.left,
.react-flow__resize-control.line.right {
  width: 1px;
  transform: translate(-50%, 0);
  top: 0;
  height: 100%;
}
.react-flow__resize-control.line.left {
  left: 0;
  border-left-width: 1px;
}
.react-flow__resize-control.line.right {
  left: 100%;
  border-right-width: 1px;
}
.react-flow__resize-control.line.top,
.react-flow__resize-control.line.bottom {
  height: 1px;
  transform: translate(0, -50%);
  left: 0;
  width: 100%;
}
.react-flow__resize-control.line.top {
  top: 0;
  border-top-width: 1px;
}
.react-flow__resize-control.line.bottom {
  border-bottom-width: 1px;
  top: 100%;
}


.scroll-container {
  --time: 30s;
  --half-time: 15s;
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  grid-template-areas: "scroll-area";
}

.scroll {
  grid-area: scroll-area;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 2rem;
  animation: loop var(--time) linear infinite;
  transform: translateX(100%);
}

.scroll[data-first] {
  animation: first-loop var(--time) linear forwards;
  transform: translateX(0);
}

.scroll[data-last] {
  animation-delay: var(--half-time);
}

@keyframes first-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-200%);
  }
}

@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a1a1a, transparent 30%, transparent 70%, #1a1a1a);
}

.ticker-text {
  font-family: 'Space Mono', monospace;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 40px;
}

/* Pause animation on hover */

.ticker-container:hover .ticker-content {
  animation-play-state: paused;
}

/* Ensure smooth animation */

.ticker-content {
  backface-visibility: hidden;
  perspective: 1000;
  transform: translate3d(0, 0, 0);
} .app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-content {
  flex: 1;
  padding-top: 10px; /* Reduced from 40px */
} .forum-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 10px;
}

.tab-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.tab-btn.active {
  background: #4a90e2;
  border-color: #4a90e2;
  color: #ffffff;
}

.forum-content {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #3a3a3a;
}

.forum-section {
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-header h2 {
  color: #ffffff;
  margin: 0;
}

.selected-info {
  color: #4a90e2;
  font-size: 14px;
  padding: 5px 10px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(74, 144, 226, 0.3);
}

.create-btn {
  background: #28a745;
  border: none;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.create-btn:hover:not(:disabled) {
  background: #218838;
}

.create-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.create-form {
  background: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #3a3a3a;
}

.create-form input,
.create-form textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #ffffff;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: inherit;
  resize: vertical;
}

.create-form input:focus,
.create-form textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.create-form textarea {
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.form-actions button {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-actions button[type="submit"] {
  background: #28a745;
  color: #ffffff;
}

.form-actions button[type="submit"]:hover:not(:disabled) {
  background: #218838;
}

.form-actions button[type="submit"]:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.form-actions button[type="button"] {
  background: #6c757d;
  color: #ffffff;
}

.form-actions button[type="button"]:hover {
  background: #5a6268;
}

.no-selection {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  background: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.item-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.item-card:hover {
  border-color: #4a4a4a;
}

.item-card.deleted {
  opacity: 0.6;
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 15px;
}

.item-header h3 {
  color: #ffffff;
  margin: 0;
  flex: 1;
  word-break: break-word;
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.select-btn {
  background: #4a90e2;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.select-btn:hover {
  background: #3a3a3a;
}

.edit-btn {
  background: #ffc107;
  border: none;
  color: #000000;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.edit-btn:hover:not(:disabled) {
  background: #e0a800;
}

.edit-btn:disabled {
  background: #6c757d;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.5;
}

.delete-btn {
  background: #dc3545;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.delete-btn:hover {
  background: #c82333;
}

.delete-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

.undelete-btn {
  background: #28a745;
  border: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
}

.undelete-btn:hover {
  background: #218838;
}

.undelete-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.5;
}

.item-card p {
  color: #cccccc;
  margin: 0 0 15px 0;
  line-height: 1.5;
  word-break: break-word;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: #888;
}

.item-meta span {
  background: #1a1a1a;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #3a3a3a;
}

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

.stat-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #4a4a4a;
}

.stat-card h3 {
  color: #ffffff;
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  color: #4a90e2;
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.deleted-badge {
  background: #dc3545;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 10px;
}

.proposals-topic {
  border-color: #ffc107 !important;
  background: rgba(255, 193, 7, 0.1) !important;
}

.proposals-topic:hover {
  border-color: #e0a800 !important;
}

.proposals-badge {
  background: #ffc107;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  .forum-tabs {
    flex-wrap: wrap;
  }
  
  .section-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .item-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .item-actions {
    justify-content: flex-end;
  }
  
  .item-meta {
    flex-direction: column;
    gap: 8px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
} body {
  font-family: sans-serif;
  font-size: 1rem;
}

img {
  max-width: 50vw;
  max-height: 25vw;
  display: block;
  margin: auto;
}

form {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  flex-flow: row wrap;
  max-width: 40vw;
  margin: auto;
  align-items: baseline;
}

button[type=submit] {
  padding: 5px 20px;
  margin: 10px auto;
  float: right;
}

#greeting {
  margin: 10px auto;
  padding: 10px 60px;
  border: 1px solid #222;
}

#greeting:empty {
  display: none;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.error-text {
  color: red;
  margin-top: 10px;
}

/* Responsive styles for neurons display */
@media (max-width: 768px) {
  .neurons-display-desktop {
    display: none !important;
  }
  .neurons-display-mobile {
    display: block !important;
  }
}
@media (min-width: 769px) {
  .neurons-display-desktop {
    display: flex !important;
  }
  .neurons-display-mobile {
    display: none !important;
  }
}