:root {
  --primary: #D32F2F;
  --primary-dark: #9A0007;
  --secondary: #1B1B1B;
  --background: #FAEAEA;
  --success: #2E7D32;
  --error: #C62828;
  --text: #FFFFFF;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: var(--secondary);
  color: var(--primary);
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.app-logo {
  width: 80px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--secondary);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}

.bottom-nav button {
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 16px;
  transition: background 0.3s ease;
}

.bottom-nav button:hover { background: var(--primary-dark); }

main {
  flex: 1;
  padding: 20px;
  margin-bottom: 80px;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button.action {
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
}

button.action:hover { background: var(--primary-dark); }

.overlay {
  position: fixed;
  top: 0; left: 0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.75);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:100;
}

.hidden { display: none; }

.overlay-content {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.stats-card {
  text-align:center;
  padding:15px;
  background:#fff;
  border-radius:12px;
  margin-bottom:15px;
}
