/* === Fixed Header & Branding === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #004080;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 0px 0px;
    border-radius: 8px 8px 8px 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.branding {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.branding h1 {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #004080;

    object-fit: contain;
}

.trademark {
    position: absolute;
    top: 10px;
    right: -18px;
    font-size: 15px;
    color: #cce0ff;
}
header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s ease;
}

/* Make page a column flex container */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1; /* Ensures footer stays at bottom if content is short */
  padding: 20px;
}
/* === Navigation Links === */
nav {
    display: flex;
    align-items: center;
    padding-right: 40px; /* shifts links left slightly */
}
nav a {
    color: white;
    text-decoration: none;
    font-size: 20px;      /* 🔹 Change this value to adjust font size */
    font-weight: 500;
    margin-left: 30px;
    transition: color 0.3s;
}

nav a:hover {
    color: #99ccff;
}

/* === Payroll Calculator Intro Section === */
.intro-section {
  width: 90%;
  margin: 0px auto;
  background-color: #f9fafb;
  padding: 0px 10px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #333;
  line-height: 1.7;
}

/* === Payroll Calculator Section === */
.payroll-calculator {
  padding: 10px 10px;
  background-color: #f4f7fb;
  border-radius: 12px;
  width: 90%;
  margin: 0px auto;

}

.payroll-calculator h2 {
  text-align: left;
  font-size: 2em;
  margin-top: 0px;
  margin-bottom: 10px;
  color: #004080;
}

.calculator-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}

/* === Left side input form === */
.calculator-inputs {
  flex: 0;
  min-width: 500px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px; /* 👈 increase or decrease horizontal space */
  row-gap: 15px;    /* 👈 controls vertical space between rows */
}

.input-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #003366;
}

.input-grid input,
.input-grid select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  gap: 15px;
}

.calculator-inputs .btn-primary {
  margin-top: 25px;
  width: 20%;
  background-color: #003366;
  color: white;
  padding: 0px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.btn-primary:hover {
  background-color: #0056c7;         /* Slightly darker */
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: #0048a8;
  transform: translateY(0);
}

/* === Right side output table === */
.calculator-output {
  flex: 1;
  min-width: 300px;
}

.calculator-output table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.calculator-output th {
  background-color: #004080;
  color: white;
  padding: 10px;
}

.calculator-output td {
  padding: 10px;
  border-top: 1px solid #ddd;
}

.calculator-output tr:nth-child(odd) {
  background-color: #f8f9fb;
}

#printPayrollBtn {
  margin-top: 25px;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 0px 0px;
  transition: 0.2s ease;
  width: 100%;                        /* Full width under table */
  max-width: 180px;                   /* Not too wide */
  display: block;
  margin-left: auto;
  margin-right: auto;                 /* Center button */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#printPayrollBtn:hover {
  background-color: #0056c7;         /* Slightly darker */
  transform: translateY(-1px);
}

#printPayrollBtn:active {
  background-color: #0048a8;
  transform: translateY(0);
}

.disclaimer {
  background-color: #f8fafc;
  border-left: 4px solid #2563eb;
  border-right: 4px solid #2563eb;
  padding: 0px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;

  margin: 50px auto 0 auto; /* 👈 center it + space above */
}

.disclaimer a {
  color: #1d4ed8;
  text-decoration: underline;
}

