/* Base layout */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
}

.app-header {
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-header a {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
}

.app-main {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

/* Blocks & cards */
.card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn.secondary { background: #374151; }
.btn.danger { background: #b91c1c; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

td.actions {
  white-space: nowrap;
}

/* Forms */
label {
  display: block;
  margin: 10px 0 6px;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

input[type="file"] {
  padding: 8px;
}

form.inline { display: inline; }

.muted {
  color: #6b7280;
  display: block;
  margin-top: 6px;
  margin-bottom: 12px;
}

/* Flash messages */
.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin: 10px 0;
}

.flash.success { background: #dcfce7; }
.flash.warning { background: #fef9c3; }
.flash.danger { background: #fee2e2; }
.flash.info { background: #e0f2fe; }

/* Utility wrappers */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Landing: card grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #0a3a91; /* matches blue vibe */
}

.card-desc {
  color: #4b5563;
  line-height: 1.45;
  margin: 0 0 14px 0;
}

.card-actions {
  margin-top: 8px;
}

code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Login page styles */
.login-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  border: 1px solid #e6eef8;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.logo {
  font-size: 34px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-radius: 10px;
}
.brand-text h1 { margin: 0; font-size: 1.1rem; }

.login-form .form-row { margin-top: 12px; }
.login-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.forgot-link { color: #0a3a91; text-decoration: none; font-size: 0.9rem; }

@media (max-width: 480px) {
  .login-card { padding: 18px; border-radius: 10px; }
}

