/* Helvetica Font - Using system Helvetica with fallbacks */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple-inspired color palette */
    --primary-blue: #007AFF;
    --primary-orange: #FF9500;
    --primary-green: #34C759;
    
    /* Grayscale palette */
    --black: #000000;
    --gray-900: #1C1C1E;
    --gray-800: #2C2C2E;
    --gray-700: #3A3A3C;
    --gray-600: #48484A;
    --gray-500: #636366;
    --gray-400: #8E8E93;
    --gray-300: #C7C7CC;
    --gray-200: #E5E5EA;
    --gray-100: #F2F2F7;
    --white: #FFFFFF;
    
    /* Light mode (default) */
    --bg-primary: var(--gray-100);
    --bg-secondary: var(--white);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --border-color: var(--gray-200);
    
    /* Status colors */
    --status-pending: var(--primary-orange);
    --status-inProgress: var(--primary-blue);
    --status-finished: var(--primary-green);
    
    /* Typography - Helvetica */
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-mono: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Typography weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #1C1C1E;
    --bg-secondary: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: var(--gray-400);
    --border-color: var(--gray-700);
    
    /* Dark theme shadows - lighter for visibility */
    --shadow-sm: 0 1px 2px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 4px 6px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 15px rgba(255, 255, 255, 0.15);
}

/* Dark theme specific adjustments */
[data-theme="dark"] .process-card.status-finished {
    background-color: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.2);
}

[data-theme="dark"] .process-card.status-inProgress {
    background-color: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .process-card.status-pending-waiting {
    background-color: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.2);
}

[data-theme="dark"] .nav-link.active {
    background-color: var(--gray-800);
    color: var(--text-primary);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin: 0;
    transition: color 0.3s ease;
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
    margin-bottom: var(--spacing-md);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-normal);
    margin-bottom: var(--spacing-sm);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-sm);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    margin-bottom: var(--spacing-xs);
}

/* Navbar */
.navbar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
    display: none; /* Hide title, only show logo */
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.nav-logo img,
.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    max-width: 120px;
}

.nav-logo img:not([src]),
.nav-logo img[src=""],
.nav-logo img[src*="undefined"] {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    background-color: var(--bg-primary);
    padding: var(--spacing-xs);
    border-radius: var(--radius-full);
    transition: background-color 0.3s ease;
}

.process-count {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    min-width: 20px;
    text-align: center;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: var(--spacing-sm);
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
}

.dark-mode-toggle:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.05);
}

.dark-mode-icon {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .dark-mode-icon {
    transform: rotate(180deg);
}

/* Digital Clock */
.digital-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 122, 255, 0.2);
    min-width: 180px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .digital-clock {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.08) 100%);
    border-color: rgba(0, 122, 255, 0.3);
}

.clock-time {
    font-family: var(--font-family-mono);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-blue);
    letter-spacing: 2px;
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .clock-time {
    color: #5AC8FA;
    text-shadow: 0 2px 8px rgba(90, 200, 250, 0.4);
}

.clock-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .clock-date {
    color: var(--gray-400);
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header {
    margin-bottom: var(--spacing-xl);
    text-align: left;
    width: 100%;
    padding-left: var(--spacing-lg);
}

.page-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    transition: color 0.3s ease;
}

.page-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 400;
    transition: color 0.3s ease;
}

/* Process List Container */
.process-list-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 900px;
}

.process-list {
    display: grid;
    gap: var(--spacing-md);
}

/* Process Card */
.process-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.process-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.process-number {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.status-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background-color: rgba(255, 149, 0, 0.15);
    color: var(--status-pending);
}

.status-inProgress {
    background-color: rgba(0, 122, 255, 0.15);
    color: var(--status-inProgress);
}

.status-finished {
    background-color: rgba(52, 199, 89, 0.15);
    color: var(--status-finished);
}

.status-pending-waiting {
    background-color: rgba(255, 149, 0, 0.15);
    color: var(--status-pending);
}

.process-card.status-finished {
    background-color: rgba(52, 199, 89, 0.05);
}

[data-theme="dark"] .process-card.status-finished {
    background-color: rgba(52, 199, 89, 0.15);
}

.process-card.status-inProgress {
    background-color: rgba(0, 122, 255, 0.05);
}

[data-theme="dark"] .process-card.status-inProgress {
    background-color: rgba(0, 122, 255, 0.15);
}

.process-card.status-pending-waiting {
    background-color: rgba(255, 149, 0, 0.05);
}

[data-theme="dark"] .process-card.status-pending-waiting {
    background-color: rgba(255, 149, 0, 0.15);
}

.previous-process-notice {
    text-align: right;
    margin-top: var(--spacing-sm);
}

