/* css/style.css - Dark Mode, modern & minimalistisch */

:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --on-surface: #E0E0E0;
  --accent: #03DAC6;
  --accent-hover: #00b3a0;
  --negative: #CF6679;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--on-surface);
  font-family: var(--font);
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

h1, h2 {
  text-align: center;
  margin-bottom: 1rem;
}

nav {
  text-align: center;
  margin: 2rem 0;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  position: relative;
}

nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  width: 0;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: -4px;
}

nav a:hover::after {
  width: 100%;
}

.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1rem;
}

.card {
  background-color: var(--surface);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

.balance {
  margin-bottom: 2rem;
}

.balance h2 {
  background-color: var(--surface);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

th {
  background: var(--surface);
  text-transform: uppercase;
  font-size: 0.85rem;
}

tr:nth-child(even) {
  background: #1A1A1A;
}

tr:hover {
  background: #2A2A2A;
}

form {
  background: var(--surface);
  padding: 1rem;
  border-radius: 8px;
}

form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
}

form input,
form select,
form textarea,
button {
  width: 100%;
  padding: 0.6rem;
  background: #2A2A2A;
  border: none;
  color: var(--on-surface);
  border-radius: 4px;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
}

button {
  margin-top: 1rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

canvas {
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* Beispiel für rote Linien in Chart.js kannst du in js konfigurieren:
   borderColor: dataPoint < 0 ? 'var(--negative)' : 'var(--accent)'
*/

