* {
  box-sizing: border-box;
}
body {
  background: #f7f8fc;
  color: #182136;
  font:
    15px system-ui,
    -apple-system,
    Segoe UI,
    Arial;
  margin: 0;
}
.panel {
  max-width: 440px;
  margin: 8vh auto;
  background: white;
  padding: 2rem;
  border: 1px solid #e4e8f1;
  border-radius: 14px;
  box-shadow: 0 8px 32px #17283b0d;
}
h1 {
  margin: 0 0 1rem;
}
label {
  display: block;
  margin: 1rem 0;
  font-weight: 600;
}
input:not([type="hidden"]) {
  display: block;
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.4rem;
  border: 1px solid #a8b2bf;
  border-radius: 8px;
  font: inherit;
}
button {
  background: #1e3a8a;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font: inherit;
  cursor: pointer;
}
.error {
  color: #9d1727;
  background: #fff0f2;
  padding: 0.75rem;
  border-radius: 8px;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  background: #101c35;
  color: #e4ebfa;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  color: #7fa9ff;
}
.sidebar small {
  color: #8c9cb9;
  font-size: 10px;
  letter-spacing: 2px;
}
.sidebar a {
  display: block;
  text-decoration: none;
  color: #e4ebfa;
  padding: 12px 14px;
  border-radius: 8px;
}
.sidebar a.selected {
  background: #253755;
}
.side-bottom {
  margin-top: auto;
  color: #8c9cb9;
  font-size: 12px;
}
.page {
  flex: 1;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #e6e9f0;
  padding: 15px 36px;
}
.logout {
  background: white;
  color: #334155;
  border: 1px solid #d7dce7;
  padding: 8px 16px;
}
.content {
  padding: 35px;
  max-width: 1250px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #4a6fbd;
}
.muted {
  color: #64748b;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.stat,
.info {
  background: white;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  padding: 24px;
}
.stat span,
.stat small {
  display: block;
  color: #64748b;
}
.stat strong {
  display: block;
  margin: 16px 0;
  font-size: 23px;
}
.info h2 {
  font-size: 18px;
}
@media (max-width: 700px) {
  .sidebar {
    width: 76px;
    padding: 24px 8px;
  }
  .sidebar small,
  .side-bottom {
    display: none;
  }
  .sidebar a {
    font-size: 11px;
  }
  .topbar {
    padding: 16px;
  }
  .content {
    padding: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

/* Shadcn-inspired login - local CSS, no external font or JS */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #fafafa;
  padding: 24px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #09090b;
}
.auth-card {
  width: min(100%, 410px);
  padding: 34px;
  border: 1px solid #e4e4e7;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(9, 9, 11, 0.05);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: #18181b;
  color: white;
  font-size: 23px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin: 0 auto 20px;
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h1 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin: 0 0 7px;
  font-weight: 700;
}
.auth-header p {
  font-size: 14px;
  color: #71717a;
  margin: 0;
}
.auth-card label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 17px 0 7px;
}
.auth-card input:not([type="hidden"]) {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.auth-card input:focus-visible {
  border-color: #18181b;
  box-shadow: 0 0 0 3px #e4e4e7;
}
.primary-btn {
  width: 100%;
  background: #18181b;
  color: #fff;
  border-radius: 7px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  border: none;
  margin-top: 22px;
  cursor: pointer;
}
.primary-btn:hover {
  background: #3f3f46;
}
.auth-foot {
  text-align: center;
  color: #71717a;
  font-size: 12px;
  margin: 22px 0 0;
}
.auth-card .error {
  font-size: 13px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 12px;
  border-radius: 7px;
  margin: 0;
}


/* User Profile - shadcn inspired */

.profile-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e4e7;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: #18181b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.profile-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.profile-header p {
    margin: 5px 0 0;
    color: #71717a;
    font-size: 14px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24px;
}

.profile-grid div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.profile-grid span {
    color: #71717a;
    font-size: 13px;
}

.profile-grid strong {
    color: #18181b;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .profile-card {
        padding: 18px;
    }
}
