body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.flashes {
    list-style-type: none;
    padding: 10px;
    margin: 0;
    background-color: #f2f2f2;
    min-height: 50px;              /* reserves height */
    transition: opacity 0.5s ease-out;
}

.flashes li {
    color: #333;
    background-color: #f9edbe;
    border: 1px solid #f0c36d;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}


.flashes li.fade-out {
    opacity: 0;
}

/* ✅ Success flash styling */
.flashes li.success {
    background-color: #d4edda; /* light green */
    border: 1px solid #28a745; /* green border */
    color: #155724;            /* dark green text */
}

/* ❌ Error flash styling */
.flashes li.error {
    background-color: #f8d7da; /* light red */
    border: 1px solid #dc3545; /* red border */
    color: #721c24;            /* dark red text */
}

/* ℹ️ Info flash styling (optional, matches your default) */
.flashes li.info {
    background-color: #d1ecf1; /* light blue */
    border: 1px solid #17a2b8; /* blue border */
    color: #0c5460;            /* dark blue text */
}


/* LOGIN PAGE STYLING */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    padding: 20px;
}

.login-form-container {
    background-color: #e6f0ff; /* Light blue */
    padding: 40px;
    border-radius: 50px;
    max-width: 500px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left; 
}

.login-form-container label {
    display: block;
    margin-bottom: 5px;
    text-align: left; /* Optional: align labels left inside centered form */
}

.login-form-container input {
    width: 100%;
    margin-bottom: 15px;
}

.login-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #005A9C;
    text-align: center;
}

.login-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    align-items: center;
}

.reset-password-link {
    margin-top: 15px;
    text-align: center;
}

.reset-password-link a {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.reset-password-link a:hover {
    background-color: #45a049;
}

h1 {
    color: #005A9C;
    margin-top: 0; /* Reduces space above the h2 element */
    align-items: center;
}

h2 {
    align-items: center;
    color: #005A9C;
    padding: 5px 10px; /* Top and bottom padding of 5px, left and right padding of 10px */
    margin-top: 0; /* Reduces space above the h2 element */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

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

th {
    background-color: #005A9C;
    color: white;
}

table tr:hover {
    background-color: #ADD8E6; /* Light blue color */
}

tr:nth-child(even) {background-color: #f2f2f2;}

.forms-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: flex-start; /* Align items at the start of the container */
    flex-direction: column; /* Stack items vertically */
    align-items: stretch; /* Ensure forms stretch to fill the container width */    gap: 20px; /* Creates space between the forms */
}

form {
    flex: 1 1 100%; /* Each form takes up the entire width */
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px; /* Add some margin at the bottom for when they wrap */
}

input[type=password],input[type=text],input[type=date],input[type=number],input[type=submit], select, input[type=checkbox] {
    width:auto;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=email] {
    width:250px;
    padding: 10px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type=submit]:hover {
    background-color: #45a049;
}

.logout-container {
    position: fixed;
    top: 10px;
    right: 28px;
    z-index: 1000;
}

.logout-container form {
    display: inline;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.logout-container button {
    background-color: #f44336; /* Red shade */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-container button:hover {
    background-color: #d32f2f; /* Darker red on hover */
}

button,a.button {
    width: auto;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    border: none;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    transition-duration: 0.4s; /* Smooth transition for hover effect */
    border-radius: 8px; /* Optional: adds rounded corners */
}

button:hover,a.button {
    background-color: #45a049;
}

label {
    margin-bottom: 5px;
    display: block;
}

.funding-record {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#fundingNavigation {
    display: flex;
    align-items: left;
    justify-content: left;
    margin-bottom: 10px;
}

#fundingNavigation button {
    padding: 5px 10px;
    margin: 0 5px;
}

.tab-container {
    display: flex;
    gap: 10px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #1976d2;      /* Deep blue */
    color: white;                   /* White text */
    border: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.1s;
}

.tab-button:hover {
    background-color: #1565c0;      /* Slightly darker on hover */
    transform: translateY(-2px);    /* Subtle lift on hover */
}

.tab-button.active {
    background-color: #ffffff;      /* White for active tab */
    color: #1976d2;                 /* Blue text for active tab */
    border: 2px solid #1976d2;      /* Blue border for clarity */
    border-bottom: none;            /* Seamless with content below */
}

/* month block container styling */
.month-block {
    background-color: #ffffff;              /* clean white background */
    border: 2px solid #1976d2;              /* blue border matching brand */
    border-radius: 8px;                     /* rounded corners */
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* subtle shadow for elevation */
    transition: transform 0.1s, box-shadow 0.2s;

    /* Add these for multi-column layout: */
    flex: 1 1 300px;      /* flexible, minimum 300px */
    max-width: 350px;     /* prevents stretching too wide */
    box-sizing: border-box;
}

.months-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.month-block:hover {
    transform: translateY(-2px);            /* slight lift on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);/* enhanced shadow on hover */
}

.month-block h4 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 10px;
}

.month-block label {
    display: block;
    margin: 6px 0;
}

.month-block input[type="number"] {
    width: 150px;
    margin-right: 10px;
}

.month-block button {
    background-color: #4CAF50;    /* green save button */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.month-block button:hover {
    background-color: #45a049;    /* darker on hover */
    transform: translateY(-1px);
}

.month-block span {
    font-weight: 600;
}

.btn-admin {
  background-color: #007bff;
  color: white;
  font-size: 1.2em;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  width: 80%;
  max-width: 500px;
  margin: 10px auto;
  display: block;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}


.btn-cancel {
    background-color: #d9534f; /* Bootstrap danger red */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel:hover {
    background-color: #c9302c; /* Darker red on hover */
}

.selected-invoice-row {
    background-color: #d1ecf1 !important;  /* light blue highlight */
}

.highlight-row {
  background-color: #d1ecf1 !important; /* light blue highlight */
  transition: background-color 0.3s ease;
}

@keyframes rowHighlightPulse {
  0%   { background-color: #fff3cd; }
  50%  { background-color: #ffeeba; }
  100% { background-color: #fff3cd; }
}

.persistent-highlight {
  animation: rowHighlightPulse 1.5s ease-in-out infinite;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: black;
  background-color: white;
}

.simple-table td {
  border: 1px solid black;
  padding: 4px 6px;
  text-align: left;
}

.simple-table input[type="text"],
.simple-table input[type="date"],
.simple-table input[type="number"] {
  width: 100%;
  font-size: 0.85rem;
  padding: 2px;
  box-sizing: border-box;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
}

.simple-table .btn-action {
  font-size: 0.8rem;
  padding: 3px 6px;
  background-color: white;
  border: 1px solid #666;
  color: black;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.simple-table .btn-action:hover {
  background-color: #eee;
}

form table input[type="text"],
form table input[type="number"],
form table input[type="date"] {
  width: 100%;
  box-sizing: border-box;
}

form table {
  margin-top: 10px;
  border-collapse: collapse;
}

form table td, form table th {
  padding: 6px;
}

.invoice-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
}