:root {
  --pf-accent: #1f3864;
  --pf-danger: #d9534f;
  --pf-success: #28a745;
  --pf-warning: #f0ad4e;
  --pf-sidebar-width: 240px;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f9;
}

.pf-shell {
  min-height: 100vh;
}
.pf-sidebar {
  background: var(--pf-accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 1.25rem 1rem;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--pf-sidebar-width);
  z-index: 1000;
}
.pf-brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 0.7rem;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}
.pf-brand-mark {
  align-items: center;
  background: #fff;
  border-radius: 0.35rem;
  color: var(--pf-accent);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
.pf-brand-logo {
  background: #fff;
  border-radius: 0.35rem;
  flex: 0 0 2rem;
  height: 2rem;
  max-height: 2rem;
  max-width: 2rem;
  min-width: 0;
  object-fit: contain;
  overflow: hidden;
  padding: 0.15rem;
  width: 2rem;
}
.pf-brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-nav {
  display: grid;
  gap: 0.35rem;
}
.pf-nav-link {
  border-left: 3px solid transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.7rem 0.8rem;
  text-decoration: none;
}
.pf-nav-link:hover,
.pf-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: #fff;
  color: #fff;
}
.pf-main {
  margin-left: var(--pf-sidebar-width);
  min-height: 100vh;
}
.pf-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 1rem 1.5rem;
}
.pf-content {
  padding: 1.5rem;
}
.pf-footer {
  color: #6c757d;
  font-size: 0.8125rem;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}
.pf-footer a {
  color: var(--pf-accent);
  font-weight: 600;
  text-decoration: none;
}
.pf-footer a:hover {
  text-decoration: underline;
}
.pf-login-page {
  align-items: center;
  background: linear-gradient(135deg, #edf2f8, #f8f9fa);
  display: flex;
  min-height: 100vh;
}
.pf-login-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(31, 56, 100, 0.08);
  max-width: 400px;
  padding: 2rem;
}

@media (max-width: 767.98px) {
  .pf-sidebar {
    min-height: auto;
    position: static;
    width: 100%;
  }
  .pf-account {
    margin-top: 1.25rem;
  }
  .pf-main {
    margin-left: 0;
  }
  .pf-topbar {
    padding: 0.9rem 1rem;
  }
  .pf-content {
    padding: 1rem;
  }
  .pf-footer {
    padding: 0 1rem 1rem;
  }
}
