/* 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: var(--color-accent);
  color: var(--color-primary-text);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.principal-popup {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-secondary-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  z-index: 1000;
  min-width: 280px;
  max-width: 320px;
  width: calc(100vw - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .principal-popup {
    right: -16px;
    width: calc(100vw - 64px);
    max-width: none;
    min-width: 260px;
  }
}

.principal-id-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-primary-bg);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.principal-id-container:hover {
  background-color: var(--color-accent-hover);
}

.principal-id-text {
  color: var(--color-primary-text);
  font-family: monospace;
  font-size: 14px;
  word-break: break-all;
  flex: 1;
  margin-right: 8px;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 12px;
  transition: color 0.2s ease;
}

.copy-button.copied {
  color: var(--color-success);
}

.copy-button:not(.copied) {
  color: var(--color-muted-text);
}

.copy-feedback {
  color: var(--color-success);
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
}

.principal-popup .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.me-button {
  background-color: var(--color-accent);
  color: var(--color-primary-text);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.me-button:hover {
  background-color: var(--color-accent-hover);
}

.logout-button {
  background-color: var(--color-error);
  color: var(--color-primary-text);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.logout-button:hover {
  background-color: var(--color-error);
  opacity: 0.8;
}

.user-name-link {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.user-name-link:hover {
  color: var(--color-accent-hover);
}

.principal-popup h3 {
  margin-top: 0;
  color: var(--color-primary-text);
  margin-bottom: 16px;
}

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

.principal-input {
  width: 100%;
  background-color: transparent;
  color: var(--color-secondary-text);
  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: var(--color-success);
  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: var(--color-primary-bg);
  color: var(--color-primary-text);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  flex: 1;
  margin: 0 4px;
}

.principal-copy-button-group button:hover {
  background-color: var(--color-accent-hover);
}

.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: var(--color-primaryText);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--color-primaryGradient);
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-primaryGradient);
}

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

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

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

.help-link:hover {
    background-color: var(--color-secondaryBg);
}

.logo img {
    height: 60px;
}

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

/* Center single cards on lock pages */
.wallet-container.centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.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: var(--color-cardGradient);
    border: 1px solid var(--color-border);
    box-shadow: var(--color-cardShadow);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    text-align: left;
    box-sizing: border-box;
    min-width: 280px;
    max-width: 800px;
    overflow: visible;
}

.card:hover {
    border-color: var(--color-borderHover);
    box-shadow: var(--color-accentShadow);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.card-header {
    display: flex;
    align-items: stretch;
    margin-bottom: 10px;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.card-header:hover {
    background: var(--color-tertiaryBg);
    border-radius: 8px;
}

.header-logo-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.header-row-1,
.header-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
}

.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-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-secondaryText);
}

.token-symbol {
    font-size: 1.2rem;
    color: var(--color-primaryText);
}

.token-amount {
    font-size: 1.0rem;
    font-weight: 500;
    color: var(--color-primaryText);
}

.token-usd-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-secondaryText);
    text-align: right;
}

.expand-indicator {
    font-size: 0.9rem;
    color: var(--color-secondaryText);
    transition: transform 0.2s ease;
}

.card-header:hover .expand-indicator {
    color: var(--color-primaryText);
}

.token-logo {
    width: auto;
    height: 36px;
    border-radius: 50%;
}

.swap-token-logo1 {
    width: auto;
    height: 36px;
    margin-right: -8px;
    border-radius: 50%;
    z-index: 2;
}
.swap-token-logo2 {
    width: auto;
    height: 36px;
    border-radius: 50%;
    z-index: 1;
}

.balance-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--color-secondaryBg);
    border: 1px solid var(--color-border);
    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: var(--color-secondaryText);
    margin-bottom: 5px;

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

.usd-text {
    color: var(--color-secondaryText);
}

.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: var(--color-secondaryText);
    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: var(--color-tertiaryBg);
    border: 1px solid var(--color-border);
    color: var(--color-primaryText);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    visibility: hidden;
}

.withdraw-button:hover {
    background: var(--color-accent);
    border-color: var(--color-accentHover);
}

