body {
    font-family: 'Segoe UI', sans-serif;
    background: #f3f4f6;
    color: #2d2d2d;
    margin: 0;
    padding: 0;
}

.site-header, .site-footer {
    background-color: #204e3b;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header a, .site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-header a:hover {
    text-decoration: underline;
}

.flash-messages, .flashes {
    background: #fef3c7;
    border: 1px solid #facc15;
    padding: 0.5rem 1rem;
    margin: 1rem auto;
    border-radius: 8px;
    list-style: none;
    max-width: 900px;
}

main {
    padding: 2rem;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.page-break { page-break-before: always; }

.dashboard-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.card {
    flex: 1 1 300px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #204e3b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-with-menu {
  position: relative;
  flex: 1 1 300px;
  max-width: 80%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  background-color: #e6f4ea;
  border: 1px solid #ccc;
  border-radius: 0 0 12px 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: calc(100% - 1rem);
  margin-left: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0;
  color: #204e3b;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu a:hover {
  text-decoration: underline;
}

.dashboard h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.dashboard-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 2px solid #8b5e3c;
    border-radius: 1rem;
    background-color: #f8f2e0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    margin-top: 0;
}

.dashboard-menu {
    margin-top: -1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid #204e3b;
    border-radius: 0 12px 12px 12px;
    background-color: #e6f4ea;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.dashboard-card-group {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-menu a {
    color: #204e3b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
}

.dashboard-menu a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.button-group .btn,
.btn {
    padding: 0.5rem 1.25rem;
    background-color: #a27c5b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.button-group .btn:hover,
.btn:hover {
    background-color: #855d3f;
}

/* ── “Add Employee” Link Styles ───────────────────────────────────── */
.link-add {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5A8DEE;
  text-decoration: none;
  margin-left: 1em;
  transition: color 0.2s ease;
}

.link-add:hover {
  color: #4076c0;
  text-decoration: underline;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 1rem;
    color: #204e3b;
}

.login-box input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: #204e3b;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-box button:hover {
    background: #2d6b4f;
}

.error-message {
    color: #b91c1c;
    margin-bottom: 1rem;
}

/* === EMPLOYEE MODAL / FORM STYLES === */
.modal {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-header {
  margin-top: 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
}

.form-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.form-col {
  flex: 1;
  min-width: 280px;
}

.form-col label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-weight: 600;
}

.form-col input,
.form-col select,
.form-col textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.year-label {
  text-align: center;
  margin: 1rem 0 0.5rem;
  font-weight: bold;
  color: #204e3b;
  background-color: #e9f5ea;
  padding: 0.25rem;
  border-radius: 6px;
}

/* === REPORT TABLES === */
.report-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
}

.report-table th,
.report-table td {
    border: 1px solid #333;
    padding: 6px;
    text-align: left;
}

.report-table th {
    background-color: #e9dcbf;
}

.footer-summary {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
}

.employee-block {
    page-break-after: always;
    margin-bottom: 2em;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;      /* wrap on small screens */
  gap: 1rem;            /* space between buttons */
  margin-top: 1.5rem;   /* space above the group */
}

.report-actions .button {
  flex: 1 0 auto;       /* buttons size to content */
  padding: 0.6em 1.2em; /* tweak as needed */
}

/* Container styling */
.report-form {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 2rem auto;
}

/* Use your existing .form-columns and .form-col but add gaps */
.report-form .form-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Ensure each column takes equal space */
.report-form .form-col {
  flex: 1;
  min-width: 180px;
}

/* Label styling */
.report-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #204e3b;
}

/* Inputs & selects */
.report-form select,
.report-form input[type="number"] {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Button group already exists, just add top margin */
.report-form .button-group {
  text-align: right;
  margin-top: 1.5rem;
}

/* Override .btn to ensure consistency */
.report-form .btn {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;      /* if viewport too narrow, items will wrap */
  align-items: flex-end;/* align labels and controls nicely */
  gap: 1rem;            /* space between items */
  margin-bottom: 1.5rem;
}

.form-item {
  display: flex;
  flex-direction: column;
  min-width: 100px;     /* adjust for your layout */
}

.form-item label {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #204e3b;
}

.form-item select,
.form-item input,
.form-item button {
  font-size: 1rem;
}

/* If you want the button to sit lower, you can override its align-self */
.form-item button {
  align-self: flex-start;
  margin-top: 1.5rem;
}


/* === EMPLOYEE TABLE LIST === */
.centered-heading {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #eee;
    font-weight: bold;
}

.summary-row {
    background-color: #f9fafb;
    cursor: pointer;
}

.detail-row td {
    background-color: #ffffff;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* style.css */
.employee-table th,
.employee-table td {
  padding: 0.75em;
  border-bottom: 1px solid #ddd;
}
.employee-table thead {
  background: #f5f5f5;
}
