:root {
  --primary: #1f7aec;
  --bg: #f6f8fb;
  --text: #222;
  --muted: #666;
  --border: #e3e7ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.app-header,
.app-footer {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.app-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
.app-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav {
  display: flex;
  gap: 12px;
  margin: 12px 0 20px;
}
.nav a {
  text-decoration: none;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 6px;
}
.nav a:hover {
  background: #e9f2ff;
}
.nav a.active {
  background: #cef8f5;
  font-weight: 600;
}
.card {
  background: #fff;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
thead th {
  background: #f0f4fa;
  font-weight: 600;
}
.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-danger {
  background: #e5484d;
}
.btn-secondary {
  background: #6b7280;
}
.alert {
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
}
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
label {
  display: block;
  margin: 10px 0;
}
input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.col-6 {
  flex: 1 1 48%;
}
.col-4 {
  flex: 1 1 31%;
}
.col-3 {
  flex: 1 1 23%;
}
.table-responsive {
  overflow: auto;
  border-radius: 10px;
}
.progress {
  background: #eef2f7;
  height: 8px;
  border-radius: 8px;
  overflow: hidden;
}
.progress > div {
  background: var(--primary);
  height: 8px;
}
@media (max-width: 700px) {
  .col-6,
  .col-4,
  .col-3 {
    flex: 1 1 100%;
  }
}
