/* Riverside_v2 Main Stylesheet
    Consolidated: Auth Portal & Coordinate-Based Sitemap
*/

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 95%;
    margin: 0 auto;
}

/* --- Header & Navigation --- */
.main-header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 20px;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    color: #ff7675;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    border: 1px solid #ff7675;
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- Auth Screen Styling (Login/Setup) --- */
.auth-screen #content-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* Compatibility for login.htm classes */
.login-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.auth-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background: #27ae60;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

/* --- Sitemap Coordinate System --- */
.app-portal .sitemap-wrapper {
    background: #4ade80; /* Park Green Base */
    min-height: 100vh;
}

.sitemap-container, .map-container {
    position: relative;
    width: 1800px; /* Aligned with dashboard.htm */
    height: 1200px;
    background-color: #4ade80;
    border: 2px solid #064e3b;
    margin: 0 auto;
}

/* Base Map Elements */
.map-element, .road, .hedge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.road { background-color: #94a3b8; color: #fff; z-index: 1; }
.road.horizontal { height: 55px; }
.road.vertical { width: 55px; }

.hedge { background-color: #064e3b; z-index: 2; width: 12px; }
.restroom {
    position: absolute;
    background-color: #fbcfe8;
    border: 1px solid #000;
    width: 45px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 3;
}

/* Pitch Specifics */
.pitch, .pitch-bubble {
    position: absolute;
    width: 38px;
    height: 28px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 4;
}

.pitch:hover, .pitch-bubble:hover {
    filter: brightness(90%);
}

/* AJAX Status Classes */
.vacant, .pitch-vacant { background-color: #bae6fd; }
.power-on, .pitch-occupied { background-color: #ffffff; }
.alert, .pitch-alert { background-color: #fde047; animation: blink 1s infinite; }

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}
