body {
  margin: 0;
  padding: 0;
  background: #efefef !important;
}

.app-shell {
  min-height: 30vh;
  display: flex;
  justify-content: center;
  padding: 18px;
}

.home-card {
  width: 100%;
  max-width: 600px;
  background: #f8f8f8;
  border: 3px solid #28292b;
  border-radius: 0 !important;
}

.home-card-body {
  padding: 22px 30px 34px;
}

.logo-wrap {
  margin-top: 4px;
  margin-bottom: 18px;
}

.home-logo {
  width: 285px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.home-links {
  padding-left: 2px;
}

.home-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.home-link-row:last-child {
  margin-bottom: 0;
}

.home-label {
  font-size: 18px;
  color: #111827;
  line-height: 1.3;
}

.home-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}

.register-link {
  color: #0000ff;
}

.attendance-link {
  color: #008000;
}

.home-link-btn:hover {
  text-decoration: underline;
}

.app-navbar {
  min-height: 64px;
}

.header-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.navbar-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.app-nav-link {
  color: #1f2937;
  font-weight: 500;
}

.app-nav-link:hover {
  color: #0d6efd;
}

.app-nav-link.active {
  color: #0d6efd;
  font-weight: 700;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  color: #1f2937;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  background: #f8f9fa;
  border: 1px solid #eceff3;
}

.sidebar-link:hover {
  background: #eef4ff;
  color: #0d6efd;
}

.sidebar-link.active {
  background: #eef4ff;
  color: #0d6efd;
  font-weight: 700;
}

.logout-icon {
  font-size: 16px;
  line-height: 1;
}

.capture-video-shell,
.attendance-video-shell {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  aspect-ratio: 4 / 3;
}

#video,
#captureVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

#overlay,
#captureOverlay {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.register-preview-box {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
}

.register-preview-inner {
  width: 100%;
  min-height: 260px;
  background: #f1f3f5;
  border-radius: 10px;
  overflow: hidden;
}

.register-preview-img {
  display: block;
  max-width: 100%;
}

.image-size-text {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.image-status-text {
  font-size: 14px;
  font-weight: 600;
}

.image-status-ok {
  color: #198754;
}

.image-status-bad {
  color: #dc3545;
}

#attendanceResult .name-line {
  font-size: 1.2rem;
  font-weight: 700;
  color: #212529;
}

#attendanceResult .status-line {
  font-size: 1rem;
  font-weight: 600;
  color: #198754;
  margin-top: 4px;
}

#attendanceResult .unknown-line {
  font-size: 1rem;
  font-weight: 600;
  color: #dc3545;
  margin-top: 4px;
}

@media (max-width: 576px) {
  .home-card {
    max-width: 100%;
  }

  .home-card-body {
    padding: 18px 18px 24px;
  }

  .home-logo {
    width: 230px;
  }

  .home-label,
  .home-link-btn {
    font-size: 16px;
  }

  .home-link-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
  }
}
