* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

a {
  text-decoration: none;
}

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

.login-card {
  width: 420px;
  max-width: calc(100% - 30px);
  background: white;
  padding: 38px;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,.10);
}

.brand {
  margin-bottom: 30px;
}

.brand-title {
  font-size: 27px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 15px;
  color: #6b7280;
}

.login-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.login-card input {
  width: 100%;
  padding: 12px 13px;
  margin-bottom: 20px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
}

.login-card button {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.alert {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 14px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

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

.sidebar {
  width: 250px;
  background: #111827;
  color: white;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 25px 22px;
  border-bottom: 1px solid #273244;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
}

.logo-subtext {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 5px;
}

.sidebar nav {
  padding: 18px 10px;
  flex: 1;
}

.sidebar nav a {
  display: block;
  padding: 12px 13px;
  margin-bottom: 5px;
  color: #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #1f2937;
  color: white;
}

.sidebar-footer {
  padding: 20px 22px;
  border-top: 1px solid #273244;
}

.sidebar-footer .user-name {
  margin-bottom: 8px;
  font-size: 13px;
}

.sidebar-footer a {
  color: #9ca3af;
  font-size: 13px;
}

.content {
  flex: 1;
  padding: 35px;
}

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

.topbar h1 {
  margin: 0;
  font-size: 28px;
}

.topbar p {
  margin: 6px 0 0;
  color: #6b7280;
}

.btn-primary {
  background: #111827;
  color: white;
  padding: 11px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 22px;
  border: 1px solid #e5e7eb;
}

.stat-label {
  color: #6b7280;
  font-size: 13px;
}

.stat-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
}

.panel {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 25px;
  overflow: hidden;
}

.panel-header {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.panel-header a {
  font-size: 13px;
  color: #2563eb;
}

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

th {
  text-align: left;
  padding: 12px 20px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

td {
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid #f0f0f0;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
}

.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

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

.badge.waiting {
  background: #fef3c7;
  color: #92400e;
}

.badge.error {
  background: #fee2e2;
  color: #991b1b;
}

@media(max-width: 900px) {

  .sidebar {
    width: 200px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

}


.content form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.content form input,
.content form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.content form button {
  padding: 11px 18px;
  border: 0;
  border-radius: 6px;
  background: #111827;
  color: white;
  cursor: pointer;
  font-size: 14px;
}
