/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #E0E0E0;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

/* ====== HEADER ====== */
header {
  background-color: #1E1E1E;
  color: #BB86FC;
  padding: 30px 20px 20px;
  border-bottom: 1px solid #333;
  text-align: center;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-top: 10px;
}

nav ul li a {
  color: #BB86FC;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

nav ul li a:hover {
  background-color: #2A2A2A;
  color: #FFFFFF;
}

/* ====== MAIN CONTENT ====== */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== OVERVIEW CARDS ====== */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background-color: #1F1B24;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  background-color: #2E0F6F;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* ====== CHARTS & TRANSACTIONS ====== */
.charts,
.transactions {
  background-color: #1F1B24;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.transactions h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  text-align: center;
}

.transactions ul {
  list-style: disc inside;
  padding-left: 10px;
}

/* ====== INPUT GRID ====== */
.summary-inputs,
#formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-inputs label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* ====== NET STATUS BADGES ====== */
.net-status {
  padding: 14px 18px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-bottom: 25px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.net-status.profit {
  background-color: #2E7D32;
  color: #FFFFFF;
}

.net-status.loss {
  background-color: #C62828;
  color: #FFFFFF;
}

.net-status.neutral {
  background-color: #FFA000;
  color: #FFFFFF;
}

/* ====== FORM & CARD CONTAINER ====== */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

#cardsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
}

/* Reuse card styling */
#cardsGrid .card {
  background-color: #1F1B24;
  padding: 20px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#cardsGrid .card:hover {
  background-color: #3700B3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* ====== HEADINGS ====== */
h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #BB86FC;
}

/* ====== FOOTER ====== */
footer {
  background-color: #1E1E1E;
  color: #BB86FC;
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  border-top: 1px solid #333;
  margin-top: 40px;
}
