/* Custom CSS for the HausTurn Application */

/* --- 1. Global Dark Theme Setup --- */
body, 
.site-content, 
.elementor-section,
#app-validation-container {
    /* Use a dark grey, not pure black (#000000), for better contrast and less eye strain (Source 1.1, 1.2) */
    background-color: #1a1a1a !important; 
    color: #e0e0e0 !important; /* Off-white text */
    /* Override any theme background/text colors */
}

/* Ensure links stand out but are not overly saturated */
a {
    color: #4CAF50; /* HausTurn Green */
}

/* --- 2. Styling for the Validation Page --- */
#app-validation-container {
    min-height: 100vh; /* Full screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

#app-validation-container h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

#app-validation-container p {
    font-size: 1.1em;
    color: #b0b0b0; /* Medium-emphasis text */
}

/* You can add a subtle animation or spinner here if desired */


/* --- 3. Application Layout (SPA) --- */
#hausturn-portal-app {
    display: flex; /* Sidebar and main content side-by-side */
    min-height: 100vh;
}

.app-sidebar {
    width: 250px;
    background-color: #242424; /* Darker sidebar */
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.app-logo {
    color: #4CAF50; /* HausTurn Green */
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 1.05em;
    transition: background-color 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: #333;
    border-left: 4px solid #4CAF50;
    padding-left: 16px; /* Adjust for border */
}

.nav-link .lock-icon {
    margin-left: auto; /* Push the lock icon to the right */
}

/* Main Content Area */
.app-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #1a1a1a;
}

.app-header {
    padding: 20px 30px;
    background-color: #242424;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-container {
    padding: 30px;
    flex-grow: 1;
}


/* --- 4. Data Tables and Components --- */

/* Base Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #242424; /* Slightly darker than the main content area */
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius applies to corners */
}

/* Table Header */
table thead {
    background-color: #333;
}

table th {
    color: #f0f0f0;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: 1px solid #444;
}

/* Table Cells */
table td {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    font-size: 0.95em;
    color: #e0e0e0;
}

/* Zebra Striping for Readability */
table tbody tr:nth-child(even) {
    background-color: #2b2b2b;
}

table tbody tr:hover {
    background-color: #3d3d3d; /* Subtle hover effect */
}

/* Button Styling */
.button-primary {
    background-color: #4CAF50; /* HausTurn Green */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button-primary:hover {
    background-color: #45a049;
}

/* Gated/Disabled Button Style */
.button-gated, .button-gated:disabled {
    background-color: #616161; /* Greyed out */
    color: #bdbdbd;
    cursor: not-allowed;
    border: 1px solid #424242;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 4px 2px;
    font-size: 16px;
}

.upgrade-note {
    color: #FFC107; /* Warning yellow */
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

/* Status Badges */
.status-assigned, .status-new, .status-complete {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    display: inline-block;
}

.status-new {
    background-color: #FF980033; /* Orange transparent */
    color: #FF9800;
}

.status-assigned {
    background-color: #4CAF5033; /* Green transparent */
    color: #4CAF50;
}

.status-complete {
    background-color: #2196F333; /* Blue transparent */
    color: #2196F3;
}


/* --- 5. Modal Styling (Add Cleaner Form) --- */

.modal-overlay {
    /* Full screen overlay, hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
    z-index: 1000; 
}

.modal-content {
    background-color: #242424; /* Dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    position: relative;
    color: #e0e0e0;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #e0e0e0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #4CAF50;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #e0e0e0;
    box-sizing: border-box; /* Crucial for padding/border not breaking width */
}

.modal-note {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #444;
    border-radius: 4px;
}

.error-message {
    color: #FF5722; /* Red for errors */
    margin-top: 10px;
}