:root {
  --primary-color: #9945FF;
  --secondary-color: #14F195;
  --accent-color: #FE8979;
  --background-color: #121212;
  --text-color: #FFFFFF;
  --input-background: #2D2D2D;
  --card-background: #1C1C1C;
  --border-color: #444444;
  --success-color: #14F195;
  --error-color: #FD4A4A;
  --warning-color: #FFC107;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  
  color: var(--text-color);
  line-height: 1.6;
}

header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  max-width: 100%;
  overflow: scroll;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1rem 0;
}

main {
  /* max-width: 900px; */
  width: 100vw;
  margin: 0 auto;
  padding: 2rem;
}

.hidden {
  display: none !important;
}

.button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  opacity: 0.9;
}

.button.secondary {
  background-color: var(--input-background);
  border: 1px solid var(--border-color);
}

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

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

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

.wallet-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#wallet-address {
  background-color: var(--input-background);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  color: #888;
  font-size: 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"], 
input[type="number"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--input-background);
  color: var(--text-color);
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea {
  resize: vertical;
}

#options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.option-input {
  display: flex;
  gap: 0.5rem;
}

/* Poll Card styles */
#polls-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

#all-polls-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.poll-description {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.poll-card.public {
  /* border-left: 4px solid var(--accent-color); */
  border-left: 4px solid rgb(74, 205, 253);
}

.poll-card.wager {
  border-left: 4px solid var(--warning-color);
}

/* Poll Status Label Styles */
.poll-status {
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 0.5rem;
}

