
/* Your main container */
.flex-container {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if screen is small */
    justify-content: center;
}

.flex-container a {
    text-decoration: none;
    color: #112855;
}

/* The individual divs containing the links */
.pageLink {
    /* 1. ENABLE FLEXBOX */
    display: flex;

    /* 2. HORIZONTAL ALIGNMENT */
    justify-content: center;

    /* 3. VERTICAL ALIGNMENT */
    align-items: center;

    /* Styling to make the boxes visible for this demo */
    width: 200px;
    height: 200px;
    border: 2px solid #112855;
    background-color: #f0f0f0;
    margin: 20px;
    
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds depth with a shadow */
    transition: all 0.2s ease; /* Smooth transition for the effect */
    font-size: 20px;
    font-weight: bold;
    color: #112855;
    text-decoration: none;
}

/* Styling the link wrapper - no underline, darker blue text */
a .pageLink {
    text-decoration: none;
    color: #112855;
}

.pageLink:hover {
    cursor: pointer;
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(17, 40, 85, 0.2);
}

.pageLink:active {
  /* The "pressed" effect */
  transform: translateY(1px); /* Moves the div down slightly */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Makes the shadow smaller */
  background-color: #112855;
  color: #ffffff;
}

.headerText {
    text-align: center;
    font-size: 45px;
    color: #112855;
    margin-bottom: 30px;
}

body.has-top-bar .headerText {
    margin-top: 80px;
}

/* Top bar for Back / Logout */
.page-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f0f0f0;
    border-bottom: 2px solid #112855;
    z-index: 100;
}

.top-bar-btn {
    text-decoration: none;
    color: #112855;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    border: 2px solid #112855;
    background-color: #ffffff;
    transition: background-color 0.2s, color 0.2s;
}

.top-bar-btn:hover {
    background-color: #112855;
    color: #ffffff;
}

body.has-top-bar .InputContainer {
    padding-top: 56px;
}

.InputContainer {
    display: flex;
    flex-direction: column;
    width: 33%; /* adjust as needed */
    max-width:500px;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-left:33%;
}

/* Each label/input pair */
.form-group {
    display: flex;
    flex-direction: column; /* label above input */
    text-align: center; /* center text */
    padding: 10px;
}

.form-group label {
    color: #112855;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Optional styling */
input {
    padding: 8px;
    font-size: 16px;
}

/* Large select styling */
.large-select {
    padding: 12px 16px;
    font-size: 18px;
    min-width: 300px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #112855;
    transition: border-color 0.3s;
}

.large-select:focus {
    outline: none;
    border-color: #112855;
}

/* Primary button styling */
.primary-btn {
    background-color: #112855;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.primary-btn:hover {
    background-color: #0d1f42;
}

.primary-btn:active {
    background-color: #09182e;
}

/* Page title styling */
.page-title {
    color: #112855;
    margin-bottom: 25px;
}

/* Radio groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: center;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

/* File input styling */
.file-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    transition: border-color 0.3s;
    cursor: pointer;
}

.file-input:focus {
    outline: none;
    border-color: #112855;
}

.file-input:hover {
    border-color: #112855;
}

.form-error {
    color: #c00;
    margin-bottom: 10px;
    text-align: center;
}

.form-success {
    color: #060;
    margin-bottom: 10px;
    text-align: center;
}

.field-error {
    color: #c00;
    font-size: 14px;
    display: block;
    margin-top: 2px;
}

/* Login page styling */
body {
    background-color: #d0d0d0;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #112855;
}

.login-container h2 {
    color: #112855;
    margin-bottom: 25px;
}

.login-container label {
    color: #112855;
    font-weight: bold;
    margin-bottom: 8px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: #112855;
}

.login-container input[type="submit"] {
    background-color: #112855;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 10px auto 0 auto;
    display: block;
}

.login-container input[type="submit"]:hover {
    background-color: #0d1f42;
}

.login-container input[type="submit"]:active {
    background-color: #09182e;
}

.login-container input[type="email"] {
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-container input[type="email"]:focus {
    outline: none;
    border-color: #112855;
}

.password-reset-instructions {
    text-align: center;
    max-width: 380px;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.5;
}

.password-reset-message {
    max-width: 380px;
    text-align: center;
    line-height: 1.5;
}

.password-reset-back {
    text-align: center;
    margin-top: 20px;
}

.password-reset-back a {
    display: inline-block;
}

.newpassword-error {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.password-hash-form {
    margin-bottom: 16px;
}

/* Delete documents page */
body.deletedocument-body .documents-page-container {
    width: 94%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 56px;
    padding-bottom: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.documents-page-container .page-title {
    text-align: center;
}

.delete-flash {
    text-align: center;
    max-width: 600px;
    margin-bottom: 16px;
}

.documents-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 2px solid #112855;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.documents-table th,
.documents-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #d0d0d0;
    vertical-align: middle;
}

.documents-table thead th {
    background-color: #f0f0f0;
    color: #112855;
    font-weight: bold;
}

.documents-sort-row .sort-btn {
    background: none;
    border: none;
    color: #112855;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    font-family: inherit;
}

.documents-sort-row .sort-btn:hover {
    color: #0d1f42;
}

.documents-filter-row th {
    padding: 8px;
    vertical-align: middle;
}

.documents-filter-row .filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
}

.documents-filter-row .filter-input:focus {
    outline: none;
    border-color: #112855;
}

.documents-table tbody tr:hover {
    background-color: #f8f8f8;
}

.documents-action-cell {
    white-space: nowrap;
    width: 1%;
}

.delete-doc-form {
    margin: 0;
    display: inline;
}

.btn-delete-doc {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background-color: #8b0000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-delete-doc:hover {
    background-color: #a52a2a;
}

/* Upload document: month / year selects — narrower, centered text */
.form-group .document-period-select {
    align-self: center;
    width: 50%;
    max-width: 250px;
    box-sizing: border-box;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #112855;
    text-align: center;
    text-align-last: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group .document-period-select:focus {
    outline: none;
    border-color: #112855;
}

.form-group .document-period-select option {
    text-align: center;
}