* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  background: #f5f6f8;
  color: #1f2937;
}

body {
  padding-bottom: 75px;
}

.app {
  min-height: 100vh;
}

.topbar {
  background: linear-gradient(135deg, #171717, #292929);
  border-bottom: 2px solid #C6A45C;
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 12px rgba(19, 41, 75, 0.12);
}

.brand {
  background: linear-gradient(
  90deg,
  #F5E6A8 0%,
  #C6A45C 50%,
  #F5E6A8 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
font-family: Inter, Arial, sans-serif;
font-weight: 700;
}

.subtitle {
 color: #D9BC79;
font-family: Inter, Arial, sans-serif;
font-weight: 400;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.homeActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

button:active {
  transform: scale(.98);
}

.primary {
  background: #111827;
  color: white;
}

.secondary {
  background: white;
  color: #111827;
  border: 1px solid #d1d5db;
}

.large {
  min-height: 54px;
}

.searchBox {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.searchBox input {
  flex: 1;
}

input,
select {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  color: #111827;
  font-size: 15px;
}

input:focus,
select:focus {
  outline: 2px solid #9ca3af;
  outline-offset: 1px;
}

.sectionTitle {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.pageHeader {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.pageHeader h2 {
  margin: 0;
  font-size: 22px;
}

.pageHeader p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.back {
  width: 42px;
  padding: 0;
  background: white;
  border: 1px solid #d1d5db;
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.settingsCard label {
  font-size: 13px;
  font-weight: 600;
}

.selectAdd {
  display: flex;
  gap: 6px;
}

.selectAdd select {
  flex: 1;
}

.selectAdd button {
  width: 46px;
  padding: 0;
  background: #e5e7eb;
}

.formActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 25px;
}

.memberCard,
.profileCard,
.settingsCard {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20),
              0 1px 5px rgba(198, 164, 92, 0.15);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.memberCard {
  cursor: pointer;
}

.memberCard:hover {
  border-color: #9ca3af;
}

.memberId {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.memberName {
  font-size: 17px;
  font-weight: 700;
  margin: 5px 0;
}

.memberMeta {
  font-size: 13px;
  color: #6b7280;
}

.status {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.verified {
  background: #dcfce7;
  color: #166534;
}

.notVerified {
  background: #fee2e2;
  color: #991b1b;
}

.profileStatus {
  text-align: center;
  margin-bottom: 20px;
}

.profileStatus .status {
  font-size: 13px;
  padding: 9px 13px;
}

.profileName {
  text-align: center;
  font-size: 23px;
  font-weight: 700;
  margin: 10px 0 25px;
}

.infoRow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.infoLabel {
  color: #6b7280;
  font-size: 13px;
}

.infoValue {
  text-align: right;
  font-weight: 600;
  font-size: 14px;
}

.profileActions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.settingsCard h3 {
  margin-top: 0;
}

.settingsCard input {
  margin: 6px 0 15px;
}

.settingsCard button {
  margin-top: 5px;
}

.bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  z-index: 30;
}

.bottomNav button {
  flex: 1;
  background: transparent;
  border-radius: 0;
  min-height: 64px;
  color: #4b5563;
  font-size: 17px;
}

.bottomNav span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.loading {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #ddd;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  transform: translateX(-50%);
  background: #111827;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  z-index: 200;
  max-width: 90%;
  text-align: center;
}

.reportTable {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.reportTable th,
.reportTable td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 12px;
}

.reportTable th {
  background: #f9fafb;
  font-weight: 700;
}

@media (max-width: 650px) {

  main {
    padding: 15px;
  }

  .homeActions {
    grid-template-columns: 1fr;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

  .searchBox {
    flex-direction: column;
  }

  .searchBox button {
    width: 100%;
  }

  .formActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profileActions {
    grid-template-columns: 1fr;
  }

  .infoRow {
    flex-direction: column;
    gap: 4px;
  }

  .infoValue {
    text-align: left;
  }

  .reportTable {
    min-width: 800px;
  }

}
.certificateResult {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.certificateResult a {
  display: inline-block;
  margin: 6px 0;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
}
/* PROFESSIONAL MINIMAL WELCOME PANEL */
.welcomePanel {
  background: linear-gradient(135deg, #171717, #292929);
  color: #FFFFFF;
  padding: 42px 30px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #B99A55;
  border-bottom: 4px solid #C6A45C;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
  text-align: center;
}

.welcomeLabel {
  display: block;
  color: #D9BC79;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 18px;
  text-align: center;
}

.welcomePanel h1 {
  margin: 0 0 14px;
  font-family: Inter, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.6px;
  text-align: center;

  background: linear-gradient(
    90deg,
    #F5E6A8 0%,
    #C6A45C 50%,
    #F5E6A8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.welcomePanel p {
  margin: 0 auto 16px;
  color: #D9BC79;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
  text-align: center;
  max-width: 760px;
}

.welcomeDescription {
  max-width: 620px;
  margin: 0 auto;
  color: #D1D1D1;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
  text-align: center;
}

@media (max-width: 650px) {
  .welcomePanel {
    padding: 30px 18px;
  }

  .welcomePanel h1 {
    font-size: 24px;
  }

  .welcomePanel p {
    font-size: 14px;
  }

  .welcomeDescription {
    font-size: 12px;
  }
}

@media (max-width: 650px) {
  .welcomePanel {
    padding: 22px 18px;
  }

  .welcomePanel h1 {
    font-size: 23px;
  }

  .welcomePanel p {
    font-size: 14px;
  }
}

/* ALPHA KAPPA RHO - ASH BLACK & GOLD THEME */

/* Dark background with subtle gold lighting */
html,
body {
  background:
    radial-gradient(
      ellipse at top left,
      rgba(198, 164, 92, 0.17),
      transparent 38%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(198, 164, 92, 0.10),
      transparent 32%
    ),
    #202020;
  color: #F3F0E7;
}

/* Gold section headings */
.sectionTitle {
  color: #D9BC79;
}

/* Page headings */
.pageHeader h2 {
  color: #F5E6A8;
}

.pageHeader p {
  color: #D1D1D1;
}

/* Keep text readable inside light-colored content panels */
.memberCard,
.profileCard,
.settingsCard,
.certificateResult,
.reportTable {
  color: #1F2937;
}

/* Keep loading messages readable */
.loading {
  color: #1F2937;
}


/* MOVE NAVIGATION TO THE TOP */
.bottomNav {
  position: fixed;
  top: 120px;
  bottom: auto;
  left: 0;
  right: 0;
  height: 58px;
  background: linear-gradient(135deg, #171717, #292929);
  border-top: none;
  border-bottom: 2px solid #C6A45C;
  display: flex;
  justify-content: space-around;
  z-index: 30;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bottomNav button {
  flex: 1;
  background: transparent;
  border-radius: 0;
  min-height: 56px;
  color: #D9BC79;
  font-size: 17px;
}

.bottomNav span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  color: #F5E6A8;
}

/* Leave space for the top navigation */
main {
  padding-top: 116px;
}

@media (max-width: 650px) {
  .bottomNav {
    top: 90px;
  }

  main {
    padding-top: 86px;
  }
}

/* ALPHA KAPPA RHO CUSTOM MODAL */
.appModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.appModal.hidden {
  display: none !important;
}

.appModalCard {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 30px 26px 24px;
  background: linear-gradient(145deg, #242424, #171717);
  color: #F3F0E7;
  border: 1px solid #C6A45C;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: modalAppear 0.2s ease-out;
}

.appModalAccent {
  width: 54px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    #F5E6A8,
    #C6A45C,
    #F5E6A8
  );
}

.appModalCard h3 {
  margin: 0 0 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #F5E6A8;
}

.appModalCard p {
  margin: 0 0 22px;
  color: #D1D1D1;
  font-size: 14px;
  line-height: 1.7;
}

.appModalInputWrap {
  margin-bottom: 22px;
  text-align: left;
}

.appModalInputWrap label {
  display: block;
  margin-bottom: 8px;
  color: #D9BC79;
  font-size: 13px;
  font-weight: 600;
}

.appModalInputWrap input {
  background: #303030;
  color: #FFFFFF;
  border: 1px solid #6B5A35;
}

.appModalInputWrap input:focus {
  outline: 2px solid #C6A45C;
}

.appModalActions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.appModalActions button {
  flex: 1;
  min-height: 44px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.appModalActions .secondary {
  background: transparent;
  color: #E0D6BD;
  border: 1px solid #77716A;
}

.appModalActions .primary {
  background: linear-gradient(135deg, #E8D08B, #B18C42);
  color: #171717;
  border: 1px solid #E8D08B;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .appModalCard {
    padding: 26px 20px 20px;
  }

  .appModalCard h3 {
    font-size: 19px;
  }
}

/* ALPHA KAPPA RHO HEADER LOGO */
.brandHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brandLogo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brandText {
  min-width: 0;
}

.brand {
  font-family: Inter, Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1px;
}

.subtitle {
  margin-top: 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}

/* Mobile header layout */
@media (max-width: 650px) {
  .topbar {
    padding: 14px 16px;
  }

  .brandHeader {
    gap: 12px;
  }

  .brandLogo {
    width: 54px;
    height: 54px;
  }

  .brand {
    font-size: 17px;
    letter-spacing: 0.4px;
  }

  .subtitle {
    font-size: 10px;
    line-height: 1.4;
  }
}
