* {
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #13241f, #070d0b);
  color: #e6f6f1;
}

.app {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: linear-gradient(180deg, #071311, #030807);
  padding: 20px;
}

.logo {
  color: #2dd4bf;
  font-weight: 800;
  margin-bottom: 25px;
}

.sidebar li {
  list-style: none;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.sidebar li.active,
.sidebar li:hover {
  background: rgba(45,212,191,0.15);
  color: #2dd4bf;
}

.sidebar footer {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 30px;
}

/* Main */
.main {
  flex: 1;
  padding: 25px 35px;
  overflow-y: auto;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  color: #5eead4;
}

.actions button {
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.add {
  background: linear-gradient(135deg,#22c55e,#166534);
  color: #021c14;
}

.secondary {
  background: linear-gradient(135deg,#38bdf8,#1e3a8a);
  color: #021019;
  margin-right: 8px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.card {
  padding: 18px;
  border-radius: 16px;
  font-weight: 700;
}

.card small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  opacity: 0.8;
}

.green { background: linear-gradient(135deg,#16a34a,#064e3b); }
.blue { background: linear-gradient(135deg,#2563eb,#1e3a8a); }
.orange { background: linear-gradient(135deg,#f59e0b,#7c2d12); }
.red { background: linear-gradient(135deg,#dc2626,#7f1d1d); }

/* Table */
.table-section h2 {
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: rgba(255,255,255,0.05);
}

th, td {
  padding: 12px;
  text-align: center;
}

tbody tr {
  background: rgba(255,255,255,0.03);
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.profit {
  color: #22c55e;
  font-weight: 600;
}

.ok { color: #22c55e; }
.low { color: #facc15; }
.out { color: #ef4444; }

.warn { background: rgba(250,204,21,0.08); }
.danger { background: rgba(239,68,68,0.08); }

/* Methods */
.methods {
  margin-top: 30px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.method {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
}

.method.active,
.method:hover {
  background: rgba(45,212,191,0.15);
  color: #2dd4bf;
}
.sidebar li{
    text-decoration: none;
    color: white;
    display: block;
    list-style: none;
    border-bottom: none;
    border: none;
}
.a{
    text-decoration: none;
    color: white;
    list-style: none;
    border: none;}