body {
  margin: 0;
  padding: 10px;
  background: #000;
  font-family: 'Courier New', Courier, monospace;
  color: #00ff00;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  overflow: auto;
}

.dashboard-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(40px, auto) minmax(200px, auto) minmax(200px, auto) minmax(200px, auto);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
}

/* Banner Styling */
.banner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0a1e0a 0%, #153015 50%, #000 100%);
  padding: 20px;
  border: 2px solid #1a3c1a;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 40px;
  z-index: 10;
}

.banner-title {
  font-size: 2em;
  font-weight: bold;
  text-transform: uppercase;
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.377), 0 0 20px rgba(0, 255, 0, 0.5);
  letter-spacing: 2px;
  text-align: center;
}

.banner-copyright {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8em;
  color: #9ac299;
  opacity: 0.7;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.banner-social {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 15px;
  z-index: 15;
}

.banner-social a {
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  display: inline-block;
}

.banner-social svg {
  width: 20px;
  height: 20px;
  fill: #00ff00;
  opacity: 0.7;
}

.banner-social svg:hover {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.8));
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 255, 0, 0.3);
}

/* Panel Styling */
.panel {
  min-height: 200px;
  padding: 15px;
  background: #0a1e0a url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAECAIAAADwN3uBAAAAFElEQVR4AWNkYGD4//8/A2NjY8AGAAC0vB1fAAAAAElFTkSuQmCC') repeat;
  background-size: 100% 4px;
  border: 2px solid #1a3c1a;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.log-panel {
  grid-column: 1 / -1;
  min-height: 220px;
  overflow: hidden;
}

.log-container {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 5px;
  flex-grow: 1;
}

.log-container::-webkit-scrollbar {
  width: 12px;
}

.log-container::-webkit-scrollbar-track {
  background: #0a1e0a;
  border-left: 2px solid #1a3c1a;
}

.log-container::-webkit-scrollbar-thumb {
  background: #00ff00;
  border: 2px solid #1a3c1a;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.log-container::-webkit-scrollbar-thumb:hover {
  background: #33ff33;
}

/* Global Staking Panel */
.inline-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.control-select {
  font-family: 'Courier New', Courier, monospace;
  background-color: #0a1e0a;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 3px;
  height: 28px;
  box-sizing: border-box;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  flex: 1;
  min-width: 120px;
}

.control-select:focus {
  border-color: #33ff33;
  background-color: #1a3c1a;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
  outline: none;
}

.control-input {
  font-family: 'Courier New', Courier, monospace;
  background-color: #0a1e0a;
  color: #00ff00;
  border: 1px solid #00ff00;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 3px;
  height: 28px;
  box-sizing: border-box;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  flex: 1;
  min-width: 80px;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}

.control-input::-webkit-inner-spin-button,
.control-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.control-input:hover {
  background-color: #0a1e0a;
  border-color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.control-input::placeholder {
  color: #33ff33;
  opacity: 0.7;
  text-shadow: none;
}

.control-input:focus {
  border-color: #33ff33;
  background-color: #1a3c1a;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
  outline: none;
}

.small-button {
  padding: 8px 12px;
  font-size: 12px;
  flex: 0 0 auto;
  min-width: 80px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.panel-title {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
  animation: pulse 2s infinite;
}

.status-offline {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.8);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#log-cursor {
  display: inline-block;
  color: #00ff00;
  margin-left: 2px;
  animation: blink 1s step-start infinite;
  font-size: 0.85em;
}

@keyframes blink {
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.metric {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.9em;
}

.metric-label {
  color: #66ff66;
}

.metric-value {
  background: #0a1e0a;
  padding: 2px 8px;
  border: 1px solid #1a3c1a;
  border-radius: 3px;
  min-width: 80px;
  text-align: right;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #0a1e0a;
  border: 1px solid #1a3c1a;
  margin: 5px 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #004400, #00ff00);
  transition: width 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8em;
  text-shadow: 1px 1px 2px #000;
}

.controls {
  margin-top: auto;
  display: flex;
  justify-content: left;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.control-button {
  font-family: 'Courier New', Courier, monospace;
  color: #00ff00;
  background: #0a1e0a;
  border: 2px solid #1a3c1a;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.9em;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
  cursor: pointer;
  margin: 5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.control-button:hover {
  color: #33ff33;
  background: #1a3c1a;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.7);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.control-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-field {
  font-family: 'Courier New', Courier, monospace;
  color: #00ff00;
  background: #0a1e0a;
  border: 1px solid #1a3c1a;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 0.8em;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  width: 100px;
  margin: 3px;
  box-sizing: border-box;
}

.input-field::placeholder {
  color: #33ff33;
  opacity: 0.7;
  text-shadow: none;
}

.input-field:focus {
  border-color: #33ff33;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
  outline: none;
}

.log-entry {
  font-size: 0.9em;
  margin: 2px 0;
  opacity: 0.8;
}

.log-timestamp {
  color: #66ff66;
  margin-right: 10px;
}

.log-info {
  color: #00ff00;
}

.log-warn {
  color: #ffff00;
}

.log-error {
  color: #ff0000;
  text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.warning-text {
  color: #ffaa00;
  text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.error-text {
  color: #ff4444;
  text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.large-panel {
  grid-column: span 2;
}

.supply-block-content {
  display: flex;
  justify-content: space-between;
}

.supply-block-left {
  flex: 1;
  margin-right: 10px;
}

.supply-block-right {
  flex: 1;
}

.mining-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.control-actions {
  margin-top: 10px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a1e0a;
  color: #00ff00;
  font-family: 'Courier New', Courier, monospace;
  border: 2px solid #1a3c1a;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1em;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  opacity: 0.95;
  z-index: 9999;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.hidden {
  display: none;
}

p {
    margin: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 5px;
  }
  .dashboard-container {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }
  .large-panel {
    grid-column: span 1;
  }
  .panel {
    padding: 12px;
  }
  .banner-title {
    font-size: 1.5em;
    letter-spacing: 1px;
  }
  .banner-copyright {
    font-size: 0.7em;
    bottom: 5px;
    right: 5px;
  }
  .banner-social {
    top: 5px;
    right: 5px;
    gap: 10px;
  }
  .banner-social svg {
    width: 16px;
    height: 16px;
  }
  .metric {
    font-size: 0.8em;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .metric-value {
    text-align: left;
    min-width: auto;
  }
  .control-button {
    padding: 10px 12px;
    font-size: 0.8em;
    margin: 3px;
    width: calc(100% - 6px);
  }
  .input-field {
    width: calc(100% - 16px);
    margin-bottom: 5px;
  }
  .control-select{
    width: calc(100% - 16px);
    max-width: none;
  }
  .control-input{
    width: calc(100% - 16px);
    max-width: none;
  }
  .small-button {
    width: calc(100% - 16px);
    max-width: none;
  }
  .inline-controls {
    flex-direction: column;
    align-items: stretch;
    max-width:none;
  }
  .progress-text {
    font-size: 0.7em;
  }
  .supply-block-content {
    flex-direction: column;
  }
  .supply-block-left {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .mining-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .control-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .banner-title {
    font-size: 1.2em;
    line-height: 1.2;
  }
  .panel {
    padding: 10px;
  }
  .metric {
    font-size: 0.75em;
  }
  .control-button {
    font-size: 0.75em;
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .inline-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .control-select,
  .control-input,
  .small-button {
    width: calc(100% - 16px);
    flex: none;
  }
}