.debug-section {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--color-secondaryBg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.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: var(--color-tertiaryBg);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.add-ledger-card:hover, .add-swap-card:hover {
    background: var(--color-accent);
    border-color: var(--color-accentHover);
}

.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 var(--color-border);
    border-top: 4px solid var(--color-accent);
    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: var(--color-tertiaryBg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    box-shadow: var(--color-cardShadow);
}

.locks-header {
    font-size: 0.9rem;
    color: var(--color-secondaryText);
    margin-bottom: 10px;
}

.lock-item {
    background: var(--color-secondaryBg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 8px;
}

.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: var(--color-secondaryText);
}

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

.disclaimer {
    background: var(--color-cardGradient);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    box-shadow: var(--color-cardShadow);
    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: var(--color-modalBg);
    color: var(--color-primaryText);
    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 var(--color-border);
    background: var(--color-tertiaryBg);
    color: var(--color-primaryText);
    font-family: inherit;
}

.token-input::placeholder {
    color: var(--color-mutedText);
}

.submit-button {
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid var(--color-border);
    background: var(--color-tertiaryBg);
    color: var(--color-primaryText);
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--color-accent);
    border-color: var(--color-accentHover);
}

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

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

.locks-section h2 {
    color: var(--color-primaryText);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.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: var(--color-primaryText);
    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: var(--color-primaryText);
    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: var(--color-modalBg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-cardGradient);
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid var(--color-border);
}

.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: var(--color-accent);
    color: var(--color-primaryBg);
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
}

.modal-content button:hover {
    background: var(--color-accentHover);
}

.modal-content button:last-child {
    background: var(--color-mutedText);
    margin-right: 0;
}

.modal-content button:last-child:hover {
    background: var(--color-error);
}

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

.lock-item {
    background: var(--color-secondaryBg);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
}

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

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

.modal-content {
    background: var(--color-cardGradient);
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    border: 1px solid var(--color-border);
}

.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: var(--color-accent);
    color: var(--color-primaryBg);
    cursor: pointer;
    border-radius: 4px;
    flex: 1;
    margin-right: 10px;
}

.modal-content button:hover {
    background: var(--color-accentHover);
}

.modal-content button:last-child {
    background: var(--color-mutedText);
    margin-right: 0;
}

.modal-content button:last-child:hover {
    background: var(--color-error);
}

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

.lock-item {
    background: var(--color-secondaryBg);
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
}

.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%;
}
/* ThreadViewer Component Styles */
.discussion-container {
    color: var(--color-primary-text);
    background: transparent;
}

.thread-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-secondary-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
}

.thread-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thread-description {
    color: var(--color-secondary-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-focus-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    color: #ffd700;
    font-weight: 600;
}

.post-focus-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Discussion Controls */
.discussion-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--color-secondary-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.view-mode-controls {
    display: flex;
    gap: 0.5rem;
}

.view-mode-controls button {
    background: var(--color-primary-bg);
    border: 1px solid var(--color-border);
    color: var(--color-primary-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-mode-controls button:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent);
    color: var(--color-primary-text);
}

.view-mode-controls button.active {
    background: var(--color-accent);
    color: var(--color-primary-text);
    border-color: var(--color-accent);
    box-shadow: 0 2px 10px var(--color-accent-shadow);
}

/* Posts Display */
.discussion-posts {
    margin-top: 2rem;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--color-muted-text);
    background: var(--color-secondary-bg);
    border-radius: 15px;
    border: 1px solid var(--color-border);
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.posts-container.flat .post-item {
    margin-left: 0 !important;
    border-left: none !important;
}

/* Post Items */
.post-item {
    background: var(--color-secondary-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Disabled hover effect to prevent jitter
.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
*/

/* Focused Post Styling - Slick Blue Theme */
.post-item.focused-post {
    border: 2px solid #3c6382 !important;
    background: linear-gradient(135deg, rgba(60, 99, 130, 0.08) 0%, rgba(47, 53, 66, 0.12) 100%) !important;
    box-shadow: 0 4px 20px rgba(60, 99, 130, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(1px);
}

.post-item.focused-post::before {
    content: 'FOCUSED';
    position: absolute;
    top: -1px;
    right: 8px;
    background: #3c6382;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 0 0 4px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Post Content */
.post-content {
    width: 100%;
}

.thread-post-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.post-id {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.post-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-text);
}

.post-author {
    color: var(--color-secondary-text);
    font-size: 0.9rem;
}

.post-body {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--color-primary-text);
}

.post-body p {
    margin: 0 0 1rem 0;
}

/* Loading and Error States */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-secondary-text);
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.error-state {
    text-align: center;
    padding: 3rem;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thread-header {
        padding: 1rem;
    }
    
    .thread-header h2 {
        font-size: 1.5rem;
    }
    
    .discussion-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-mode-controls {
        justify-content: center;
    }
    
    .post-item {
        padding: 1rem;
        margin-left: 0 !important;
    }
    
    .post-item.focused-post::before {
        position: static;
        display: block;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .thread-post-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.5rem;
        justify-content: flex-start;
    }
}
.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;
  }
} /* Tips Page Styles */
.tips-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
}

/* Tips Cards Container */
.tips-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px;
}