/* Commit Phase (Active) */
.poll-card.active .poll-status {
  background-color: rgba(20, 241, 149, 0.15);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

/* Reveal Phase */
.poll-status-reveal {
  background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Not Started */
.poll-status-not-started {
  background-color: rgba(74, 205, 253, 0.15);
  color: rgb(74, 205, 253);
  border: 1px solid rgb(74, 205, 253);
}

/* Awaiting Finalization */
.poll-status-awaiting {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

/* Finalized */
.poll-status-finalized {
  background-color: rgba(255, 69, 69, 0.15);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.poll-card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.poll-card:hover {
  transform: translateY(-3px);
}

.poll-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.poll-options {
  list-style: none;
}

.poll-options li {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--input-background);
  border-radius: 6px;
}

.poll-account-info {
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.wager-badge {
  display: inline-block;
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.wager-amount {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.wager-note {
  font-size: 0.9rem;
  color: #AAA;
  margin-bottom: 1rem;
}

/* Date inputs */
.date-inputs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-input-container {
  flex: 1;
  min-width: 200px;
}

/* Responsive adjustment for small screens */
@media (max-width: 600px) {
  .date-inputs {
    flex-direction: column;
  }

  .date-input-container {
    width: 100%;
  }
}

input[type="datetime-local"] {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--input-background);
  color: var(--text-color);
  font-size: 1rem;
}

input[type="datetime-local"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Poll card date display */
.poll-dates {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #999;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.poll-stats {
  margin: 1rem 0;
  padding: 1rem;
  background-color: var(--input-background);
  border-radius: 8px;
}

.poll-status-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.phase-awaiting{
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.status-awaiting {
  background-color: rgba(255, 193, 7, 0.15);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.status-active {
  background-color: rgba(20, 241, 149, 0.15);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-ended {
  background-color: rgba(253, 74, 74, 0.15);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.status-finalized {
  /* background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color); */
  color: var(--error-color);
  border: 1px solid var(--error-color);
  background-color: #ff454526;
}

.finalization-status {
  background-color: var(--input-background);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#poll-finalization-section, 
#poll-winner-section {
  margin: 1rem 0;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

#poll-results {
  margin-top: 1rem;
}

.result-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.result-option {
  flex: 1;
  margin-right: 1rem;
}

.result-bar-container {
  flex: 2;
  height: 24px;
  background-color: var(--input-background);
  border-radius: 12px;
  overflow: hidden;
}

.result-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 12px 0 0 12px;
}

.result-percentage {
  margin-left: 1rem;
  font-weight: bold;
  width: 50px;
  text-align: right;
}

.result-winner {
  position: relative;
}

.result-winner .result-bar {
  background-color: var(--success-color);
}

.result-winner::after {
  content: '👑';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Connect Prompt */
.connect-prompt {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;
}

.connect-message {
  text-align: center;
  background-color: var(--card-background);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 450px;
}

.connect-message img {
  margin-bottom: 1.5rem;
}

.connect-message p {
  margin-bottom: 1.5rem;
  color: #AAAAAA;
}

/* Transaction Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--card-background);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--success-color);
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#notification-message {
  font-weight: 500;
}

#transaction-link {
  color: var(--primary-color);
  text-decoration: none;
}

#transaction-link:hover {
  text-decoration: underline;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #AAAAAA;
  grid-column: 1 / -1;
}

section {
  margin-bottom: 3rem;
}

.timezone-indicator {
  display: block;
  margin-top: 0.25rem;
  color: #888;
  font-size: 0.85rem;
}

.timezone-display {
  display: block;
  margin-top: 0.5rem;
  color: #888;
  font-size: 0.8rem;
  font-style: italic;
}

.timezone-name {
  font-weight: 500;
  color: #aaa;
}


/* Add to your styles.css */
.comment-item {
  background-color: var(--input-background);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.commenter {
  font-weight: 500;
}

.comment-time {
  color: #888;
  font-size: 0.8rem;
}

.comment-body {
  color: var(--text-color);
  word-break: break-word;
}

.comment-form {
  margin-top: 1.5rem;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.no-comments {
  color: #888;
  text-align: center;
  padding: 1rem;
}


/* Poll Filters */
.poll-filter-form {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.filter-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--input-background);
  color: var(--text-color);
  font-size: 1rem;
}

.search-group {
  flex: 2;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.no-polls {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #888;
}

/* Poll Tags */
.poll-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.poll-tag {
  background-color: var(--input-background);
  color: var(--success-color);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

iframe{
  max-width: 100%;
}

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

.current-vote {
  background-color: rgba(20, 241, 149, 0.3) !important;
  border-color: var(--success-color) !important;
  box-shadow: 0 0 0 1px var(--success-color) !important;
}

.current-vote-note {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #AAA;
}






/**/

/* Add these styles to your styles.css file */

/* Navigation button styles */
#how-to-button,
#learn-more-button,
#next-button {
  margin-left: 5px;
}

/* Section content styles */
.section-content {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

#how-to-section,
#learn-more-section,
#next-section {
  max-width: 900px;
  margin: 0 auto;
}

#how-to-section h2,
#learn-more-section h2,
#next-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

#how-to-section h3,
#learn-more-section h3,
#next-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.section-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.section-content ul,
.section-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.section-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #how-to-button,
  #learn-more-button,
  #next-button {
    margin-top: 5px;
  }
  
  .header-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .wallet-container {
    /* flex-wrap: wrap; */
    gap: 1rem;
  }
}

/* Add to your styles.css */
.button.danger {
  background-color: rgba(253, 74, 74, 0.15);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.button.danger:hover {
  background-color: var(--error-color);
  color: white;
}

#poll-deletion-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 4px solid var(--error-color);
}

#accounts-reclaim-section {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 4px solid var(--error-color);
}

.delete-info {
  font-size: 0.9rem;
  color: #AAA;
  margin-top: 0.5rem;
}

/* Add to your styles.css */
.deletable-indicator {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--error-color);
  margin-top: 0.5rem;
  gap: 0.25rem;
}

.delete-icon {
  font-size: 1rem;
}

  



  /* Add these CSS styles to your styles.css file */

/* Hidden results badge for poll cards */
.hidden-results-badge {
  background-color: #6c5ce7;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 8px;
  margin-right: 8px;
}

/* Styles for the hidden results message in the modal */
.hidden-results-message {
  text-align: center;
  padding: 20px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  margin: 15px 0;
  background-color: #f8f9fa;
}

.hidden-results-message .lock-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: #6c5ce7;
}

.hidden-results-message p {
  color: #666;
  margin-bottom: 15px;
}

.hidden-results-message .waiting-text {
  font-style: italic;
  font-size: 0.9rem;
}

#finalize-to-view {
  margin-top: 10px;
}

/* Style for the new checkbox in the form */
.form-group label[for="hide-results"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.form-group label[for="hide-results"] input[type="checkbox"] {
  margin-right: 5px;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 3px;
  margin-left: 24px;
}

.user-vote-section {
  margin-top: 1rem;
  background-color: rgba(153, 69, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--primary-color);
}

.user-vote-section h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.user-vote-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Add these styles to your styles.css file */

/* Poll Phase Indicator */
.poll-phase-indicator {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

.phase-commit {
  background-color: rgba(20, 241, 149, 0.15);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.phase-reveal {
  background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.phase-ended, .phase-not-started {
  background-color: rgba(253, 74, 74, 0.15);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.phase-finalized {
  /* background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color); */
  color: var(--error-color);
  border: 1px solid var(--error-color);
  background-color: #ff454526;
}

/* Status Badge for Reveal Phase */
.status-reveal {
  background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

/* Vote Commit and Reveal Interface */
.committed-vote-message {
  background-color: rgba(253, 193, 7, 0.15);
  color: #FFC107;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #FFC107;
}

.vote-committed {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.commit-success {
  background-color: rgba(20, 241, 149, 0.15);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--success-color);
  margin-top: 1rem;
}

.phase-explanation {
  margin-bottom: 1rem;
  color: #AAA;
  font-size: 0.9rem;
}

.reveal-notice {
  background-color: rgba(153, 69, 255, 0.15);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--primary-color);
  margin-bottom: 1rem;
}

/* Voting Stats */
.voting-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--input-background);
  padding: 1rem;
  border-radius: 8px;
}

.stats-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.stats-label {
  font-size: 0.85rem;
  color: #AAA;
  display: block;
  margin-bottom: 0.25rem;
}

.stats-value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* User Vote Display */
.user-vote-section {
  margin-top: 1rem;
  background-color: rgba(153, 69, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--primary-color);
}

.user-vote-section h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.user-vote-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.vote-icon {
  color: var(--success-color);
  font-weight: bold;
}

.vote-icon.pending {
  color: #FFC107;
}

.vote-icon.warning {
  color: var(--error-color);
}

.vote-note {
  font-size: 0.9rem;
  color: #AAA;
  font-style: italic;
}

.vote-note.warning {
  color: var(--error-color);
}

.user-vote-option.warning {
  background-color: rgba(253, 74, 74, 0.1);
  border: 1px dashed var(--error-color);
}

/* Legacy Voting Option */
/* Legacy Voting Option */
.legacy-voting-option {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.legacy-voting-option summary {
  cursor: pointer;
  color: #AAA;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.legacy-voting-option p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #AAA;
}

.button.small {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.legacy-options li {
  background-color: rgba(153, 69, 255, 0.15);
  border: 1px solid var(--primary-color);
}

/* Tie Message */
.tie-message {
  background-color: rgba(253, 193, 7, 0.15);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  border: 1px solid #FFC107;
}

.tie-message p {
  margin: 0;
  color: #FFC107;
  font-weight: 500;
}

/* Loading States for Buttons */
.button.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.button.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
  right: 1rem;
  top: calc(50% - 0.5rem);
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* Commitments info cards */
.commitment-info {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
}

.commitment-info h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.commitment-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.commitment-card {
  background-color: var(--input-background);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.token-hash {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--success-color);
  background-color: rgba(20, 241, 149, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin: 0 0.25rem;
}

/* Poll cards with commit-reveal phases */
.poll-card .poll-phase {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.poll-card .phase-commit {
  background-color: rgba(20, 241, 149, 0.15);
  color: var(--success-color);
}

.poll-card .phase-reveal {
  background-color: rgba(153, 69, 255, 0.15);
  color: var(--primary-color);
}

/* Reveal deadline display */
#poll-reveal-deadline {
  display: block;
  margin-top: 0.25rem;
  font-style: italic;
  /* color: var(--primary-color); */
  color: #ffc107;
}

/* Show info block about commit-reveal voting */
.commit-reveal-info {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.commit-reveal-info h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.commit-reveal-info p {
  margin-bottom: 0.75rem;
}

.commit-reveal-info .step {
  display: flex;
  margin-bottom: 0.75rem;
  background-color: var(--input-background);
  padding: 0.75rem;
  border-radius: 8px;
}

.step-number {
  font-size: 1.25rem;
  font-weight: bold;
  margin-right: 1rem;
  color: var(--primary-color);
  line-height: 1.4;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

/* Extend modal height for commit-reveal polls */
.modal-content {
  max-height: 85vh;
}

#poll-start-date{
  color : rgba(20, 241, 149, 0.784);
}

#poll-end-date{
  color: var(--primary-color);

}

.disabled-feature {
  opacity: 0.7;
  cursor: not-allowed;
}

.coming-soon {
  font-size: 0.8em;
  color: #666;
  font-style: italic;
}



/* Add these styles to your styles.css file */

/* Profile section styles */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-card, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light, #eaeaea);
}

.profile-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin-right: 24px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color, #6c5ce7);
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--accent-color, #6c5ce7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-info h3 {
  margin: 0 0 8px 0;
  font-size: 24px;
}

.profile-date {
  color: var(--text-secondary, #666);
  font-size: 14px;
  margin: 0;
}

.profile-details {
  padding-top: 16px;
}

/* Form elements */
.profile-details .form-group {
  margin-bottom: 20px;
}

.profile-details .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.profile-details .form-group input, 
.profile-details .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-light, #eaeaea);
  border-radius: 8px;
  background-color: var(--bg-input, #f8f8f8);
  color: var(--text-primary, #333);
  font-size: 16px;
}

.profile-details .form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.wallet-address {
  position: relative;
}

.wallet-status {
  position: absolute;
  right: 12px;
  top: 40px;
  background-color: var(--accent-light, #d8d5f9);
  color: var(--accent-color, #6c5ce7);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Username button in header */
#username-display {
  min-width: 85px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: var(--accent-color, #6c5ce7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: background-color 0.2s;
}

#username-display:hover {
  background-color: var(--accent-hover, #5b4cc4);
}

.user-icon {
  margin-left: 8px;
}

/* Status messages */
.success-message {
  color: #4CAF50;
  margin-top: 8px;
  font-size: 14px;
}

.error-message {
  color: #F44336;
  margin-top: 8px;
  font-size: 14px;
}

#profile-username{
  color:black;
}

#profile-wallet{
  color: red;
}

/* ddd */

.login-prompt-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-prompt-content {
  background: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #000000;
}

.login-prompt-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* Public poll card indicator */
.poll-card.public {
  position: relative;
}

.poll-card.public::before {
  content: "View Only";
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.7;
}

/* For non-logged-in users */
.login-required-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.poll-card:hover .login-required-overlay {
  opacity: 1;
}

.login-required-message {
  background: white;
  padding: 12px 16px;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#profile-edit-form{
  color: black;
}

