/* General Body/Page Styling */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Centering the main dashboard title */
#dashboard-section h1 {
    text-align: center;
    color: black;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Centering the entire dashboard section container */
#dashboard-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* Logout Button Styling */
#logout-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}
#logout-btn:hover {
    background-color: #5a6268;
}

/* Refresh Button Styling */
#refresh-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}
#refresh-btn:hover {
    background-color: #5a6268;
}

/* Adjusting the grid layout for responsiveness */
.dashboard-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0;
    margin-bottom: 20px;
}

/* Styles for individual blocks within the dashboard */
.dashboard-block, .team-block {
    background-color: #555;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

/* Specific styling for Unpaid Rents block to handle two-line display */
#unpaid-rents {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Ensure headings and paragraphs in blocks don't override centering */
.dashboard-block h2,
.dashboard-block p,
.team-block h4,
.team-block p {
    margin: 5px 0;
    color: inherit;
}

/* Styles for the "Download List" buttons within the blocks */
.dashboard-block button {
    margin: 10px auto 5px auto !important;
}

/* Style for report links */
.report-link {
    color: #FFA500;
    text-decoration: none;
    margin-top: 5px;
    font-size: 0.9em;
}
.report-link:hover {
    text-decoration: underline;
}

/* Diagnostic and Team Breakdown section titles */
h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: black;
}

/* Specific styling for login section */
#login-section {
    text-align: center;
    padding-top: 50px;
}
#login-section h1 {
    color: black;
}
#login-form {
    max-width: 300px;
    margin: 20px auto;
    padding: 20px;
    background-color: #555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#login-form label {
    text-align: left;
    color: white;
}
#login-form input[type="text"],
#login-form input[type="password"] {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #777;
    background-color: #666;
    color: white;
}
#login-form button {
    padding: 10px 15px;
    background-color: #FFA500;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
#login-form button:hover {
    background-color: #E09400;
}
#login-error {
    color: #ff4d4d;
    font-weight: bold;
    margin-top: 10px;
}

/* Logo Styling */
.login-logo,
.dashboard-logo {
    display: block;
    margin: 10px auto;
    max-width: 150px;
    height: auto;
}

/* Specific styling for the snapshot button */
#snapshot-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 20px auto;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: normal;
    transition: background-color 0.2s;
}
#snapshot-btn:hover {
    background-color: #5a6268;
}

/* Styles for team vacancy rate ranking */
.vacancy-rank-first { /* Red for 1st place (highest vacancy) */
    background-color: #8B0000;
}
.vacancy-rank-second { /* Yellow for 2nd place */
    background-color: #B8860B; /* Dark Golden Rod */
}
.vacancy-rank-third { /* Green for 3rd place (lowest vacancy) */
    background-color: #006400;
}