/* ===============================
   Global Reset & Base Styling
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6f7;
    color: #222;
    line-height: 1.4;
}

/* ===============================
   Layout Containers
   =============================== */

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header .user-info {
    font-size: 13px;
    color: #555;
}

/* ===============================
   Breadcrumb Navigation
   =============================== */

.breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
    color: #666;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===============================
   Tables (File Browser)
   =============================== */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: #f0f0f0;
    font-weight: 600;
}

tr:hover {
    background-color: #fafafa;
}

.file-link {
    color: #0066cc;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}

/* ===============================
   Forms (Login & Upload)
   =============================== */

form {
    max-width: 420px;
    margin: 0 auto;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #444;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 14px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    font-size: 14px;
}

input[type="file"] {
    padding: 4px;
}

button {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #0066cc;
    background-color: #0066cc;
    color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #0055aa;
}

button.secondary {
    background-color: #ffffff;
    color: #0066cc;
}

button.secondary:hover {
    background-color: #f0f6ff;
}

/* ===============================
   Messages & Alerts
   =============================== */

.message {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    border-radius: 3px;
}

.message.error {
    background-color: #fdecea;
    color: #a4282d;
    border: 1px solid #f5c2c7;
}

.message.success {
    background-color: #eaf7ea;
    color: #256029;
    border: 1px solid #b7e1b9;
}

/* ===============================
   Upload Section
   =============================== */

.upload-box {
    margin-top: 20px;
    padding: 12px;
    border: 1px dashed #c0c0c0;
    background-color: #fafafa;
}

.upload-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ===============================
   Footer
   =============================== */

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* ===============================
   Responsive Adjustments
   =============================== */

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }

    table, th, td {
        font-size: 13px;
    }

    .header h1 {
        font-size: 16px;
    }
}

/* Ensure the body takes full height */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
    background-color: #f5f5f5; /* optional light background */
    font-family: Arial, sans-serif;
}

.login-container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 300px;
    text-align: center; /* center the text inside */
}

.login-container h2 {
    margin-bottom: 20px;
}

