﻿/* =========================================================================
   🎛️ BLAZOR SIDEBAR & TOPBAR OVERRIDE REMOVALS
   ========================================================================= */

/* Overwrites the default Blazor layout constraints to enforce pure 100% full-width styling */
.page {
    display: block !important;
    min-height: 100vh;
    background-color: var(--bg-main);
}

main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Completely hides the old default navigation menus from compiling */
.sidebar, .top-row {
    display: none !important;
}

/* 🚗 CUSTOM POCKET GARAGE BRANDING LAYER HEADER BAR */
.pocketgarage-top-bar {
    background-color: #1a1a20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.brand-logo-container {
    display: flex;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo-accent {
    color: var(--accent-glow);
}

.logo-main {
    color: var(--text-primary);
}

.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(76, 175, 80, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4caf50;
}

.status-text {
    font-size: 10px;
    font-weight: 700;
    color: #4caf50;
    letter-spacing: 0.5px;
}

/* 🖼️ MAIN CENTERING DATA VIEWPORT CONTROLLER */
.content-viewport {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Removes standard viewport offset gaps */
.content {
    padding: 0 !important;
}
/* =========================================================================
   🌐 SGsSSS POCKET GARAGE - PREMIUM BLAZOR DESIGN MATRIX
   ========================================================================= */
:root {
    --bg-main: #121214;
    --bg-card: #1e1e24;
    --bg-input: #2a2a32;
    --accent-blue: #3b52cc;
    --accent-glow: #536dfe;
    --text-primary: #ffffff;
    --text-muted: #a0a0ab;
    --status-pending: #4a4a5a;
    --status-completed: #1b5e20;
    --status-cancelled: #b71c1c;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* 🔒 SECURE LOGIN CONTAINER MODULE */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top, #1e264d 0%, var(--bg-main) 70%);
}

.login-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

    .login-card h2 {
        margin-bottom: 8px;
        font-weight: 700;
    }

    .login-card p {
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 24px;
    }

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        margin-bottom: 8px;
    }

/* --- INSIDE YOUR BLAZOR APP.CSS FILE --- */
/* Locate this specific class block and add the 'color' parameter row: */

.form-control {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #ffffff !important; /* ✅ FIXED: Forces typed text to display in crisp, solid white! */

    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}


    .form-control:focus {
        outline: none;
        border-color: var(--accent-glow);
        background-color: #2e2e38;
    }

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-blue);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-primary:hover {
        background-color: var(--accent-glow);
    }

.alert-danger {
    background-color: rgba(217, 56, 58, 0.15);
    border: 1px solid var(--status-cancelled);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

/* 📊 DASHBOARD & WORKLIST LEDGER LAYOUT */
.dashboard-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
}

.header-panel {
    margin-bottom: 32px;
}

    .header-panel h1 {
        font-size: 28px;
        margin: 0 0 4px 0;
    }

    .header-panel span {
        color: var(--text-muted);
        font-size: 14px;
    }

/* 🧭 GRAPHICAL PROGRESS TIMELINE */
.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 32px;
    padding: 0 10px;
}

.timeline-line-bg {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #2a2a32;
    z-index: 1;
}

.timeline-line-fill {
    position: absolute;
    top: 15px;
    left: 0;
    height: 4px;
    background-color: var(--accent-glow);
    z-index: 2;
    transition: width 0.4s ease;
}

.timeline-node {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.node-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2a2a32;
    border: 3px solid var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.timeline-node.active .node-circle {
    background-color: var(--accent-blue);
    border-color: var(--accent-glow);
    color: var(--text-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.node-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.timeline-node.active .node-label {
    color: var(--text-primary);
}

/* 🚗 VEHICLE PROFILE PROFILE PANEL */
.vehicle-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

    .info-row:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

.info-label {
    color: var(--text-muted);
    font-size: 14px;
}

.info-value {
    font-weight: 600;
    font-size: 14px;
}

/* 📜 ACTIVE WORKLIST LEDGER ROWS */
.ledger-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-row {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--status-pending);
    transition: all 0.2s ease;
}

    .task-row.is-completed {
        border-left-color: #4caf50;
        background: linear-gradient(to right, rgba(76, 175, 80, 0.05), var(--bg-card));
    }

    .task-row.is-cancelled {
        border-left-color: var(--status-cancelled);
        opacity: 0.45;
        text-decoration: line-through;
        background-color: rgba(217, 56, 58, 0.02);
    }

.task-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.task-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.task-type {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .status-badge.pending {
        background-color: var(--status-pending);
        color: #ffffff;
    }

    .status-badge.completed {
        background-color: var(--status-completed);
        color: #ffffff;
    }

    .status-badge.cancelled {
        background-color: var(--status-cancelled);
        color: #ffffff;
    }
