    :root {
      --beige: #efe3cf;
      --beige-light: #faf5ec;
      --beige-dark: #d8c5a5;
      --blue: #003b73;
      --blue-dark: #06284d;
      --blue-soft: #e8f1fb;
      --white: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --danger: #b91c1c;
      --success: #15803d;
      --border: #e7dccb;
      --shadow: 0 20px 45px rgba(6, 40, 77, 0.14);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--text);
      background: linear-gradient(135deg, var(--beige-light), var(--blue-soft));
    }

    .hidden {
      display: none !important;
    }

    .login-page {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
    }

    .login-hero {
      background: linear-gradient(135deg, var(--blue), var(--blue-dark));
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 50px;
      position: relative;
      overflow: hidden;
    }

    .login-hero::before {
      content: "";
      position: absolute;
      width: 360px;
      height: 360px;
      border-radius: 50%;
      background: rgba(239, 227, 207, 0.15);
      top: -120px;
      right: -90px;
    }

    .login-hero::after {
      content: "";
      position: absolute;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: rgba(239, 227, 207, 0.12);
      bottom: -80px;
      left: -60px;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 620px;
    }

    .logo-box {
      width: 78px;
      height: 78px;
      border-radius: 24px;
      background: linear-gradient(135deg, var(--beige), var(--beige-dark));
      color: var(--blue-dark);
      display: grid;
      place-items: center;
      font-weight: 900;
      font-size: 1.5rem;
      margin-bottom: 28px;
      box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
    }

    .eyebrow {
      color: var(--beige);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-size: 0.82rem;
      margin-bottom: 14px;
    }

    .login-hero h1 {
      font-size: clamp(2.8rem, 6vw, 5.7rem);
      line-height: 0.95;
      letter-spacing: -0.06em;
      margin-bottom: 24px;
    }

    .hero-text {
      font-size: 1.1rem;
      line-height: 1.6;
      color: #dbeafe;
      max-width: 540px;
    }

    .login-panel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 36px;
      background: linear-gradient(135deg, var(--beige-light), #ffffff);
    }

    .login-card {
      width: 100%;
      max-width: 440px;
      background: rgba(255, 255, 255, 0.92);
      padding: 34px;
      border-radius: 32px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
      backdrop-filter: blur(14px);
    }

    .login-card h2 {
      color: var(--blue-dark);
      font-size: 2rem;
      letter-spacing: -0.04em;
      margin-bottom: 8px;
    }

    .login-card > p {
      color: var(--muted);
      margin-bottom: 24px;
      line-height: 1.5;
    }

    .form-grid {
      display: grid;
      gap: 15px;
    }

    label {
      display: block;
      color: var(--blue-dark);
      font-weight: 900;
      margin-bottom: 7px;
      font-size: 0.92rem;
    }

    input {
      width: 100%;
      padding: 14px 15px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--beige-light);
      outline: none;
      color: var(--text);
      font-size: 1rem;
    }

    input:focus {
      border-color: var(--blue);
      background: var(--white);
    }

    button {
      border: none;
      border-radius: 999px;
      padding: 14px 20px;
      background: var(--blue);
      color: var(--white);
      font-weight: 900;
      cursor: pointer;
      transition: 0.2s ease;
      font-size: 1rem;
    }

    button:hover {
      background: var(--blue-dark);
      transform: translateY(-2px);
    }

    .login-message {
      min-height: 22px;
      font-weight: 800;
      font-size: 0.92rem;
    }

    .login-message.error {
      color: var(--danger);
    }

    .login-message.success {
      color: var(--success);
    }

    .login-help {
      margin-top: 18px;
      padding: 14px;
      border-radius: 18px;
      background: var(--blue-soft);
      color: var(--blue-dark);
      font-size: 0.88rem;
      line-height: 1.5;
    }

    .dashboard {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 290px 1fr;
    }

    .sidebar {
      background: var(--blue-dark);
      color: var(--white);
      padding: 26px 20px;
      display: flex;
      flex-direction: column;
    }

    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 34px;
    }

    .mini-logo {
      width: 50px;
      height: 50px;
      border-radius: 17px;
      background: var(--beige);
      color: var(--blue-dark);
      display: grid;
      place-items: center;
      font-weight: 900;
    }

    .sidebar-logo strong {
      display: block;
      line-height: 1.2;
    }

    .sidebar-logo span {
      display: block;
      color: #cbd5e1;
      font-size: 0.82rem;
      margin-top: 3px;
    }

    .menu-title {
      color: #9ca3af;
      font-size: 0.76rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 900;
      margin-bottom: 12px;
    }

    .menu {
      display: grid;
      gap: 10px;
    }

    .menu button {
      width: 100%;
      text-align: left;
      background: rgba(255, 255, 255, 0.08);
      color: var(--white);
      border-radius: 16px;
    }

    .menu button:hover {
      background: var(--beige);
      color: var(--blue-dark);
    }

    .logout-btn {
      margin-top: auto;
      background: var(--beige);
      color: var(--blue-dark);
    }

    .dashboard-content {
      padding: 32px;
      background: linear-gradient(135deg, var(--beige-light), var(--blue-soft));
    }

    .dashboard-header {
      margin-bottom: 24px;
    }

    .dashboard-header h2 {
      color: var(--blue-dark);
      font-size: clamp(2rem, 4vw, 3.4rem);
      letter-spacing: -0.05em;
      line-height: 1;
      margin-bottom: 8px;
    }

    .dashboard-header p {
      color: var(--muted);
    }

    .content-card {
      background: var(--white);
      padding: 28px;
      border-radius: 28px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .content-card h3 {
      color: var(--blue-dark);
      font-size: 1.6rem;
      margin-bottom: 10px;
    }

    .content-card p {
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 18px;
    }

    .module-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 18px;
    }

    .module-box {
      padding: 18px;
      border-radius: 20px;
      background: var(--beige-light);
      border: 1px solid var(--border);
    }

    .module-box strong {
      display: block;
      color: var(--blue-dark);
      margin-bottom: 6px;
    }

    .module-box span {
      color: var(--muted);
      font-size: 0.94rem;
    }

    @media (max-width: 850px) {
      .login-page,
      .dashboard {
        grid-template-columns: 1fr;
      }

      .login-hero {
        padding: 42px 24px;
      }

      .sidebar {
        min-height: auto;
      }

      .module-grid {
        grid-template-columns: 1fr;
      }
    }
