:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #111;
  --head: #f1f3f8;
}

.dark {
  --bg: #121212;
  --card: #1e1e1e;
  --text: #f3f3f3;
  --head: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 30px;
  transition: 0.3s;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.card {
  background: var(--card);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.form-section form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr 1.5fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

input, select, button {
  height: 42px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background: #4f46e5;
  color: white;
  cursor: pointer;
  border: none;
}

.filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.filter-panel {
  display: none;
  background: var(--card);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.filter-panel.show {
  display: grid;
}

.table-section {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

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

th {
  background: var(--head);
  padding: 10px;
  text-align: left;
}

td {
  padding: 10px;
  border-top: 1px solid #ddd;
}

td button {
  margin-right: 6px;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .form-section form,
  .filter-panel {
    grid-template-columns: 1fr;
  }
}
