/* General Body & Reset Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    /* Add padding to the top to prevent content from being hidden by the fixed header */
    padding-top: 80px; 
}

/* --- The Sticky Header --- */
.site-header {
    position: fixed; /* This is the key! */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    height: 140px; /* Adjust height as needed */
}

/* Main Content Area */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: calc(100vh - 80px); /* Full height minus header */
}

/* --- Login Form & Dashboard Card Styles --- */
.login-container, .dashboard-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding and width calculation */
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    background-color: #fbe2e2;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
    /* Hide by default */
    display: none; 
}

/* Dashboard specific styles */
.dashboard-container p {
    font-size: 18px;
    margin-bottom: 25px;
}

#user-email {
    font-weight: bold;
    color: #3498db;
}

#logout-button {
    background-color: #e74c3c;
}

#logout-button:hover {
    background-color: #c0392b;
}