.disclaimer a:hover {
  color: #1e40af;
  text-decoration: none;
}
/* === Features Section === */
.features {
    text-align: center;
    justify-content: center;   /* centers the row */
    margin: 10px auto 10px auto; /* centers section horizontally */
    width: 90%;
}
.feature-grid {
    display: flex;
    justify-content: center;   /* centers the row */
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 0px;
}
.feature {
    background-color: #f9f9f9;
    padding: 0px;
    flex: 1 1;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.feature h3 {
    margin-top: 0px;
}
.feature img {
    width: 50px;
    margin-bottom: 0px;
}
.feature p{
  text-align: left;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #475569;
  line-height: 1.6;
}

/* === Release Grid === */
.release-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.release-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.release-card img {
    width: 50px;
    margin-bottom: 10px;
}

.release-card h3 {
    color: #004080;
    margin-bottom: 8px;
}
.about-section, .payment-section {
  padding: 40px;
  max-width: 800px;
  margin: auto;
}

.about-section h1, .payment-section h1 {
  color: #003366;
  border-bottom: 2px solid #007BFF;
  padding-bottom: 10px;
}

.about-icon {
  width: 100px;
  display: block;
  margin: 20px auto;
}


/* Right side user info */
.user-info {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

/* === Footer Section === */
footer {
  margin-top: auto;
  background-color: #f4f7fb;
  padding: 0px 20px;
  border-top: 1px solid #d9e1ec;
  text-align: center;
  font-size: 20px;
  color: #555;
  border-radius: 8px 8px 8px 8px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left a {
  color: #0077cc;
  text-decoration: none;
  margin: 0 5px;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  width: 20px;
  height: 20px;
}

.footer-right p {
  margin: 0;
  font-weight: 500;
}

/* === Privacy / Terms Policy Pages === */
.policy-container {
  max-width: 850px;
  margin: 50px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
  color: #444;
}

.policy-container h1 {
  color: #0077cc;
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
}

.policy-container h2 {
  color: #333;
  font-size: 1.3em;
  margin-top: 30px;
  border-left: 4px solid #0077cc;
  padding-left: 10px;
}

.policy-container p {
  margin: 10px 0;
  font-size: 16px;
}

.policy-container a {
  color: #0077cc;
  text-decoration: none;
}

.policy-container a:hover {
  text-decoration: underline;
}

.policy-container strong {
  color: #222;
}

/* === Register Page Center Alignment === */
.register-section {
  display: flex;
  flex-direction: column;
  justify-content: center;    /* vertical centering */
  align-items: center;        /* horizontal centering */
  min-height: 500px; /* fills window minus header/footer space */
  min-width: 500px;
  margin: 80px 60px 80px 60px;          /* space below fixed header */
  background: #f0f2f5;
  border-radius: 12px;
}

.register-form {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.register-form input {
  width: 90%;
  padding: 10px 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.register-form .btn {
  width: 100%;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 16px;
  padding: 5px 0px;
  max-width: 100px;                   /* Not too wide */
  display: block;
  margin-left: auto;
  margin-right: auto;                 /* Center button */
}

.register-form .btn:hover {
  background-color: #0056b3;
}

.register-section h2 {
  margin-bottom: 20px;
  color: #003366;
}

.register-section p {
  margin-top: 15px;
  text-align: center;
}


/* === Center Login Section === */
.login-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* fills window minus header/footer space */
  min-width: 500px;
  margin: 80px 60px 80px 60px;          /* space below fixed header */
  background: #f0f2f5;
  border-radius: 12px;
}

.login-form {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.login-form input {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ✅ Left-aligned "Remember me" */
.remember-container {
  display: flex;
  align-items: center;       /* keeps checkbox and label vertically centered */
  justify-content: flex-start; /* left-align both items */
  gap: 6px;                  /* small space between box and text */
  margin: 10px 0;
  margin-left: -280px;        /* aligns with input edges inside padded form */
  text-align: left;
  white-space: nowrap;       /* 👈 keeps text on same line */
}

.remember-container input[type="checkbox"] {
  margin: 0;                 /* removes extra space around checkbox */
  transform: scale(1.1);     /* optional: slightly larger box for visibility */
}

.remember-container label {
  margin-left: -280px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: inline-block;     /* 👈 ensures label stays inline */
}

.btn {
   width: 100%;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 16px;
  padding: 5px 0px;
  max-width: 100px;                   /* Not too wide */
  display: block;
  margin-left: auto;
  margin-right: auto;                 /* Center button */
}

.btn:hover {
  background-color: #0056b3;
}

.login-section h2 {
  margin-bottom: 20px;
  color: #003366;
}

.flash-messages {
  list-style: none;
  padding: 0;
}

.flash-messages .error {
  color: red;
}

.flash-messages .success {
  color: green;
}

* === Payment success Section === */
.receipt-section {
  max-width: 650px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.receipt-section h2 {
  color: #28a745;
  margin-bottom: 10px;
}

.receipt-details, .order-summary, .activation-box {
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  text-align: left;
}

.order-summary h3 {
  margin-bottom: 10px;
  color: #007bff;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 15px;
}

.summary-item.total {
  font-weight: bold;
  font-size: 16px;
}

.activation-code {
  color: #007bff;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
}

.receipt-note {
  margin-top: 15px;
  font-size: 0.9em;
  color: #666;
}

/* === Print Button === */
.print-button-container {
  text-align: center;
  margin-top: 30px;
}

.print-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}
.print-btn:hover {
  background-color: #0056b3;
}

/* === Hide non-receipt elements on print === */
@media print {
  body {
    background: white;
  }
  header, footer, nav, .navbar, .print-button-container {
    display: none;
  }
  .receipt-section {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }
}