/* pa-site shared dark theme */
* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #004;
  color: #e0e0e0;
}

a { color: #f7931a; text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
}

.card .value {
  font-size: 28px;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.price { color: #f7931a; }
.profit { color: #4caf50; }
.loss { color: #f44336; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #333; }
th { color: #888; font-weight: normal; font-size: 12px; text-transform: uppercase; }

input, select {
  padding: 10px;
  font-size: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #e0e0e0;
  border-radius: 4px;
}

button, select, input {
  font-family: inherit;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
}

.btn-buy { background: #4caf50; color: #000; }
.btn-sell { background: #f44336; color: #fff; }
.btn-close { background: #666; color: #fff; padding: 5px 10px; font-size: 12px; }
.btn-refresh { background: #333; color: #e0e0e0; }
.btn-link { background: none; color: #f7931a; padding: 5px 10px; }

.preview {
  background: #1a1a1a;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
  border-left: 3px solid #f7931a;
}

.error { color: #f44336; background: #2a1a1a; padding: 10px; border-radius: 4px; }
.success { color: #4caf50; background: #1a2a1a; padding: 10px; border-radius: 4px; }
.actions { display: flex; gap: 10px; margin-top: 10px; }

.home-nav { list-style: none; padding: 0; }
.home-nav li { margin: 15px 0; }
.home-nav a { font-size: 18px; }

/* Floating home icon */
.home-icon {
  position: fixed;
  top: 15px;
  right: 20px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s;
  z-index: 100;
  line-height: 0;
}

.home-icon:hover {
  opacity: 1;
  text-decoration: none;
}

.home-icon img {
  display: block;
}

main { min-height: 60vh; }

/* Mobile responsive */
@media (max-width: 600px) {
  body {
    margin: 20px auto;
    padding: 15px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 8px 5px;
  }
}