.visitor-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  font-weight: 900;
  color: var(--blue-dark);
}

.form-row input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--beige-light);
  outline: none;
  color: var(--text);
}

.form-row input:focus {
  border-color: var(--blue);
  background: var(--white);
}
.qr-result {
  margin-top: 24px;
}

.qr-card {
  max-width: 520px;
  padding: 24px;
  border-radius: 24px;
  background: var(--beige-light);
  border: 1px solid var(--border);
  text-align: center;
}

.qr-card h4 {
  color: var(--blue-dark);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.qr-card img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 18px;
  background: white;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.qr-details {
  text-align: left;
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.qr-details p {
  margin: 0;
  color: var(--text);
}

.qr-details strong {
  color: var(--blue-dark);
}

.qr-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.qr-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.qr-actions button {
  min-width: 220px;
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.visits-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: white;
}

.visits-table th,
.visits-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.visits-table th {
  background: var(--beige-light);
  color: var(--blue-dark);
  font-weight: 900;
}

.visits-table td {
  color: var(--text);
}

.visit-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.visit-status.active {
  background: #dcfce7;
  color: #15803d;
}

.visit-status.used {
  background: #fee2e2;
  color: #b91c1c;
}
.small-action-btn {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
}

.small-action-btn:hover {
  background: var(--blue-dark);
}

.used-text {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}
.show-password-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.show-password-row input {
  width: auto;
  cursor: pointer;
}
.logo-box img,
.mini-logo img {
  width: 105%;
  height: 105%;
  object-fit: cover;
  display: block;
}

.logo-box,
.mini-logo {
  overflow: hidden;
  padding: 0;
}
.scanner-closed {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--beige-light);
  color: var(--blue-dark);
  font-weight: 900;
  text-align: center;
  border: 1px dashed var(--border);
}
.module-box.module-link {
  cursor: pointer;
  transition: 0.2s ease;
}

.module-box.module-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(6, 40, 77, 0.1);
  border-color: var(--blue);
}

.module-box.module-link:focus {
  outline: 3px solid rgba(0, 59, 115, 0.25);
  outline-offset: 3px;
}
.announcement-admin-panel {
  margin-top: 22px;
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 24px;
  background: var(--beige-light);
  border: 1px solid var(--border);
}

.announcement-admin-panel h4,
.announcements-list h4 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.announcement-admin-panel p {
  color: var(--muted);
  margin-bottom: 18px;
}

.announcements-list {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.announcement-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
}

.announcement-item strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1rem;
}

.announcement-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  background: var(--beige-light);
  border: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 720px) {
  .announcement-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
.announcement-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-announcement-btn,
.delete-announcement-btn,
.secondary-action-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.edit-announcement-btn {
  background: var(--beige);
  color: var(--blue-dark);
  border: 1px solid var(--beige-dark);
}

.delete-announcement-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.secondary-action-btn {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .announcement-right {
    width: 100%;
    justify-content: flex-start;
  }

  .announcement-actions {
    width: 100%;
  }
}