body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a192f;
  color: #e2e8f0;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #64ffda;
  margin-bottom: 30px;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  background-color: #1a202c;
  padding: 15px;
  border-radius: 6px;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.control-item {
  display: flex;
  align-items: center;
}

.control-item label {
  margin-right: 8px;
  white-space: nowrap;
  color: #94a3b8;
}

.control-item input,
.control-item select {
  min-width: 80px;
  max-width: 160px;
}

#arbitrage-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  background-color: #112240;
  border-radius: 8px;
  overflow: hidden;
}

#arbitrage-table th {
  background-color: #1d4ed8;
  color: white;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  position: relative;
}

#arbitrage-table th:hover {
  background-color: #1e40af;
}

#arbitrage-table th::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

#arbitrage-table th.sort-asc::after {
  content: "↑";
  position: absolute;
  right: 8px;
}

#arbitrage-table th.sort-desc::after {
  content: "↓";
  position: absolute;
  right: 8px;
}

#arbitrage-table td {
  padding: 12px;
  border-bottom: 1px solid #1e293b;
}

#arbitrage-table tr:hover {
  background-color: #1a365d;
}

tr.profitable {
  background-color: rgba(16, 185, 129, 0.1);
}

tr.unprofitable {
  background-color: rgba(239, 68, 68, 0.05);
  color: #888;
}

.profit-high {
  color: #00ff7f;
  font-weight: bold;
}

.profit-medium {
  color: #f9d71c;
  font-weight: bold;
}

.profit-low {
  color: #ff507a;
}

.last-updated {
  text-align: right;
  font-size: 0.9em;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #94a3b8;
}

input, select {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: white;
  margin-right: 10px;
}

input:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
}

.net-positive {
  color: #10b981;
  font-weight: bold;
}

.net-negative {
  color: #ef4444;
}

/* Add these styles to fix layout issues */

/* Style for disabled options */
select option:disabled {
  background-color: #475569;
  color: #94a3b8;
  font-style: italic;
}

/* Watermark styling */
.watermark {
  position: fixed;
  bottom: 5px;
  right: 10px;
  font-size: 20px;
  color: rgb(181, 199, 224);
  font-weight: 300;
  z-index: 999;
  pointer-events: none; /* Ensures it doesn't interfere with clicking */
}

/* Navigation Bar Styles */
.main-nav {
    width: 100%;
    background: #23272f;
    padding: 0 0 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 48px;
    box-sizing: border-box;
    margin-bottom: 24px;
    border-bottom: 1px solid #222;
}
.main-nav .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08em;
    padding: 0 8px;
    line-height: 48px;
    transition: color 0.2s;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active {
    color: #2d8cff;
    border-bottom: 2px solid #2d8cff;
}

#google_translate_element {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
