* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #222;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: #1f2937;
  color: #fff;
  padding: 20px;
}

.brand {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
}

.sidebar nav a {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #374151;
  color: #fff;
}

.main {
  flex: 1;
  padding: 24px;
}

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

.menu-btn {
  display: none;
  border: none;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.big-number {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0 0;
}

.activity-list {
  padding-left: 18px;
  margin: 0;
}

.activity-list li {
  margin-bottom: 10px;
}

.full-input,
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.92;
}

.full-btn {
  width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

table th,
table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.success {
  background: #dcfce7;
  color: #166534;
}

.warning {
  background: #fef3c7;
  color: #92400e;
}

.danger {
  background: #fee2e2;
  color: #991b1b;
}

.login-body {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background: #e5e7eb;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.login-note {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 900px) {
  .cards,
  .grid-2,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .menu-btn {
    display: inline-block;
  }
}


.small-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.danger-btn {
  background: #dc2626;
  color: white;
  margin-left: 6px;
}

.inline{display:flex;gap:8px;align-items:center}
.inline input{width:auto}
.inline-form{display:inline-block;margin:4px 6px 4px 0}
.inline-form input,.inline-form select,.inline-form button{width:auto;display:inline-block;min-width:unset}
