/* --- General Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h2, h3, h4 {
    color: #ffffff;
}

/* --- Login Page Specific Body Style --- */
/* This centers the login box vertically and horizontally */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Container and Card Styles --- */
.container {
    width: 100%;
    margin: auto;
}

.login-container {
    max-width: 420px;
}

.data-container {
    max-width: 700px;
}

.card {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    margin-bottom: 25px;
}

.data-container .card {
    padding: 25px; /* Slightly less padding for data cards */
}

/* --- Typography --- */
h2 {
    text-align: center;
}

h3 {
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
}

.data-container h3 {
    text-align: left; /* Override for input page */
}

h4 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* --- Form Element Styles --- */
label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

input[type=text], input[type=password], input[type=number] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid #444;
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #333;
    color: #e0e0e0;
}

.data-container input[type=number] {
    width: auto; /* Smaller number inputs on data page */
}

input[type=submit] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
}

.data-container input[type=submit] {
    width: auto; /* Smaller submit button on data page */
    margin-top: 0;
}

input[type=submit]:hover {
    background-color: #0056b3;
}

.error {
    color: #ff4d4d;
    text-align: center;
    margin-bottom: 15px;
}

/* --- Page Specific Sections --- */

/* Test Accounts on Login Page */
.test-accounts {
    border: 1px dashed #444;
    padding: 15px;
    margin-top: 30px;
    border-radius: 5px;
    background-color: #2c2c2c;
}
.test-accounts h4 {
    margin-top: 0;
    border: none;
}
.test-accounts ul {
    list-style-type: none;
    padding: 0;
}
.test-accounts li {
    margin-bottom: 5px;
    font-family: "Courier New", Courier, monospace;
}

/* Header on Data Page */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logout {
    color: #00aaff;
    text-decoration: none;
    font-size: 16px;
}
.logout:hover {
    text-decoration: underline;
}

/* Stats and Table on Data Page */
.stats p {
    font-size: 1.1em;
}
.stats strong {
    color: #00aaff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    border: 1px solid #333;
    padding: 12px;
    text-align: left;
}
th {
    background-color: #2c2c2c;
}