/* --- Base styles --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
    box-sizing: border-box;
}

/* --- Site Header --- */
.site-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #a31f34; /* Cornell red */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.site-header .logo {
    height: 68px;
    width: auto;
    filter: brightness(0) invert(1); /* make black SVG white */
}

/* --- Main Content --- */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertical centering */
    text-align: center;
    min-height: calc(100vh - 56px);
    padding: 2rem;
}

.content h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.content p {
    margin-top: 1rem;
    font-size: 1rem;
}

.content hr {
    width: 1200px;
    border: none;
    border-top: 2px solid #ccc;
    margin: 1.25rem 0;
}

/* --- Table Styles --- */
.images-table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    margin-top: 1rem;
}

.images-table th,
.images-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    text-align: left;
}

.images-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.images-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* --- Table Action Buttons --- */
.images-table button {
    appearance: none;
    border: 1px solid #bbb;
    background-color: #f5f5f5;
    color: #222;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.4rem;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.images-table button:hover {
    background-color: #eaeaea;
    border-color: #999;
}

.images-table button:active {
    background-color: #ddd;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.images-table button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(163, 31, 52, 0.3); /* Cornell red focus */
}

/* --- Delete button variant --- */
.images-table button.delete {
    background-color: #fdf2f2;
    border-color: #e0b4b4;
    color: #8a1f1f;
}

.images-table button.delete:hover {
    background-color: #f9dede;
    border-color: #c99;
}


/* --- Login Page Styles --- */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

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

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;

    transform: translateY(-260px); /* lifted slightly */
}

.login-container .logo {
    width: 320px; /* bigger logo */
    margin-bottom: 1.5rem;
}

.login-container h1 {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: 1.4rem; /* smaller Sign In text */
    color: #222;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-container button {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #222;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-container button:hover {
    background-color: #444;
}

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

/* --- Responsive adjustments --- */
@media (max-width: 600px) {
    .content hr {
        width: 90%;
    }

    .images-table {
        font-size: 0.9rem;
    }

    .login-container {
        padding: 1.5rem 2rem;
        width: 90%;
    }
}
