/* CarStatus Complete Styling - Clean & Mobile-First Design */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --primary-light: #4dabf7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-gradient: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    
    --border-color: #dee2e6;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.2);
    
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    line-height: 1.6;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: var(--font-weight-bold); }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-logo {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-lg);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.btn-copy {
    background-color: #28a745;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 80px;
}

.btn-copy:hover {
    background-color: #218838;
    text-decoration: none;
}

.btn-copy.copied {
    background-color: #20c997;
}

.btn-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--danger-color);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
}

.form-help {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* DASHBOARD STYLES - COMPLETELY REDESIGNED */
.dashboard {
    max-width: none;
    margin: 0 16rem;
    padding: 2rem;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-left h1 {
    margin-bottom: 0.25rem;
    font-size: 2rem;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
}

.timezone-info {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-weight: var(--font-weight-semibold);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Create Job Section - UPDATED TO MATCH MOCKUP */
.create-job-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Updated Collapsible Create Job Form Styles - Match Mockup */
.create-job-trigger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    gap: 1rem;
}

.create-job-trigger-row:focus-within {
    outline: none;
}

.create-job-trigger-row:hover {
    background: var(--bg-secondary);
    margin: 0 -2rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
}

.create-job-label {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    letter-spacing: 0.01em;
    flex: 1;
    text-align: left;
}

.plus-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.plus-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.plus-btn:focus {
    outline: none;
    background: var(--primary-dark);
}

.plus-btn:active {
    transform: scale(0.95);
}

.create-job-content {
    margin-top: 1.5rem;
    overflow: hidden;
    display: none;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease;
}

.create-job-content.show {
    display: block;
    opacity: 1;
    max-height: 2000px;
}

/* Jobs Section */
.jobs-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.jobs-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.job-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    text-decoration: none;
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.jobs-grid {
    display: grid;
    gap: 1.5rem;
}

/* Search Bar Styles */
.job-search {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-clear {
    position: absolute;
    right: 15px;
    background: var(--text-muted);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.search-clear:hover {
    background: var(--danger-color);
}

.search-results {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-color);
}

/* Collapsible Job Card Styles */
.job-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
}

.job-card.expanded {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Job Summary (Always Visible) */
.job-summary {
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.job-summary:hover {
    background: var(--bg-secondary);
}

.job-card.expanded .job-summary {
    border-bottom-color: var(--border-color);
    background: var(--bg-secondary);
}

.job-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.job-id {
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.job-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expand-icon {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
}

.job-card.expanded .expand-icon {
    color: var(--primary-color);
}

.job-summary-content {
    display: grid;
    gap: 0.75rem;
}

.summary-customer,
.summary-vehicle,
.summary-status,
.summary-time {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.summary-icon {
    color: var(--text-secondary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.summary-text {
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.summary-status .summary-text {
    color: var(--text-secondary);
    font-style: italic;
}

.summary-time .summary-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Job Details (Hidden by default) */
.job-details {
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* CLEAN JOB CARD DESIGN - COMPLETELY REWRITTEN */
.job-card[data-status="archived"] {
    opacity: 0.8;
    background: #fafafa;
}

/* Job Header - Clean and Organized */
.job-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f2f5 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.job-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.job-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #cce7ff;
    color: #0056b3;
}

.status-archived {
    background: #e2e3e5;
    color: var(--text-secondary);
}

.job-updates-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.job-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Job Body - Better Organization */
.job-body {
    padding: 1.5rem;
}

.job-info-section {
    margin-bottom: 1.5rem;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.customer-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.customer-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 1rem;
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.vehicle-icon {
    color: var(--success-color);
    font-size: 1.1rem;
}

.vehicle-text {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.info-icon {
    color: var(--text-secondary);
    font-size: 1rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Current Status - Prominent Display */
.current-status {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid var(--success-color);
    border-left: 4px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.status-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-text {
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

/* Job Actions - Tabbed Interface */
.job-actions {
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.action-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.action-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.85rem;
    flex: 1;
    text-align: center;
}

.action-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.action-tab:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.action-content {
    padding: 1rem;
    background: white;
}

.action-panel {
    display: none;
}

.action-panel.active {
    display: block;
}

/* Customer Link Panel */
.customer-link-section {
    margin-bottom: 1rem;
}

.customer-link-section label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.url-copy {
    display: flex;
    gap: 0.5rem;
}

.customer-url {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
}

.customer-url:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.view-customer-link {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.view-customer-link:hover {
    text-decoration: underline;
}

/* Update Panel */
.update-status-form {
    margin-bottom: 1rem;
}

.update-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.update-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.update-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: var(--font-weight-medium);
}

.quick-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.quick-action-btn.complete {
    border-color: var(--success-color);
    color: var(--success-color);
}

.quick-action-btn.complete:hover {
    background: var(--success-color);
    color: white;
}

.quick-action-btn.archive {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.quick-action-btn.archive:hover {
    background: var(--secondary-color);
    color: white;
}

/* Archived State */
.archived-notice {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* AUTHENTICATION PAGES */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-header h1 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 2.5rem;
}

.auth-header h1 a:hover {
    text-decoration: none;
}

.auth-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    margin-top: 2rem;
}

.auth-form h2 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.trial-info {
    margin-top: 1rem;
    color: var(--success-color);
}

/* CUSTOMER STATUS PAGE STYLES */
.customer-body {
    background: var(--bg-gradient);
}

.customer-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-section {
    margin-bottom: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    font-size: 1.25rem;
    justify-content: center;
}

.brand-name {
    font-weight: var(--font-weight-bold);
}

.brand-icon {
    font-size: 1.5rem;
}

.shop-section {
    text-align: center;
}

.shop-name {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.customer-content {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    flex: 1;
}

.vehicle-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.vehicle-title {
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.job-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.job-id {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    background: #e8f2ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.job-separator {
    color: var(--text-muted);
}

.current-status-section {
    margin-bottom: 2rem;
}

.current-status-section h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.status-icon {
    font-size: 1.5rem;
    color: var(--success-color);
}

.status-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.status-box.current {
    border-left: 4px solid var(--success-color);
}

.status-badge {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.status-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.status-time {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auto-refresh-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LANDING PAGE STYLES */

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: var(--bg-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="%23007bff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') center;
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-sm);
    width: fit-content;
    border: 1px solid var(--primary-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 0;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.hero-proof {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.proof-stat {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    margin-top: 0.25rem;
}

/* Hero Visual (Demo Phone) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-phone {
    width: 320px;
    height: 600px;
    background: #1f2937;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.demo-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.demo-title {
    display: block;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.demo-shop {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-car {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.demo-status {
    flex: 1;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.status-current {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.status-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.demo-contact {
    text-align: center;
}

.contact-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.step-icon {
    font-size: 3rem;
    margin: 1rem 0 1.5rem;
    display: block;
}

.step-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Problem/Solution Section */
.problem-solution {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.side-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.problem-badge {
    background: #ffe6e6;
    color: var(--danger-color);
}

.solution-badge {
    background: #e6f7e6;
    color: var(--success-color);
}

.pain-points, .solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pain-point, .benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pain-point:hover, .benefit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.pain-icon, .benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.pain-content strong, .benefit-content strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pain-content p, .benefit-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Customer Access Section */
.customer-access {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.access-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.access-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.url-demo {
    max-width: 500px;
    margin: 2rem auto;
}

.url-bar {
    display: flex;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 4px;
    box-shadow: var(--shadow-lg);
    align-items: center;
}

.url-base {
    color: var(--text-secondary);
    padding: 12px 16px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 8px;
    font-size: 1rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.url-go {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: calc(var(--border-radius-lg) - 4px);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition);
}

.url-go:hover {
    background: var(--primary-dark);
}

.access-note {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    margin-bottom: 3rem;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-check {
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
}

.footer-icon {
    font-size: 1.75rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* CUSTOMER STATUS PAGE STYLES - COMPLETE */

.status-history-section {
    margin-bottom: 2rem;
}

.status-history-section h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.history-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.update-count {
    margin-left: auto;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.timeline {
    margin-top: 1rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
}

.timeline-item.current .timeline-marker {
    border-color: var(--success-color);
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.marker-current {
    color: white;
    font-size: 0.9rem;
}

.marker-past {
    color: var(--success-color);
    font-size: 0.8rem;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--bg-secondary);
    transition: var(--transition);
}

.timeline-content:hover::before {
    border-right-color: var(--bg-primary);
}

.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-color: var(--success-color);
}

.timeline-item.current .timeline-content::before {
    border-right-color: #e8f5e8;
}

.timeline-text {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.timeline-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.contact-section {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--warning-color);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    margin: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.contact-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.btn-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.btn-number {
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

.contact-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.completion-notice {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.completion-icon {
    font-size: 1.5rem;
    color: var(--success-color);
}

.completion-text {
    font-weight: var(--font-weight-semibold);
    color: var(--success-color);
}

.refresh-info {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.refresh-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.refresh-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.refresh-title {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 1rem;
}

.refresh-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.refresh-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.refresh-icon {
    margin-right: 0.25rem;
    animation: spin 3s linear infinite;
}

.customer-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    color: var(--text-secondary);
}

.footer-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* 404 ERROR PAGE STYLES */
.error-body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-container {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.error-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-help {
    text-align: left;
    margin: 2rem 0;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.error-help h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.error-help ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.error-help li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.retry-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.retry-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-help {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.contact-help h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-help p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* RESPONSIVE DESIGN - MOBILE FIRST */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link[href="/login"] {
        display: inline-block;
        background: var(--bg-secondary);
        color: var(--text-primary);
        padding: 6px 12px;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        font-weight: var(--font-weight-medium);
        font-size: 0.85rem;
        transition: var(--transition);
        white-space: nowrap;
    }
    
    .nav-link[href="/login"]:hover {
        background: var(--bg-tertiary);
        text-decoration: none;
        color: var(--text-primary);
    }

    .nav-link {
        display: none;
    }
    
    /* Dashboard Mobile */
    .dashboard {
        padding: 1rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .dashboard-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-info {
        align-items: flex-start;
        text-align: left;
    }
    
    /* Hide stats section on mobile - MAIN FEATURE */
    .stats-section {
        display: none;
    }
    
    /* Adjust create job section for mobile */
    .create-job-section {
        padding: 1.5rem;
    }
    
    .create-job-trigger-row {
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .create-job-trigger-row:hover {
        background: var(--bg-primary);
        margin-bottom: 1rem;
        margin-left: 0;
        margin-right: 0;
        border-color: var(--border-color);
    }
    
    .create-job-trigger-row:active {
        transform: none;
        border-color: var(--border-color);
    }
    
    .create-job-label {
        font-size: 1.1rem;
    }
    
    .plus-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        margin-left: 1rem;
    }
    
    .plus-btn:hover {
        background: var(--primary-color);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    /* Improve form spacing on mobile */
    .create-job-content {
        margin-top: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Make form inputs more touch-friendly */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 12px;
        min-height: 48px; /* Better touch target */
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    /* Improve button accessibility on mobile */
    .create-job-form .btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
        margin: 1rem auto 0;
        display: block;
        white-space: normal;
        word-wrap: break-word;
        overflow: hidden;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .jobs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }

    .jobs-header h2 {
        text-align: center;
        width: 100%;
        font-size: 1.5rem;
    }

    .job-filters {
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    /* Clean Job Cards Mobile */
    .job-header {
        padding: 1rem;
    }
    
    .job-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .job-badges {
        align-self: flex-end;
    }

    .additional-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .action-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-tab {
        white-space: nowrap;
        min-width: 100px;
        flex: 0 0 auto;
    }

    .url-copy {
        flex-direction: column;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-action-btn {
        justify-content: center;
    }

    /* Responsive Design for Collapsible Cards */
    .job-summary {
        padding: 1rem;
    }

    .job-summary-header {
        align-items: flex-start;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .job-id {
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .job-badges {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .job-summary-content {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .summary-customer,
    .summary-vehicle,
    .summary-status,
    .summary-time {
        max-width: 100%;
        font-size: 0.9rem;
    }

    /* Customer Status Mobile */
    .customer-container {
        padding: var(--spacing-md);
    }
    
    .customer-content {
        padding: var(--spacing-md);
    }

    .job-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .job-separator {
        display: none;
    }

    /* Auth forms mobile */
    .auth-form {
        padding: 2rem;
        margin-top: 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-badge {
        align-self: center;
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Demo phone mobile display */
    .demo-phone {
        width: 280px;
        height: 520px;
        transform: none;
        margin: 0 auto;
    }
    
    /* Stats overlapping fix */
    .hero-proof {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 2rem;
    }

    .proof-stat {
        min-width: 80px;
        flex: 0 0 auto;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .url-bar {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .code-input {
        text-align: center;
        width: 100%;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-logo {
        justify-content: center;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .create-job-trigger-row,
    .create-job-trigger-row:focus,
    .create-job-trigger-row:focus-within,
    .plus-btn,
    .plus-btn:focus,
    .plus-btn:active {
        outline: none;
        border-color: var(--border-color);
    }
}

@media (max-width: 480px) {
    /* Dashboard Mobile - Single column stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .stat-number {
        font-size: 1.8rem;
    }

    .create-job-section,
    .jobs-section {
        padding: 1.5rem;
    }

    .job-header {
        padding: 1rem;
    }
    
    .job-body {
        padding: 1rem;
    }

    .action-content {
        padding: 1rem;
    }

    .customer-container {
        padding: var(--spacing-sm);
    }
    
    .customer-content {
        padding: var(--spacing-sm);
    }
    
    .shop-name {
        font-size: 1.25rem;
    }
    
    .vehicle-title {
        font-size: 1.25rem;
    }

    .auth-form {
        padding: 1.5rem;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-proof {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .demo-phone {
        width: 250px;
        height: 460px;
    }
    
    .phone-screen {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
    
    .step-card, .feature-card {
        padding: 1.5rem;
    }
    
    .pain-point, .benefit-item {
        padding: 1rem;
    }

    /* Even smaller screens - ensure button text fits properly */
    .create-job-form .btn {
        padding: 1rem 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    /* Adjust job card spacing for very small screens */
    .job-summary {
        padding: 0.75rem;
    }
    
    .job-summary-content {
        gap: 0.5rem;
    }
    
    /* Ensure job ID and status stay on same line on very small screens */
    .job-id {
        font-size: 1rem;
    }
    
    .job-status {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .create-job-trigger-row {
        padding: 0.75rem;
    }
    
    .create-job-label {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .plus-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        margin-left: 0.75rem;
    }
    
    .plus-btn:hover {
        background: var(--primary-color);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    /* Adjust hover effect for mobile - remove animations */
    .create-job-trigger-row:hover {
        margin: 0;
        padding: 1rem;
        background: var(--bg-primary);
        border-color: var(--border-color);
    }

    .footer-logo {
        justify-content: center;
    }
    
    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .nav,
    .dashboard-header .header-right,
    .create-job-section,
    .job-actions,
    .action-tabs,
    .action-content {
        display: none;
    }
    
    .dashboard,
    .customer-container {
        padding: 0;
    }
    
    .customer-content {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    /* Print styles - always show form expanded */
    .stats-section {
        display: none;
    }
    
    .create-job-content {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
    }
    
    .create-job-trigger-row {
        border-bottom: 2px solid var(--text-primary);
    }
    
    .plus-btn {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000 !important;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #666 !important;
        border: 2px solid #666;
    }
    
    .status-badge,
    .job-id {
        background: #000 !important;
    }

    .create-job-trigger-row {
        border: 2px solid var(--text-primary);
    }
    
    .plus-btn {
        background: #000 !important;
        color: #fff !important;
        border: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .create-job-content,
    .plus-btn,
    .create-job-trigger-row {
        transition: none;
    }
}

/* Dark mode support (if you plan to add it later) */
@media (prefers-color-scheme: dark) {
    .create-job-trigger-row:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Customer Page Centering Styles */
.customer-content .current-status-section {
    text-align: center;
}

.customer-content .current-status-section h3 {
    display: inline-flex;
    justify-content: center;
}

.customer-content .status-history-section .section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.customer-content .update-count {
    margin-left: 0;
}

.customer-content .status-time {
    justify-content: center;
}

/* Additional styles for editable repair type and improved actions */

/* Editable Repair Type Styles */
.repair-type-container {
    position: relative;
}

.repair-type-display {
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.repair-type-display:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.repair-type-edit {
    background: var(--bg-primary);
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
}

.repair-type-select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.repair-type-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.repair-type-edit .btn {
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Enhanced Quick Action Buttons */
.quick-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    min-height: 36px;
    justify-content: center;
}

.quick-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.quick-action-btn.complete {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.05);
}

.quick-action-btn.complete:hover {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.quick-action-btn.archive {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(108, 117, 125, 0.05);
}

.quick-action-btn.archive:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.quick-action-btn.reactivate {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.quick-action-btn.reactivate:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Success notification styles */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Improved form validation error styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Better focus styles for accessibility */
.repair-type-display:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile improvements for editable repair type */
@media (max-width: 768px) {
    .repair-type-edit {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        padding: 1.5rem;
    }
    
    .repair-type-edit::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 246, 247,);
        z-index: -1;
    }
    
    /* Make the button container use flexbox */
    .repair-type-edit > div:last-child {
        display: flex;
        gap: 12px;
        margin-top: 1rem;
    }
    
    .repair-type-edit .btn {
        flex: 1; /* Equal width buttons */
        min-height: 48px; /* Better touch target */
        padding: 12px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        margin-right: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .repair-type-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 48px;
        border-radius: 8px;
    }
}

/* Status badge improvements */
.status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-completed {
    background: linear-gradient(135deg, #cce7ff 0%, #b8daff 100%);
    color: #0056b3;
    border: 1px solid #b8daff;
}

.status-archived {
    background: linear-gradient(135deg, #e2e3e5 0%, #d1d3d4 100%);
    color: var(--text-secondary);
    border: 1px solid #d1d3d4;
}

/* Enhanced job card interactions */
.job-card {
    transition: all 0.2s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.job-card.expanded {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

/* Better empty state styling */
.repair-type-display:empty::before {
    content: 'Click to add repair type';
    color: var(--text-muted);
    font-style: italic;
}

/* Improved loading states */
.quick-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.quick-action-btn.loading {
    position: relative;
    color: transparent;
}

.quick-action-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Better contrast for better accessibility */
@media (prefers-contrast: high) {
    .repair-type-display {
        border: 2px solid var(--text-primary);
    }
    
    .quick-action-btn {
        border-width: 2px;
        font-weight: var(--font-weight-bold);
    }
    
    .status-active,
    .status-completed,
    .status-archived {
        border-width: 2px;
        font-weight: var(--font-weight-bold);
    }
}

@media (max-width: 768px) {
    .btn {
        justify-content: center !important;
        text-align: center !important;
    }
}


@media (max-width: 768px) {
    .dashboard {
        margin: 0 1rem;     /* Much smaller margins for tablets/mobile */
        padding: 1rem;      /* Also reduce padding a bit */
    }
}

@media (max-width: 480px) {
    .dashboard {
        margin: 0 0.5rem;   /* Even smaller for phones */
        padding: 1rem;
    }
}