/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* BODY */
body {
  background: #0f172a;
  color: #e2e8f0;
}

/* APP LAYOUT */
.app {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #020617;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* HEADER */
.sidebar-header {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #e2e8f0;
}

/* MENU */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* NAV ITEM */
.nav-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

/* HOVER */
.nav-item:hover {
  background: #1e293b;
  color: #e2e8f0;
}

/* ACTIVE */
.nav-item.active {
  background: #6366f1;
  color: white;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* PAGE */
.page {
  display: none;
}

/* CARD */
.card {
  background: #1e293b;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #334155;
}

/* HEADINGS */
h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

h3 {
  margin: 10px 0;
  font-size: 14px;
  color: #94a3b8;
}

/* LABEL */
label {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 4px;
  color: #94a3b8;
}

/* INPUT + SELECT */
input, select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}

input::placeholder {
  color: #64748b;
}

input:focus, select:focus {
  outline: none;
  border-color: #6366f1;
}

/* BUTTON */
button {
  margin-top: 10px;
  background: #6366f1;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

button:hover {
  background: #4f46e5;
}

/* TABLE */
table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  border: 1px solid #334155;
  border-radius: 8px;
  overflow: hidden;
}

th {
  text-align: left;
  font-size: 12px;
  color: #94a3b8;
  padding: 10px;
  background: #020617;
  border-bottom: 1px solid #334155;
}

td {
  padding: 10px;
  border-bottom: 1px solid #334155;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

/* CALC BOX */
.calc-box {
  background: #020617;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 13px;
  border: 1px solid #334155;
}

/* INFO BOX */
.info-box {
  background: #020617;
  border: 1px solid #334155;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  font-size: 13px;
  margin-bottom: 10px;
  color: #cbd5f5;
}

/* PARTNER BOX */
.partner-box {
  border: 1px solid #334155;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #020617;
}

/* SMALL TEXT */
.small {
  font-size: 12px;
  color: #94a3b8;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.kpi {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 14px;
  border-radius: 10px;
}

.kpi-label {
  font-size: 12px;
  color: #94a3b8;
}

.kpi-value {
  font-size: 20px;
  font-weight: 600;
  margin-top: 4px;
}

/* COLORS */
.green {
  color: #22c55e;
}

.red {
  color: #ef4444;
}

td input[type="number"] {
  width: 80px;
  padding: 6px 8px;
  font-size: 13px;
}

/* DELETE COLUMN */
.delete-cell {
  text-align: right;
}

/* DELETE BUTTON */
.delete-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

/* HOVER */
.delete-btn:hover {
  color: #ef4444;
  transform: scale(1.2);
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}