/* public/css/style.css */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --midnight-red: #d30000;
    --text-light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.container {
    max-width: 800px;
    margin: 3rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #aaa;
}

input, select {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--midnight-red);
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--midnight-red);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background-color: #ff1a1a;
    box-shadow: 0 0 15px var(--midnight-red);
}

/* Calendar Specific Overrides */
#calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    color: black;
}

/* --- Kanban Board UI --- */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .kanban-board { grid-template-columns: 1fr; }
}

.kanban-column {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    min-height: 70vh;
}

.kanban-column h3 {
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.job-card {
    background: var(--bg-card);
    border-left: 4px solid var(--midnight-red);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.job-card:hover { transform: translateY(-2px); }
.job-card h4 { margin-bottom: 0.5rem; color: #fff; font-size: 1.1rem; }
.job-card p { margin-bottom: 0.25rem; font-size: 0.9rem; color: #aaa; }
.job-card .timestamp { font-size: 0.8rem; color: #666; margin-top: 0.5rem; font-style: italic; }

.btn-action {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    font-size: 0.9rem;
    background: #222;
    color: #fff;
    border: 1px solid #444;
}

.btn-action:hover { background: var(--midnight-red); border-color: var(--midnight-red); box-shadow: none; }
.btn-complete { background: #006600; }
.btn-complete:hover { background: #009900; }

/* --- UI UPGRADES FOR INDEX.EJS --- */
.text-red { color: var(--midnight-red); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: #050505;
    border-bottom: 2px solid var(--midnight-red);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

/* Mobile Menu Toggle Icon */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 101; /* Force it to stay on top */
}

/* Buttons */
.btn-primary {
    background-color: var(--midnight-red);
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background-color: #ff1a1a; box-shadow: 0 0 20px rgba(211,0,0,0.6); }
.btn-large { font-size: 1.3rem; padding: 20px 40px; margin-top: 2rem; }
.btn-submit { width: 100%; margin-top: 1rem; }
.btn-outline {
    border: 2px solid var(--midnight-red);
    color: var(--midnight-red);
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover { background: var(--midnight-red); color: #fff; }

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, #111, #000); 
    padding: 0 20px;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; letter-spacing: 3px; }
.hero p { font-size: 1.4rem; color: #ccc; margin-bottom: 2rem; line-height: 1.6; }

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: #111;
    padding: 2rem 5%;
    border-bottom: 1px solid #222;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px;
}

/* Services */
.services-section { padding: 5rem 5%; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; letter-spacing: 2px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: #111;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: 0.3s;
}
.service-card:hover { border-color: var(--midnight-red); transform: translateY(-5px); }
.service-card i { margin-bottom: 1.5rem; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { color: #888; line-height: 1.5; }

/* Booking Section Update */
.booking-section { padding: 4rem 5%; background: #080808; }
.booking-card {
    max-width: 700px;
    margin: 0 auto;
    background: #151515;
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.form-row { display: flex; gap: 20px; }
.half-width { flex: 1; }

/* --- Location Input & GPS Button Styling --- */
.location-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.location-wrapper input {
    flex: 1;
    margin-bottom: 0;
}
.btn-locate-custom {
    white-space: nowrap;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: auto;
}
.btn-locate-custom:hover {
    background: var(--midnight-red);
    border-color: var(--midnight-red);
}

/* --- Dashboard Header Styles --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #050505;
    border-bottom: 1px solid #333;
}
.dashboard-brand h1 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.dashboard-brand p { color: #888; font-size: 0.9rem; }
.dashboard-user-info { text-align: right; }
.btn-logout-custom {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    font-size: 0.8rem;
    width: auto;
}

/* --- Active Job HUD (Sticky) --- */
.active-job-hud {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #111;
    border-bottom: 3px solid var(--midnight-red);
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}
.active-job-hud .job-card {
    margin-bottom: 0;
    border-left: none;
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.active-job-hud .hud-details { flex: 1; min-width: 250px; }
.active-job-hud .hud-actions { flex: 0 0 auto; display: flex; gap: 10px; }
.active-job-hud .btn-action { width: auto; margin-top: 0; padding: 15px 30px; font-size: 1rem; font-weight: bold; }


/* --- ENHANCED RESPONSIVE DESIGN (Mobile/Tablet) --- */
@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    
    .location-wrapper { flex-direction: column; }
    .btn-locate-custom { width: 100%; padding: 15px; margin-top: 5px; }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .nav-brand { font-size: 1.4rem; }
    
    .booking-card { padding: 1.5rem; }
    
    /* Index Mobile Navbar Logic */
    .navbar { 
        flex-wrap: wrap; 
        padding: 1rem; 
        justify-content: space-between; /* Ensure brand and icon push apart */
    }
    .mobile-menu-toggle { display: block; }
    .nav-contact {
        display: none; 
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
    }
    .nav-contact.active { display: flex; }
    .nav-contact a { width: 100%; text-align: center; margin-left: 0 !important; }
    
    /* Dashboard Mobile Header Logic */
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 1rem;
    }
    .dashboard-user-info { text-align: center; }

    /* Active Job HUD Mobile Layout */
    .active-job-hud .job-card { flex-direction: column; text-align: center; }
    .active-job-hud .hud-actions { width: 100%; justify-content: center; flex-direction: column; }
    .active-job-hud .btn-action { width: 100%; }
}