/* ================= ROOT VARIABLES ================= */
:root {
  --primary: #0c8608;
  --primary-dark: #086505;
  --primary-light: #e6f4e6;
  --bg: #f5f9f6;
  --card: #ffffff;
  --text: #0f172a;
  --text-light: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 6px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.11);

  --pending-bg: #fffbeb;
  --pending-text: #92400e;
  --approved-bg: #ecfdf5;
  --approved-text: #065f46;
  --rejected-bg: #fef2f2;
  --rejected-text: #991b1b;

  --radius: 16px;
  --transition: all 0.22s ease;
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 75%;   /* 16px base – easier to scale */
}

body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  background: linear-gradient(145deg, #f0f7f2, var(--bg));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ================= CARD ================= */
.status-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);

  display: flex;
  flex-direction: column;
  max-height: 85vh;   /* prevents card from growing too tall */
}


.status-card img {
  width: 130px;
  display: block;           
  margin: 0 auto 10px auto; 
}

.status-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.13);
}

/* ================= TYPOGRAPHY ================= */
h3 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2.2rem;
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 1.6rem;
}

label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.55rem;
}

/* ================= INPUT ================= */
input {
  width: 100%;
  font-size: 1.15rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  transition: var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(12, 134, 8, 0.12);
}

/* ================= BUTTONS ================= */
.btn {
  width: 100%;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.6rem;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.btn.secondary:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ================= RESULTS ================= */
.results-container {
  margin: 2rem 0 1.5rem;

  max-height: 260px;      /* controls visible height */
  overflow-y: auto;
  padding-right: 6px;    /* space for scrollbar */
}


.result-card {
  background: #f8fafc;
  padding: 1.4rem;
  border-radius: var(--radius);
  border-left: 5px solid var(--primary);
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.4s ease-out;
}

.result-card p {
  margin: 0.6rem 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Status badges */
.status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 0.4rem;
}

.status.pending { background: var(--pending-bg); color: var(--pending-text); }
.status.approved { background: var(--approved-bg); color: var(--approved-text); }
.status.rejected  { background: var(--rejected-bg);  color: var(--rejected-text); }

/* Error */
.error {
  color: #e11d48;
  font-size: 1.05rem;
  text-align: center;
  margin-top: 1.2rem;
  font-weight: 500;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE – BIGGER & SPACIOUS ================= */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    background: var(--bg);
  }

  .results-container {
  max-height: 220px;
}

  .status-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    max-width: 100%;
    box-shadow: var(--shadow-md);
  }

  h3 {
    font-size: 2.1rem;
    margin-bottom: 2rem;
  }

  label {
    font-size: 1.2rem;
  }

  input {
    font-size: 1.3rem;
    padding: 1.25rem 1.3rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 1.25rem;
  }

  .result-card p {
    font-size: 1.25rem;
    line-height: 1.65;
  }

  .status {
    font-size: 1rem;
    padding: 0.45rem 1.1rem;
  }
}

@media (min-width: 601px) and (max-width: 920px) {
  .status-card {
    max-width: 580px;
    padding: 2.8rem 2.2rem;
  }
}

.results-container::-webkit-scrollbar {
  width: 6px;
}

.results-container::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.results-container::-webkit-scrollbar-track {
  background: transparent;
}