.tips-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tips-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tips-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tab-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000000;
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.tips-content {
    margin-top: 2rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.error-state {
    text-align: center;
    padding: 3rem;
    color: #ff6b6b;
}

.retry-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state p:first-child {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tips-table-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.tips-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tips-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.tips-table th:first-child,
.tips-table td:first-child,
.tips-table .tip-amount {
    text-align: left !important;
    justify-content: flex-start !important;
}

.tips-table .tip-amount * {
    text-align: left !important;
}

.tips-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.tip-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Highlighting for new tips */
.tip-row.tip-new {
    background: rgba(255, 215, 0, 0.08);
    border-left: 3px solid #ffd700;
    animation: newTipGlow 2s ease-in-out;
}

.tip-row.tip-new:hover {
    background: rgba(255, 215, 0, 0.12);
}

@keyframes newTipGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
}

.tip-amount-container {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    flex-direction: row !important;
    text-align: left !important;
    white-space: nowrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.token-logo {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.token-fallback {
    font-size: 1.2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline !important;
}

.loading-indicator {
    font-size: 1rem !important;
    animation: pulse 1.5s ease-in-out infinite alternate;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    display: inline !important;
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.amount-text {
    font-weight: 600 !important;
    color: #ffd700 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    flex-shrink: 0 !important;
}

.principal-with-name {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.principal-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.name {
    font-weight: 600;
    color: #4CAF50;
}

.nickname {
    font-style: italic;
    color: #2196F3;
}

.principal-id {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
}

.tip-post {
    color: #9C27B0;
    font-weight: 500;
}

.post-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-link,
.thread-link {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-link {
    color: #9C27B0;
}

.post-link:hover {
    background: rgba(156, 39, 176, 0.1);
    color: #BA68C8;
    transform: translateX(2px);
}

.thread-link {
    color: #FF9800;
    font-size: 0.8rem;
}

.thread-link:hover {
    background: rgba(255, 152, 0, 0.1);
    color: #FFB74D;
    transform: translateX(2px);
}

.tip-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.tips-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.refresh-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.refresh-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-required {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tips-container {
        padding: 1rem;
    }
    
    .tips-header h1 {
        font-size: 2rem;
    }
    
    .tips-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
    
    .tips-table {
        font-size: 0.85rem;
    }
    
    .tips-table th,
    .tips-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .principal-with-name {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .tips-table-container {
        padding: 1rem;
    }
    
    .tips-table th,
    .tips-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .tip-amount-container {
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
}
/* Posts Page Styles */
.posts-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
}

.posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.posts-header {
    text-align: center;
    margin-bottom: 2rem;
}

.posts-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3c6382, #40739e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.posts-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.posts-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, #3c6382, #40739e);
    border-color: #3c6382;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(60, 99, 130, 0.3);
}

.posts-content {
    margin-top: 2rem;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(60, 99, 130, 0.3);
    border-top: 4px solid #3c6382;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.error-state {
    text-align: center;
    padding: 2rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    margin: 1rem 0;
}

.error-state h3 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.retry-button {
    background: #3c6382;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background: #40739e;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 99, 130, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.post-item.negative-score {
    background: rgba(139, 69, 19, 0.1);
    border-color: rgba(139, 69, 19, 0.3);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.post-id {
    font-weight: 600;
    color: #3c6382;
    font-size: 0.9rem;
}

.post-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.reply-indicator {
    font-weight: 500;
    color: #40739e;
    font-size: 1rem;
}

.post-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.post-scores {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.score {
    font-weight: 700;
    font-size: 1.1rem;
}

.score.positive {
    color: #2ecc71;
}

.score.negative {
    color: #e74c3c;
}

.vote-breakdown {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 0.5rem;
}

.post-body {
    margin-bottom: 1rem;
}

.post-body p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.reply-context {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.auth-required {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 2rem 0;
}

.auth-required h2 {
    color: #3c6382;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .posts-container {
        padding: 1rem;
    }
    
    .posts-header h1 {
        font-size: 2rem;
    }
    
    .posts-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-scores {
        align-items: flex-start;
    }
}

/* New reply highlighting */
.reply-new {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%) !important;
    border-left: 4px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2) !important;
    animation: newReplyGlow 2s ease-in-out;
}

@keyframes newReplyGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .posts-container {
        padding: 0.5rem;
    }
    
    .post-item {
        padding: 1rem;
    }
    
    .posts-header h1 {
        font-size: 1.8rem;
    }
}
/* Thread Page Styles */
.thread-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
}

.thread-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.error-state,
.loading-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-state h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Thread-specific styling */
.thread-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thread-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thread-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thread-container {
        padding: 1rem;
    }
    
    .thread-header h2 {
        font-size: 1.5rem;
    }
}
/* Post Page Styles */
.post-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.error-state,
.loading-state {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.error-state h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Post-specific styling */
.post-focus-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    color: #ffd700;
    font-weight: 600;
}

.post-focus-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Focused post highlighting */
.focused-post {
    position: relative;
    border: 2px solid #3c6382 !important;
    background: linear-gradient(135deg, rgba(60, 99, 130, 0.08) 0%, rgba(47, 53, 66, 0.12) 100%) !important;
    box-shadow: 0 4px 20px rgba(60, 99, 130, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1rem 0;
    backdrop-filter: blur(1px);
}

.focused-post::before {
    content: 'FOCUSED';
    position: absolute;
    top: -1px;
    right: 8px;
    background: #3c6382;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 0 0 4px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.focused-post .post-header {
    border-bottom: 1px solid rgba(60, 99, 130, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Ancestor posts styling */
.post-item[data-is-ancestor="true"] {
    opacity: 0.7;
    border-left: 3px solid rgba(255, 215, 0, 0.5);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.post-item[data-is-ancestor="true"]::before {
    content: '⬆️';
    position: absolute;
    left: -15px;
    top: 10px;
    font-size: 0.8rem;
}

/* Descendant posts styling */
.post-item[data-is-descendant="true"] {
    border-left: 3px solid rgba(100, 255, 100, 0.5);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-container {
        padding: 1rem;
    }
    
    .focused-post::before {
        position: static;
        display: inline-block;
        margin-bottom: 0.5rem;
    }
}
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 *//* Global Theme CSS Variables */
:root {
  /* Default dark theme colors */
  --color-primaryBg: #1a1a1a;
  --color-secondaryBg: #2a2a2a;
  --color-tertiaryBg: #3a3a3a;
  --color-headerBg: #000000;
  --color-cardBg: rgba(255, 255, 255, 0.1);
  --color-modalBg: rgba(0, 0, 0, 0.8);
  
  --color-primaryText: #ffffff;
  --color-secondaryText: #cccccc;
  --color-mutedText: #888888;
  --color-linkText: #3498db;
  
  --color-accent: #3498db;
  --color-accentHover: #2980b9;
  --color-success: #2ecc71;
  --color-warning: #f39c12;
  --color-error: #e74c3c;
  --color-gold: #ffd700;
  
  --color-border: rgba(255, 255, 255, 0.18);
  --color-borderHover: #3498db;
  
  --color-primaryGradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  --color-cardGradient: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  --color-accentGradient: linear-gradient(to right, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
  
  --color-cardShadow: 0 8px 32px 0 rgba(0, 0, 0, 0.829);
  --color-accentShadow: 0 4px 15px rgba(60, 99, 130, 0.3);
}

/* Global body styling with theme support */
body {
  font-family: "Fira Code", monospace;
  color: var(--color-primaryText);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-primaryGradient);
  transition: all 0.3s ease;
}

/* Update existing site-header class to use theme variables */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-headerBg);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

/* Update card styling to use theme variables */
.card {
  background: var(--color-cardGradient);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-cardShadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 12px;
  position: relative;
  text-align: left;
  box-sizing: border-box;
  min-width: 280px;
  overflow: visible;
}

.card:hover {
  border-color: var(--color-borderHover);
  box-shadow: var(--color-accentShadow);
}

/* Link styling with theme support */
a {
  color: var(--color-linkText);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accentHover);
}

/* Enhanced Button styling with theme support */
button {
  transition: all 0.3s ease;
  font-family: inherit;
}

/* Primary button styling */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accentHover) 100%);
  color: var(--color-primaryText);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, var(--color-accentHover) 0%, var(--color-accent) 100%);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Secondary button styling */
.btn-secondary {
  background: var(--color-secondaryBg);
  color: var(--color-primaryText);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primaryText);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

/* Success button styling */
.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #27ae60 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Warning button styling */
.btn-warning {
  background: linear-gradient(135deg, var(--color-warning) 0%, #e67e22 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
  transition: all 0.3s ease;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Danger button styling */
.btn-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #c0392b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Small button variant */
.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

/* Large button variant */
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

/* Input styling with theme support */
input, textarea, select {
  background-color: var(--color-secondaryBg);
  border: 1px solid var(--color-border);
  color: var(--color-primaryText);
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Modal and overlay styling */
.modal-overlay {
  background-color: var(--color-modalBg);
}

/* Loading spinner with theme colors */
.spinner {
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Error text styling */
.error-text {
  color: var(--color-error);
}

/* Success text styling */
.success-text {
  color: var(--color-success);
}

/* Warning text styling */
.warning-text {
  color: var(--color-warning);
}

/* Muted text styling */
.muted-text {
  color: var(--color-mutedText);
}
