/*
 * Global styles for the Asterdex dashboard. This stylesheet focuses on a
 * modern dark theme with neon accents. The layout uses flexbox for
 * responsiveness and prioritises mobile screens. Feel free to tweak the
 * variables at the top to customise colours.
 */

:root {
  --background: #0d0d0d;
  --surface: #1a1a1a;
  --primary: #16f2b3; /* neon mint */
  --primary-light: #50f7c8;
  --text-primary: #ffffff;
  --text-secondary: #a9a9a9;
  --danger: #ff5c58;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav.navbar {
  background-color: var(--surface);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-links span {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-links a:hover {
  color: var(--primary-light);
}

footer.footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  background-color: var(--surface);
  color: var(--text-secondary);
}

main {
  padding: 1rem;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--background);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background-color: var(--primary-light);
}
.btn.danger {
  background-color: var(--danger);
  color: var(--background);
}
.btn.danger:hover {
  background-color: #ff7b78;
}

/* Form groups */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.3rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select {
  padding: 0.5rem;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: var(--surface);
  color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Dashboard styles */
.dashboard h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.toggle-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.toggle-container label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}
.positions ul,
.orders ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.positions li,
.orders li {
  background-color: var(--surface);
  margin-bottom: 0.5rem;
  padding: 0.7rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.positions li span.symbol,
.orders li span.symbol {
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}
.positions li span.pnl.positive {
  color: #00d97e;
}
.positions li span.pnl.negative {
  color: var(--danger);
}
.hidden {
  display: none;
}

/* Hero (landing page) styles */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 500px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}
.hero #status {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}