body {
    font-family: sans-serif;
    background: #f4f4f4;
    padding: 20px;
}

h1 {
    color: #222;
    font-weight: 800;
}
h2 {
    color: #222222b9;
    font-weight: normal;
}
h4 {
    color: #222222b9;
    font-weight: normal;
}

.centered-box {
    width: 75vw;                  /* 75% of viewport width */
    margin: 0 auto;               /* center horizontally */
    text-align: center;           /* center text inside */
    padding: 100px;               /* vertical + horizontal padding */
    background-color: #fff;       /* optional: for visibility */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* optional styling */
}

figure {
    width: 100%;        /* fills container */
    margin: 0;          /* remove default margin */
}

figure img {
    width: 100%;        /* image stretches to fill */
    height: auto;       /* maintain aspect ratio */
    display: block;     /* removes bottom whitespace */
}

figcaption {
    font-size: 0.875rem; /* or use px, em, % */
    color: #00000080;          /* optional: make it a bit lighter */
}

.proceed-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;  /* Bootstrap blue */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.proceed-button:hover {
    background-color: #0056b3;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 columns */
    gap: 20px;
    margin-top: 40px;
}

.menu-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.menu-item h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.menu-item p {
    font-size: 0.95rem;
    font-weight: normal;
    color: #666;
    margin-bottom: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

.about-box {
    width: 75vw;
    margin: 0 auto;
    text-align: center;
    padding: 10px;
    background: #ffffff00;
    color: #d6d6d6;
}

.status-box {
    text-align: left;
    width: 75%;
    padding-top: 30px;
    color: #616161;
}

/* ===== Login page layout ===== */
.login-page {
    min-height: calc(100vh - 40px); /* body has 20px padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: min(420px, 92vw);
    background: #fff;
}

/* Reuse existing .menu-item border/shadow; this just tightens spacing for login */
.login-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.login-form label {
    font-size: 0.9rem;
    color: #333;
    display: grid;
    gap: 6px;
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
}

.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}


button.proceed-button {
    border: none;
    cursor: pointer;
}


.login-page {
    flex-direction: column;
    gap: 18px;
}

.site-title {
    margin: 0;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #6b6b6b;
    letter-spacing: 0.3px;
}


.admin-page {
    width: 75vw;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.admin-card {
    text-align: left; /* override menu-item center */
}

.admin-card h2,
.admin-card h3 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.form-grid .span-2 {
    grid-column: 1 / -1;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.input, select.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.input:focus, select.input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
    outline: none;
}

.checkbox {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    user-select: none;
}

.btn {
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #b02a37;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 8px;
    border-top: 1px solid #e7e7e7;
    vertical-align: top;
}

.table th {
    text-align: left;
    color: #333;
}

.muted {
    color: #666;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination .page {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.pagination .page:hover {
    border-color: #007BFF;
}

.pagination .current {
    background: #007BFF;
    color: #fff;
    border-color: #007BFF;
    font-weight: 700;
}

.audit-table {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;        
}

.audit-table th,
.audit-table td {
    border: 1px solid #d6d6d6;
    padding: 8px;
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;     
}

.audit-details {
    margin: 0;
    white-space: pre-wrap;      
    overflow-wrap: anywhere;
    word-break: break-word;
}

.audit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 14px;
    flex-wrap: wrap;
}
