:root {
  /* Dark theme color system inspired by Reflect and ANML Style */
  --background: #1a1b1e;
  --surface: #2a2b2e;
  --surface-darker: #232427;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #64748b;
  --accent: #0ea5e9;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: #2e2f34;
  --shadow: rgba(0, 0, 0, 0.4);
  --input-background: #16171a;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base styles */
body {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
}

/*Navbar styles */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 600;
  color: var(--text-primary);
}

.brand-text {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.feather-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

/* Card styles */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px var(--shadow);
  transform: translateY(-2px);
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
}

.card-body {
  color: var(--text-primary);
}

/* Tweet card styles */
.tweet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: move;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.tweet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px var(--shadow);
  border-color: var(--primary);
}

.tweet-content {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  word-break: break-word;
}

.tweet-metadata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.tweet-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.scheduled-time {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Button styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Form styles */
.form-control {
  background-color: var(--input-background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-control:focus {
  background-color: var(--input-background);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-select {
  background-color: var(--input-background);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.form-select:focus {
  background-color: var(--input-background);
  border-color: var(--primary);
  color: var(--text-primary);
}

.form-label {
  color: var(--text-primary);
  font-weight: 500;
}

.form-text {
  color: var(--text-secondary);
}

/* Modal styles */
.modal {
  z-index: 1050;
  display: none;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: fixed;
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 600px;
}

.modal-backdrop {
  z-index: 1040;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
}

.modal-title {
  color: var(--text-primary);
  font-weight: 600;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form styles inside modal */
.modal .form-control {
  background-color: var(--input-background);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.modal .form-control:focus {
  background-color: var(--input-background);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Alert styles */
.alert {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
}

/* Small text and muted elements */
.small,
.text-muted {
  color: var(--text-muted);
}

/* Badge styles */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

/* Price indicator */
#algo-price {
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Kanban Board Styles */
.kanban-board {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  min-height: 70vh;
  margin: 1rem -1rem;
}

.kanban-column {
  flex: 1;
  min-width: 320px;
  background: var(--surface-darker);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: fit-content;
  max-height: 80vh;
  overflow-y: auto;
}

.kanban-column-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background: var(--surface-darker);
  z-index: 1;
}

.kanban-column-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-column-count {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
}

.kanban-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100px;
  padding: 0.5rem;
}

/* Drag and drop styles */
.tweet-card.is-dragging {
  opacity: 0.5;
  background: var(--surface-darker);
  border: 2px dashed var(--primary);
}

.kanban-cards.drag-over {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
}

/* Animation for cards */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tweet-card {
  animation: slideIn 0.3s ease-out;
}

/* Edit button styles */
.btn-warning {
  background-color: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}

.btn-warning:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #fff;
}
/* Modern Leaderboard Styles */
.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.leaderboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.modern-table thead {
    background: linear-gradient(135deg, var(--surface-darker), var(--surface));
}

.modern-table th {
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.modern-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.rank-cell {
    font-weight: 700;
    font-size: 1.1rem;
    width: 80px;
    text-align: center;
}

.wallet-cell {
    min-width: 250px;
}

.nfd-name {
    font-weight: bold;
    color: #60a5fa;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.wallet-address-small {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.value-cell {
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.75rem;
}

.badge.gold-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
}

.badge.silver-badge {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #000;
}

.badge.bronze-badge {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
}

/* Wallet Connection Styles */
.wallet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-option {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.wallet-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wallet-option:disabled {
    opacity: 0.6;
}

.wallet-icon {
    border-radius: 8px;
    object-fit: contain;
}

.wallet-status {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    color: #198754;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 15px;
    }

    .card {
        margin-bottom: 1rem;
    }

    .wallet-controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .wallet-controls .d-flex {
        width: 100%;
        justify-content: center;
    }
}