* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a2e3f, #06314b);
  min-height: 100vh;
}

.screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box {
  background: white;
  width: 90%;
  max-width: 400px;
  margin: 20px;
  padding: 35px 25px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 60px;
  margin-bottom: 10px;
}

.box h2 {
  color: #06314b;
  font-size: 28px;
}

.box p {
  color: #555;
  margin: 8px 0;
  font-size: 14px;
}

.small {
  font-size: 12px;
  color: #888;
}

.input {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}

.input:focus {
  border-color: #ffc107;
}

.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #06314b, #0a4b6e);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.btn:active {
  transform: scale(0.97);
}

.error-text {
  color: red;
  font-size: 13px;
  margin-top: 10px;
}

.header {
  background: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-btn,
.logout-btn {
  background: #06314b;
  border: none;
  font-size: 24px;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  cursor: pointer;
  color: white;
}

.logout-btn {
  background: #dc3545;
}

.header-title {
  text-align: center;
}

.header-title strong {
  font-size: 20px;
  display: block;
  color: #06314b;
}

.header-title small {
  font-size: 10px;
  color: #ffc107;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 200;
  transition: left 0.3s;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  background: #06314b;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-sidebar {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.sidebar-user {
  text-align: center;
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.avatar {
  font-size: 50px;
  margin-bottom: 10px;
}

.menu-list {
  padding: 15px;
}

.menu-item {
  padding: 14px 18px;
  margin: 5px 0;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
}

.menu-item.active {
  background: #06314b;
  color: white;
}

.menu-item:active {
  background: #0a4b6e;
  color: white;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.overlay.show {
  display: block;
}

.content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 25px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3,
.card h4 {
  margin-bottom: 15px;
  color: #06314b;
}

.search-row {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.search-row .input {
  flex: 1;
  margin: 0;
}

.btn-search {
  background: #ffc107;
  border: none;
  padding: 0 25px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.btn-search:active {
  transform: scale(0.96);
}

.result-card {
  background: #e8f5e9;
  border-left: 5px solid #4caf50;
}

.member-name {
  font-size: 22px;
  font-weight: bold;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: bold;
  color: #555;
}

.detail-value {
  font-weight: 500;
}

.error-msg {
  background: #ffebee;
  color: #c62828;
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.format-text {
  margin-bottom: 10px;
  font-size: 14px;
}

.format-example {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  margin: 10px 0;
}

.format-example code {
  font-size: 16px;
  font-weight: bold;
  color: #06314b;
}

.info-note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

@media (min-width: 768px) {
  .content {
    max-width: 900px;
  }
}

@media (min-width: 1024px) {
  .content {
    max-width: 1100px;
  }

  .member-name {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .search-row {
    flex-direction: column;
  }

  .btn-search {
    padding: 14px;
  }

  .detail-row {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .box {
    width: 95%;
    padding: 30px 20px;
  }

  .card {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .member-name {
    font-size: 18px;
  }
}
