/* 
   NUBRAKE Mobile Booking System - Premium Stylesheet
   Theme: Carbon Dark & Amber Gold
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f1013;
    --bg-card: #191b20;
    --bg-input: #23262d;
    --primary-gold: #efa91a;
    --primary-gold-rgb: 239, 169, 26;
    --secondary-gold: #ffbe0b;
    --accent-red: #ff4a4a;
    --text-white: #ffffff;
    --text-muted: #8e95a5;
    --text-dark: #1e2025;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(239, 169, 26, 0.6);
    --glass-bg: rgba(25, 27, 32, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Background skyline accent */
.bg-skyline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    background-image: linear-gradient(to bottom, rgba(15, 16, 19, 0.2), var(--bg-dark)), url('../images/vans-showcase.jpg');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.15;
    z-index: -1;
    filter: grayscale(100%) contrast(120%);
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--secondary-gold);
}

/* Main Layout */
.app-container {
    width: 100%;
    max-width: 480px; /* Force mobile-first shell on desktop */
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.brand-name span {
    color: var(--primary-gold);
}

.brand-subname {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -4px;
}

.nav-menu-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-title span {
    color: var(--primary-gold);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Common Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #d6940d);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(239, 169, 26, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 169, 26, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
}

/* Postcode Check Badge Box */
.checker-wrapper {
    margin-bottom: 24px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-control {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.input-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(239, 169, 26, 0.15);
}

.checker-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.checker-status.success {
    background-color: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.3);
    color: #06d6a0;
    display: flex;
}

.checker-status.error {
    background-color: rgba(255, 74, 74, 0.1);
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #ff4a4a;
    display: flex;
}

/* License Plate Input Design */
.license-plate-container {
    background: #ffd300;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 4px 6px 4px 44px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

/* Blue side strip with flag and UK */
.license-plate-container::before {
    content: "UK";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    background-color: #003399;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 6px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    font-family: Arial, sans-serif;
}

/* Flag drawing */
.license-plate-container::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 6px;
    width: 16px;
    height: 11px;
    background: linear-gradient(180deg, #ff0000 33%, #ffffff 33%, #ffffff 66%, #ff0000 66%);
    background-image: 
        radial-gradient(circle at center, transparent 0, transparent),
        linear-gradient(90deg, transparent 46%, #ffffff 46%, #ffffff 54%, transparent 54%),
        linear-gradient(0deg, transparent 42%, #ffffff 42%, #ffffff 58%, transparent 58%),
        linear-gradient(90deg, transparent 48%, #ff0000 48%, #ff0000 52%, transparent 52%),
        linear-gradient(0deg, transparent 45%, #ff0000 45%, #ff0000 55%, transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 30'%3E%3Crect width='50' height='30' fill='%2300247d'/%3E%3Cpath d='M0 0 L50 30 M50 0 L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0 L50 30 M50 0 L0 30' stroke='%23cf142b' stroke-width='4'/%3E%3Cpath d='M25 0 V30 M0 15 H50' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M25 0 V30 M0 15 H50' stroke='%23cf142b' stroke-width='6'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.license-plate-input {
    background: transparent;
    border: none;
    color: #111;
    font-family: 'Outfit', 'Lucida Console', Monaco, monospace;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    outline: none;
    text-align: center;
    padding: 4px 0;
}

.plate-subtext {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

/* Mock Car Details Badge */
.vehicle-badge-success {
    background: rgba(239, 169, 26, 0.1);
    border: 1px solid rgba(239, 169, 26, 0.25);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.vehicle-badge-success svg {
    color: var(--primary-gold);
    flex-shrink: 0;
}

.vehicle-details-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
}

.vehicle-details-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 5 Steps Multi-Step Form Wrapper */
.booking-wizard {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

.step-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.step-indicator-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator-progress {
    position: absolute;
    top: 50%;
    left: 4px;
    height: 2px;
    background: var(--primary-gold);
    z-index: 1;
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.3s ease;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--bg-input);
    border: 2px solid var(--text-muted);
    z-index: 2;
    transition: all 0.3s ease;
}

.step-dot.active {
    border-color: var(--primary-gold);
    background-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(239, 169, 26, 0.6);
}

.step-dot.completed {
    border-color: var(--primary-gold);
    background-color: var(--bg-dark);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-title-wrap {
    margin-bottom: 20px;
}

.step-number {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Service Options Cards */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.service-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card.selected {
    border-color: var(--primary-gold);
    background: rgba(239, 169, 26, 0.05);
}

.service-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.service-card.selected .service-icon-box {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.service-card-info {
    flex-grow: 1;
}

.service-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 3px;
}

.service-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.service-radio {
    position: absolute;
    right: 16px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-card.selected .service-radio {
    border-color: var(--primary-gold);
    background-color: var(--primary-gold);
}

.service-card.selected .service-radio::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: var(--text-dark);
}

/* Date and Time Selector UI */
.datepicker-input {
    margin-bottom: 20px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.time-slot-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.time-slot-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.time-slot-card.selected {
    border-color: var(--primary-gold);
    background: rgba(239, 169, 26, 0.05);
}

.time-slot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-slot-icon {
    color: var(--primary-gold);
    font-size: 16px;
}

.time-slot-label {
    font-size: 14px;
    font-weight: 600;
}

.time-slot-window {
    font-size: 12px;
    color: var(--text-muted);
}

.time-slot-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-slot-card.selected .time-slot-radio {
    border-color: var(--primary-gold);
}

.time-slot-card.selected .time-slot-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-gold);
}

/* Step Navigation buttons */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    margin-top: 14px;
}

.form-label span {
    color: var(--accent-red);
}

/* Textarea Notes */
textarea.input-control {
    resize: none;
    min-height: 80px;
}

/* Summary Grid on Step 5 */
.booking-summary-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
    text-align: right;
}

.summary-value.plate {
    background: #ffd300;
    color: #000;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* Booking Success Screen */
.success-screen {
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(6, 214, 160, 0.1);
    color: #06d6a0;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 1px solid rgba(6, 214, 160, 0.3);
    box-shadow: 0 0 15px rgba(6, 214, 160, 0.2);
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.reference-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.ref-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.ref-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-top: 4px;
    letter-spacing: 1px;
}

/* Customer Booking Flow Status Tracker */
.tracker-timeline {
    position: relative;
    padding-left: 24px;
    text-align: left;
    margin-top: 24px;
    border-left: 2px solid var(--border-color);
}

.tracker-node {
    position: relative;
    padding-bottom: 20px;
}

.tracker-node:last-child {
    padding-bottom: 0;
}

.tracker-dot {
    position: absolute;
    left: -31px;
    top: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    z-index: 2;
}

.tracker-node.active .tracker-dot {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px var(--primary-gold);
}

.tracker-node.completed .tracker-dot {
    background: #06d6a0;
    border-color: #06d6a0;
}

.tracker-text h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
}

.tracker-node.active .tracker-text h5 {
    color: var(--primary-gold);
}

.tracker-text p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Footer Section */
footer {
    margin-top: auto;
    padding: 30px 10px 10px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo img {
    width: 28px;
    height: 28px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 16px;
}

.footer-socials a:hover {
    color: var(--primary-gold);
}

/* --- ADMIN & QUOTE DESIGN SYSTEM --- */
/* For layout adaptions */
.admin-shell {
    max-width: 1024px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.admin-title-area h1 {
    font-size: 24px;
    font-weight: 800;
}

.admin-title-area p {
    font-size: 13px;
    color: var(--text-muted);
}

.admin-nav-actions {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

/* Login Panel */
.login-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 380px;
    margin: 80px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Admin Dashboard Cards Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.metric-details h3 {
    font-size: 24px;
    font-weight: 800;
}

.metric-details p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Table Controls */
.table-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.search-input-wrap {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    font-weight: 700;
    color: var(--text-muted);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Detail modal/drawer */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    animation: fadeIn 0.2s ease;
}

.drawer-backdrop.active {
    display: block;
}

.drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 460px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 101;
    transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-section:last-child {
    border-bottom: none;
}

.drawer-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Detail Info Rows */
.detail-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    font-weight: 500;
}

.vehicle-history-timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 14px;
    border-left: 1px dashed var(--border-color);
}

.history-item {
    position: relative;
    padding-bottom: 14px;
}

.history-item:last-child {
    padding-bottom: 0;
}

.history-dot {
    position: absolute;
    left: -25px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
}

.history-item.completed .history-dot {
    background: #06d6a0;
}

.history-details h6 {
    font-size: 12px;
    font-weight: 700;
}

.history-details p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Digital Invoice/Quotation layout for quote.php */
.quote-sheet {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.quote-header-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.quote-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.quote-meta {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
}

.quote-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 13px;
}

.address-block h4 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.quote-items-table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.quote-items-table th, .quote-items-table td {
    padding: 10px 12px;
    font-size: 13px;
}

.quote-items-table th {
    background: rgba(255, 255, 255, 0.02);
}

.quote-items-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quote-total-row {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-gold);
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 2px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 480px) {
    .app-container {
        padding: 12px 10px;
    }
    .hero-card {
        padding: 20px 16px;
    }
    .booking-wizard {
        padding: 20px 14px;
    }
}

@media (min-width: 768px) {
    /* For Admin layout scale-ups */
    body.admin-mode {
        background-image: linear-gradient(180deg, #18191d 0%, #0f1013 100%);
    }
    body.admin-mode .app-container {
        max-width: 1000px;
    }
}

/* Custom Axle Button Group for Brake Services */
.axle-btn {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.axle-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.axle-btn.selected {
    background: rgba(239, 169, 26, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Disabled/Unavailable time slots styling */
.time-slot-card.disabled {
    opacity: 0.35;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 74, 74, 0.15);
}

.time-slot-card.disabled .time-slot-icon {
    color: var(--text-muted);
}

.time-slot-card.disabled .time-slot-radio {
    border-color: rgba(255, 74, 74, 0.3);
    background-color: rgba(255, 74, 74, 0.05);
}

.time-slot-card.disabled .time-slot-radio::after {
    content: "\f05e"; /* FontAwesome ban/slash circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--accent-red);
}