.previous-process-notice span {
    font-size: var(--font-size-xs);
    color: var(--primary-orange);
    background-color: rgba(255, 149, 0, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
}

.process-comment {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background-color: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.comment-icon {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.process-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex: 1;
    overflow: visible;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.detail-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* Loading */
.loading {
    text-align: center;
    padding: var(--spacing-2xl);
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--spacing-md);
    transition: border-color 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
    transition: color 0.3s ease;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
}

/* Process Photos */
.process-photos {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.photo-section {
    margin-bottom: var(--spacing-md);
}

.photo-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.photos-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.process-photo-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: 1px solid var(--border-color);
}

.process-photo-thumbnail:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.photo-more {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.photo-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.photo-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.photo-modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.photo-modal-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.8);
}

.photo-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-modal-prev {
    left: 20px;
}

.photo-modal-next {
    right: 20px;
}

.photo-modal-nav span {
    line-height: 1;
    font-weight: bold;
}

.photo-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
}

.detail-section .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.detail-section .process-photo {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid var(--border-color);
}

.detail-section .process-photo:hover {
    transform: scale(1.05);
}

/* Process Modal */
.process-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

[data-theme="dark"] .process-modal {
    background-color: rgba(0, 0, 0, 0.8);
}

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

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: background-color 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    transition: color 0.3s ease;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.detail-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    transition: color 0.3s ease;
}

.detail-section span {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    transition: color 0.3s ease;
}

.detail-section-overdue {
    background-color: rgba(255, 59, 48, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    border-color: rgba(255, 59, 48, 0.3);
}

[data-theme="dark"] .detail-section-overdue {
    background-color: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .nav-center {
        order: 2;
        width: 100%;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        flex: 1;
        text-align: center;
    }
    
    .nav-right {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    
    .digital-clock {
        min-width: auto;
        flex: 1;
    }
    
    .clock-time {
        font-size: 1.25rem;
    }
    
    .clock-date {
        font-size: 0.7rem;
    }

    .main-content {
        padding: 0 var(--spacing-md);
        margin: var(--spacing-lg) auto;
    }
    
    .page-header h2 {
        font-size: var(--font-size-2xl);
        line-height: var(--line-height-tight);
        letter-spacing: var(--letter-spacing-tight);
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    h4 {
        font-size: var(--font-size-lg);
    }

    .process-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .process-list-container {
        padding: var(--spacing-md);
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.login-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transition: background-color 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.login-header h2 {
    margin: var(--spacing-md) 0 var(--spacing-sm);
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.login-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.form-group input {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.login-button {
    padding: var(--spacing-md);
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #0051D5;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    color: #FF3B30;
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 59, 48, 0.1);
    border-radius: var(--radius-sm);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 999;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar-logo {
    height: 28px;
    width: auto;
}

.sidebar-header h2 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    position: relative;
    font-size: var(--font-size-sm);
}

.sidebar-item:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--primary-blue);
    color: white;
}

.sidebar-text {
    flex: 1;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.sidebar-item .process-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.sidebar-item:not(.active) .process-count {
    background: var(--primary-blue);
    color: white;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-md) 0;
}

.sidebar-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.user-info {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    word-break: break-all;
}

.logout-button {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

[data-theme="dark"] .logout-button:hover {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 200px;
    transition: margin-left 0.3s ease;
}

/* Settings Toggle */
.settings-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.settings-toggle:hover {
    background: var(--bg-primary);
    border-color: var(--primary-blue);
}

.settings-icon {
    font-size: var(--font-size-lg);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.settings-modal.active {
    display: flex;
}

.settings-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.settings-modal-header h2 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.settings-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.settings-group {
    margin-bottom: var(--spacing-lg);
}

.settings-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.settings-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    cursor: pointer;
}

.settings-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.settings-body {
    padding: 0;
}

/* Process Card Clickable */
.process-card {
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.process-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.process-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.process-photo-icon {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    transition: all 0.2s ease;
    user-select: none;
}

.process-photo-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Process Type Pages Scale */
.main-content {
    --process-scale: 1.0;
}

.main-content[style*="--process-scale"] {
    font-size: calc(1rem * var(--process-scale, 1.0));
}

.main-content .process-list-container {
    font-size: calc(1rem * var(--process-scale, 1.0));
}

.main-content .process-card {
    font-size: calc(1rem * var(--process-scale, 1.0));
    padding: calc(var(--spacing-lg) * var(--process-scale, 1.0));
    min-height: calc(140px * var(--process-scale, 1.0));
    overflow: visible;
}

.main-content .process-number {
    font-size: calc(var(--font-size-lg) * var(--process-scale, 1.0));
}

.main-content .status-badge {
    font-size: calc(var(--font-size-xs) * var(--process-scale, 1.0));
    padding: calc(4px * var(--process-scale, 1.0)) calc(12px * var(--process-scale, 1.0));
}

.main-content .process-details {
    font-size: calc(1rem * var(--process-scale, 1.0));
    gap: calc(var(--spacing-md) * var(--process-scale, 1.0));
}

.main-content .detail-item {
    font-size: calc(1rem * var(--process-scale, 1.0));
}

.main-content .process-header {
    font-size: calc(1rem * var(--process-scale, 1.0));
}

.main-content .process-comment {
    font-size: calc(1rem * var(--process-scale, 1.0));
}

/* Dashboard Styles */
.dashboard-container {
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.dashboard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.dashboard-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-card-icon {
    font-size: var(--font-size-2xl);
}

.dashboard-card-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--spacing-sm) 0;
}

.dashboard-card-footer {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.dashboard-chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.dashboard-chart-card h3 {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
}

.dashboard-chart-card canvas {
    max-height: 300px;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.dashboard-stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.dashboard-stat-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Process Filter Buttons */
.process-filter-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
    flex-wrap: wrap;
}

.process-filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: 0;
}

.process-filter-btn.active::before {
    left: 0;
}

.process-filter-btn span {
    position: relative;
    z-index: 1;
}

.process-filter-btn.active {
    color: white !important;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.process-filter-btn.active * {
    color: white !important;
    z-index: 2;
    position: relative;
}

.process-filter-btn:hover:not(.active) {
    background: var(--bg-primary);
    border-color: var(--primary-blue);
    color: var(--text-primary);
}

/* Process Search */
.process-search-container {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.process-search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.process-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Process List Animation */
.process-list-container {
    animation: fadeInUp 0.4s ease-out;
}

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

.process-type-section {
    animation: fadeInUp 0.5s ease-out;
}

.process-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.process-card:nth-child(1) { animation-delay: 0.05s; }
.process-card:nth-child(2) { animation-delay: 0.1s; }
.process-card:nth-child(3) { animation-delay: 0.15s; }
.process-card:nth-child(4) { animation-delay: 0.2s; }
.process-card:nth-child(5) { animation-delay: 0.25s; }
.process-card:nth-child(n+6) { animation-delay: 0.3s; }

/* Calendar Styles */
.calendar-container {
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.calendar-nav-button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-button:hover {
    background: var(--bg-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.calendar-day-header {
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--spacing-sm);
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day.weekend {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .calendar-day.weekend {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
}

.calendar-day.holiday {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.3);
}

[data-theme="dark"] .calendar-day.holiday {
    background: rgba(255, 149, 0, 0.15);
    border-color: rgba(255, 149, 0, 0.4);
}

.calendar-day.weekend.holiday {
    background: rgba(255, 149, 0, 0.12);
    border-color: rgba(255, 149, 0, 0.35);
}

[data-theme="dark"] .calendar-day.weekend.holiday {
    background: rgba(255, 149, 0, 0.18);
    border-color: rgba(255, 149, 0, 0.45);
}

.calendar-day:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-blue);
}

.calendar-day.weekend:hover {
    background: rgba(0, 122, 255, 0.1);
}

[data-theme="dark"] .calendar-day.weekend:hover {
    background: rgba(0, 122, 255, 0.15);
}

.calendar-day.holiday:hover {
    background: rgba(255, 149, 0, 0.15);
}

[data-theme="dark"] .calendar-day.holiday:hover {
    background: rgba(255, 149, 0, 0.2);
}

.calendar-day-holiday {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
}

.calendar-day.today {
    border-color: var(--primary-blue);
    border-width: 2px;
}

.calendar-day.has-process {
    background: rgba(0, 122, 255, 0.1);
}

.calendar-day-number {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.calendar-day-process-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
}

.calendar-day-holiday {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Vehicles Styles */
.vehicles-search-container {
    padding: var(--spacing-lg) var(--spacing-xl) 0;
    max-width: 1400px;
    margin: 0 auto;
}

.vehicles-search-wrapper {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.vehicles-search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.vehicles-search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}


.vehicles-list-container {
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.vehicles-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.vehicle-list-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.vehicle-list-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.vehicle-list-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.vehicle-list-primary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.vehicle-list-license {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.vehicle-list-vin {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-family: var(--font-family-mono);
}

.vehicle-list-secondary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.vehicle-process-count {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.vehicle-list-arrow {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    font-weight: 300;
}

.vehicle-list-item:hover .vehicle-list-arrow {
    color: var(--primary-blue);
}

/* Responsive - Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicles-list-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
        padding: var(--spacing-sm);
    }
}

/* Vehicle Detail Modal Styles */
.vehicle-detail-modal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

.vehicle-detail-body {
    padding: 0;
}

.vehicle-info-section {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
}

.vehicle-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.vehicle-info-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-info-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.vehicle-vin {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
}

.vehicle-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.vehicle-stat-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.vehicle-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.vehicle-stat-value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.vehicle-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-processes-section {
    padding: var(--spacing-lg);
    max-height: calc(90vh - 400px);
    overflow-y: auto;
}

.vehicle-processes-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

.vehicle-processes-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.vehicle-process-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all 0.2s ease;
}

.vehicle-process-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.vehicle-process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.vehicle-process-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.vehicle-process-number {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.vehicle-process-type {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.vehicle-process-header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.vehicle-process-photo-icon {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.vehicle-process-photo-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.vehicle-process-comment {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    border: 1px solid var(--border-color);
}

.vehicle-process-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.vehicle-process-detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.vehicle-process-detail-item .detail-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Responsive adjustments for vehicle detail modal */
@media (max-width: 768px) {
    .vehicle-detail-modal .modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .vehicle-info-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-process-details {
        grid-template-columns: 1fr;
    }
    
    .vehicle-process-header {
        flex-direction: column;
    }
}
