/* Fleet Management Dashboard Styles */

.fleet-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    min-height: 100vh;
    display: flex;
}

.fleet-container .main-content {
    margin-left: 240px;
    min-height: 100vh;
    flex: 1;
}

/* =====================================================
   ALL VEHICLES PAGE STYLES - FlotaPojazdy
   Używane zarówno przez .all-vehicles-container jak i .fleet-container
   ===================================================== */

/* Page Header Banner for fleet-container */
.fleet-container .page-header-banner {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.3);
}

.fleet-container .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.fleet-container .banner-text {
    flex: 1;
}

.fleet-container .banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fleet-container .banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.fleet-container .banner-actions {
    display: flex;
    gap: 12px;
}

.fleet-container .btn-banner-outline {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fleet-container .btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.fleet-container .btn-banner-primary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: white;
    color: #1b5e20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fleet-container .btn-banner-primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Stats Summary - Improved Cards for fleet-container */
.fleet-container .stats-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.fleet-container .stat-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fleet-container .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.fleet-container .stat-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #94a3b8;
}

.fleet-container .stat-box.active {
    border-color: #1b5e20;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.15);
}

.fleet-container .stat-box.active::before {
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
}

/* Kolory dla kafelków - wyraźne obramowania */
.fleet-container .stat-box.all { 
    border-left: 5px solid #3b82f6; 
    border-color: #93c5fd;
}
.fleet-container .stat-box.all::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fleet-container .stat-box.all.active { border-color: #3b82f6; }

.fleet-container .stat-box.available { 
    border-left: 5px solid #22c55e; 
    border-color: #86efac;
}
.fleet-container .stat-box.available::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.fleet-container .stat-box.available.active { border-color: #22c55e; }

.fleet-container .stat-box.in-use { 
    border-left: 5px solid #f59e0b; 
    border-color: #fcd34d;
}
.fleet-container .stat-box.in-use::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fleet-container .stat-box.in-use.active { border-color: #f59e0b; }

.fleet-container .stat-box.service { 
    border-left: 5px solid #ef4444; 
    border-color: #fca5a5;
}
.fleet-container .stat-box.service::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.fleet-container .stat-box.service.active { border-color: #ef4444; }

.fleet-container .stat-box.costs { 
    border-left: 5px solid #06b6d4; 
    border-color: #67e8f9;
}
.fleet-container .stat-box.costs::before { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.fleet-container .stat-box.costs.active { border-color: #06b6d4; }

.fleet-container .stat-box:hover::before {
    height: 4px;
}

.fleet-container .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
}

.fleet-container .stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 16px;
}

.fleet-container .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.fleet-container .stat-box:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Kolory ikon */
.fleet-container .stat-box.all .stat-icon { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
    color: #2563eb; 
}
.fleet-container .stat-box.available .stat-icon { 
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); 
    color: #16a34a; 
}
.fleet-container .stat-box.in-use .stat-icon { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: #d97706; 
}
.fleet-container .stat-box.service .stat-icon { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: #dc2626; 
}
.fleet-container .stat-box.costs .stat-icon { 
    background: linear-gradient(135deg, #cffafe, #a5f3fc); 
    color: #0891b2; 
}

/* Stat box for Costs - szczególne style */
.fleet-container .stat-box.costs {
    cursor: default;
}

.fleet-container .stat-box.costs .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.fleet-container .stat-box.costs .stat-icon {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: #0891b2;
}

.fleet-container .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}

.fleet-container .stat-change.positive {
    color: #dc2626;
    background: #fee2e2;
}

.fleet-container .stat-change.negative {
    color: #16a34a;
    background: #dcfce7;
}

.fleet-container .stat-change .change-label {
    color: #64748b;
    font-weight: 400;
    font-size: 11px;
    margin-left: 2px;
}

/* Filters Panel for fleet-container */
.fleet-container .filters-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.fleet-container .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fleet-container .filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-container .filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fleet-container .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fleet-container .filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.fleet-container .filter-select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.fleet-container .filter-select:focus {
    outline: none;
    border-color: #1b5e20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.fleet-container .filter-select:hover {
    border-color: #cbd5e1;
}

/* View Toggle for fleet-container */
.fleet-container .view-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.fleet-container .view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.fleet-container .view-btn:hover {
    color: #1b5e20;
}

.fleet-container .view-btn.active {
    background: white;
    color: #1b5e20;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Vehicles Grid for fleet-container */
.fleet-container .vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.fleet-container .vehicle-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #cbd5e1;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fleet-container .vehicle-card:hover {
    border-color: #1b5e20;
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.15);
    transform: translateY(-4px);
}

.fleet-container .vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.fleet-container .vehicle-icon-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.fleet-container .vehicle-card:hover .vehicle-icon-large {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    transform: scale(1.05);
}

.fleet-container .vehicle-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.fleet-container .vehicle-status-badge.available {
    background: #dcfce7;
    color: #16a34a;
}

.fleet-container .vehicle-status-badge.in-use {
    background: #dbeafe;
    color: #2563eb;
}

.fleet-container .vehicle-status-badge.service {
    background: #fef3c7;
    color: #d97706;
}

.fleet-container .vehicle-status-badge.reserved {
    background: #f3e8ff;
    color: #9333ea;
}

.fleet-container .vehicle-info {
    margin-bottom: 16px;
}

.fleet-container .vehicle-model {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.fleet-container .vehicle-reg {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.fleet-container .vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.fleet-container .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fleet-container .detail-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fleet-container .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fleet-container .vehicle-assignment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fleet-container .assignment-avatar {
    width: 36px;
    height: 36px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.fleet-container .assignment-info {
    flex: 1;
}

.fleet-container .assignment-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.fleet-container .assignment-dept {
    font-size: 12px;
    color: #64748b;
}

.fleet-container .vehicle-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.fleet-container .alert-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
}

.fleet-container .alert-mini.warning {
    background: #fffbeb;
    color: #d97706;
    border-left: 3px solid #f59e0b;
}

.fleet-container .alert-mini.danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

.fleet-container .alert-mini.info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 3px solid #3b82f6;
}

.fleet-container .vehicle-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.fleet-container .action-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fleet-container .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fleet-container .action-btn-primary {
    background: #1b5e20;
    color: white;
}

.fleet-container .action-btn-primary:hover {
    background: #2e7d32;
}

.fleet-container .action-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.fleet-container .action-btn-secondary:hover {
    background: #e2e8f0;
}

/* List View for fleet-container */
.fleet-container .vehicles-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
}

.fleet-container .list-header {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 150px 120px;
    gap: 16px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fleet-container .list-row {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 150px 120px;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
    align-items: center;
}

.fleet-container .list-row:hover {
    background: #f8fef9;
}

.fleet-container .list-row:last-child {
    border-bottom: none;
}

.fleet-container .list-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.fleet-container .list-row:hover .list-icon {
    background: #1b5e20;
    color: white;
    transform: scale(1.1);
}

.fleet-container .list-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fleet-container .list-model {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fleet-container .list-reg {
    font-size: 13px;
    color: #64748b;
}

.fleet-container .list-value {
    font-size: 14px;
    color: #1e293b;
}

.fleet-container .list-actions {
    display: flex;
    gap: 8px;
}

.fleet-container .list-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.fleet-container .list-action-btn:hover {
    border-color: #1b5e20;
    color: #1b5e20;
    transform: translateY(-1px);
}

/* Pagination for fleet-container */
.fleet-container .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.fleet-container .pagination-info {
    font-size: 14px;
    color: #64748b;
}

.fleet-container .pagination-controls {
    display: flex;
    gap: 8px;
}

.fleet-container .page-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #64748b;
    min-width: 36px;
    text-align: center;
}

.fleet-container .page-btn:hover:not(:disabled) {
    border-color: #1b5e20;
    color: #1b5e20;
    transform: translateY(-1px);
}

.fleet-container .page-btn.active {
    background: #1b5e20;
    color: white;
    border-color: #1b5e20;
}

.fleet-container .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State for fleet-container */
.fleet-container .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
}

/* Empty State for fleet-container */
.fleet-container .empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fleet-container .empty-state svg {
    margin-bottom: 24px;
}

.fleet-container .empty-state h3 {
    color: #1e293b;
    font-size: 20px;
    margin-bottom: 8px;
}

.fleet-container .empty-state p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Container padding for fleet-container */
.fleet-container .container {
    padding: 32px;
}

/* Responsive for fleet-container stats */
@media (max-width: 1400px) {
    .fleet-container .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .fleet-container .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .fleet-container .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fleet-container .container {
        padding: 16px;
    }

    .fleet-container .stats-summary {
        grid-template-columns: 1fr;
    }

    .fleet-container .filters-grid {
        grid-template-columns: 1fr;
    }

    .fleet-container .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .fleet-container .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .fleet-container .banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .fleet-container .list-header,
    .fleet-container .list-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fleet-container .list-header {
        display: none;
    }
}

.all-vehicles-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    min-height: 100vh;
}

.all-vehicles-container .main-content {
    min-height: 100vh;
    flex: 1;
}

.all-vehicles-container .top-bar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.all-vehicles-container .search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.all-vehicles-container .search-bar input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.all-vehicles-container .search-bar input:focus {
    outline: none;
    border-color: #1b5e20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.15);
}

.all-vehicles-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.all-vehicles-container .top-bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.all-vehicles-container .notification-btn {
    position: relative;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.all-vehicles-container .notification-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.all-vehicles-container .container {
    padding: 32px;
}

/* Page Header Banner - Dark Green like navbar */
.all-vehicles-container .page-header-banner {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.3);
}

.all-vehicles-container .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.all-vehicles-container .banner-text {
    flex: 1;
}

.all-vehicles-container .banner-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.all-vehicles-container .banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.all-vehicles-container .banner-actions {
    display: flex;
    gap: 12px;
}

.all-vehicles-container .btn-banner-outline {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.all-vehicles-container .btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.all-vehicles-container .btn-banner-primary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: white;
    color: #1b5e20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.all-vehicles-container .btn-banner-primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.all-vehicles-container .page-header {
    margin-bottom: 32px;
}

.all-vehicles-container .page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.all-vehicles-container .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.all-vehicles-container .page-subtitle {
    color: #64748b;
    font-size: 14px;
}

.all-vehicles-container .header-actions {
    display: flex;
    gap: 12px;
}

.all-vehicles-container .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.all-vehicles-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.all-vehicles-container .btn-primary {
    background: #1b5e20;
    color: white;
}

.all-vehicles-container .btn-primary:hover {
    background: #2e7d32;
}

.all-vehicles-container .btn-outline {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.all-vehicles-container .btn-outline:hover {
    border-color: #1b5e20;
    color: #1b5e20;
}

/* Stats Summary - Improved Cards */
.all-vehicles-container .stats-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.all-vehicles-container .stat-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.all-vehicles-container .stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.all-vehicles-container .stat-box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: transparent;
}

.all-vehicles-container .stat-box.active {
    border-color: #1b5e20;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.all-vehicles-container .stat-box.active::before {
    background: linear-gradient(90deg, #1b5e20, #2e7d32);
}

.all-vehicles-container .stat-box.all::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.all-vehicles-container .stat-box.available::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.all-vehicles-container .stat-box.in-use::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.all-vehicles-container .stat-box.service::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.all-vehicles-container .stat-box.reserved::before { background: linear-gradient(90deg, #a855f7, #c084fc); }

.all-vehicles-container .stat-box:hover::before {
    height: 4px;
}

.all-vehicles-container .stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
}

.all-vehicles-container .stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 16px;
}

.all-vehicles-container .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.all-vehicles-container .stat-box:hover .stat-icon {
    transform: scale(1.15) rotate(5deg);
}

.all-vehicles-container .stat-box.all .stat-icon { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe); 
    color: #2563eb; 
}
.all-vehicles-container .stat-box.available .stat-icon { 
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); 
    color: #16a34a; 
}
.all-vehicles-container .stat-box.in-use .stat-icon { 
    background: linear-gradient(135deg, #fef3c7, #fde68a); 
    color: #d97706; 
}
.all-vehicles-container .stat-box.service .stat-icon { 
    background: linear-gradient(135deg, #fee2e2, #fecaca); 
    color: #dc2626; 
}
.all-vehicles-container .stat-box.reserved .stat-icon { 
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff); 
    color: #9333ea; 
}

/* Stat box for Costs */
.all-vehicles-container .stat-box.costs {
    cursor: default;
}

.all-vehicles-container .stat-box.costs::before { 
    background: linear-gradient(90deg, #06b6d4, #22d3ee); 
}

.all-vehicles-container .stat-box.costs .stat-icon { 
    background: linear-gradient(135deg, #cffafe, #a5f3fc); 
    color: #0891b2; 
}

.all-vehicles-container .stat-box.costs .stat-value {
    font-size: 24px;
}

.all-vehicles-container .stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.all-vehicles-container .stat-change.positive {
    color: #16a34a;
}

.all-vehicles-container .stat-change.negative {
    color: #dc2626;
}

.all-vehicles-container .stat-change .change-label {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

/* Filters Panel */
.all-vehicles-container .filters-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
}

.all-vehicles-container .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.all-vehicles-container .filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.all-vehicles-container .filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.all-vehicles-container .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.all-vehicles-container .filter-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.all-vehicles-container .filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.all-vehicles-container .filter-select:focus {
    outline: none;
    border-color: #1b5e20;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

.all-vehicles-container .filter-select:hover {
    border-color: #cbd5e1;
}

/* View Toggle */
.all-vehicles-container .view-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.all-vehicles-container .view-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.all-vehicles-container .view-btn:hover {
    color: #1b5e20;
}

.all-vehicles-container .view-btn.active {
    background: white;
    color: #1b5e20;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Loading State */
.all-vehicles-container .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
}

.all-vehicles-container .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #1b5e20;
    border-radius: 50%;
    animation: av-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes av-spin {
    to { transform: rotate(360deg); }
}

/* Vehicles Grid */
.all-vehicles-container .vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.all-vehicles-container .vehicle-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.all-vehicles-container .vehicle-card:hover {
    border-color: #1b5e20;
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.15);
    transform: translateY(-4px);
}

.all-vehicles-container .vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.all-vehicles-container .vehicle-icon-large {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.all-vehicles-container .vehicle-card:hover .vehicle-icon-large {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    transform: scale(1.05);
}

.all-vehicles-container .vehicle-status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.all-vehicles-container .vehicle-status-badge.available {
    background: #dcfce7;
    color: #16a34a;
}

.all-vehicles-container .vehicle-status-badge.in-use {
    background: #dbeafe;
    color: #2563eb;
}

.all-vehicles-container .vehicle-status-badge.service {
    background: #fef3c7;
    color: #d97706;
}

.all-vehicles-container .vehicle-status-badge.reserved {
    background: #f3e8ff;
    color: #9333ea;
}

.all-vehicles-container .vehicle-info {
    margin-bottom: 16px;
}

.all-vehicles-container .vehicle-model {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.all-vehicles-container .vehicle-reg {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.all-vehicles-container .vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.all-vehicles-container .detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-vehicles-container .detail-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-vehicles-container .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.all-vehicles-container .vehicle-assignment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.all-vehicles-container .assignment-avatar {
    width: 36px;
    height: 36px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.all-vehicles-container .assignment-info {
    flex: 1;
}

.all-vehicles-container .assignment-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.all-vehicles-container .assignment-dept {
    font-size: 12px;
    color: #64748b;
}

.all-vehicles-container .vehicle-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.all-vehicles-container .alert-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
}

.all-vehicles-container .alert-mini.warning {
    background: #fffbeb;
    color: #d97706;
    border-left: 3px solid #f59e0b;
}

.all-vehicles-container .alert-mini.danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #ef4444;
}

.all-vehicles-container .alert-mini.info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 3px solid #3b82f6;
}

.all-vehicles-container .vehicle-actions {
    display: flex;
    gap: 8px;
}

.all-vehicles-container .action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.all-vehicles-container .action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.all-vehicles-container .action-btn-primary {
    background: #1b5e20;
    color: white;
}

.all-vehicles-container .action-btn-primary:hover {
    background: #2e7d32;
}

.all-vehicles-container .action-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.all-vehicles-container .action-btn-secondary:hover {
    background: #e2e8f0;
}

/* List View */
.all-vehicles-container .vehicles-list {
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    margin-bottom: 24px;
}

.all-vehicles-container .list-header {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 150px 120px;
    gap: 16px;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.all-vehicles-container .list-row {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 150px 120px;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
    cursor: pointer;
    align-items: center;
}

.all-vehicles-container .list-row:hover {
    background: #f8fef9;
}

.all-vehicles-container .list-row:last-child {
    border-bottom: none;
}

.all-vehicles-container .list-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.all-vehicles-container .list-row:hover .list-icon {
    background: #1b5e20;
    color: white;
    transform: scale(1.1);
}

.all-vehicles-container .list-vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.all-vehicles-container .list-model {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.all-vehicles-container .list-reg {
    font-size: 13px;
    color: #64748b;
}

.all-vehicles-container .list-value {
    font-size: 14px;
    color: #1e293b;
}

.all-vehicles-container .list-actions {
    display: flex;
    gap: 8px;
}

.all-vehicles-container .list-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.all-vehicles-container .list-action-btn:hover {
    border-color: #1b5e20;
    color: #1b5e20;
    transform: translateY(-1px);
}

/* Pagination */
.all-vehicles-container .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.all-vehicles-container .pagination-info {
    font-size: 14px;
    color: #64748b;
}

.all-vehicles-container .pagination-controls {
    display: flex;
    gap: 8px;
}

.all-vehicles-container .page-btn {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #64748b;
    min-width: 36px;
    text-align: center;
}

.all-vehicles-container .page-btn:hover:not(:disabled) {
    border-color: #1b5e20;
    color: #1b5e20;
    transform: translateY(-1px);
}

.all-vehicles-container .page-btn.active {
    background: #1b5e20;
    color: white;
    border-color: #1b5e20;
}

.all-vehicles-container .page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.all-vehicles-container .empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.all-vehicles-container .empty-state svg {
    margin-bottom: 24px;
}

.all-vehicles-container .empty-state h3 {
    color: #1e293b;
    font-size: 20px;
    margin-bottom: 8px;
}

.all-vehicles-container .empty-state p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Responsive - All Vehicles */
@media (max-width: 1400px) {
    .all-vehicles-container .stats-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .all-vehicles-container .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .all-vehicles-container .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .all-vehicles-container .container {
        padding: 16px;
    }

    .all-vehicles-container .stats-summary {
        grid-template-columns: 1fr;
    }

    .all-vehicles-container .filters-grid {
        grid-template-columns: 1fr;
    }

    .all-vehicles-container .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .all-vehicles-container .page-header-top {
        flex-direction: column;
        gap: 16px;
    }

    .all-vehicles-container .list-header,
    .all-vehicles-container .list-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .all-vehicles-container .list-header {
        display: none;
    }
}

/* Animations - All Vehicles */
@keyframes av-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.all-vehicles-container .vehicle-card,
.all-vehicles-container .list-row,
.all-vehicles-container .stat-box {
    animation: av-fadeIn 0.3s ease-out;
}

/* =====================================================
   END OF ALL VEHICLES PAGE STYLES
   ===================================================== */

/* Sidebar Styles */
.fleet-container .sidebar,
.flota-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #1e3a2e 0%, #16291f 100%);
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
}

.fleet-container .sidebar-header,
.flota-sidebar .sidebar-header {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fleet-container .sidebar-logo,
.flota-sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.fleet-container .sidebar-logo svg,
.flota-sidebar .sidebar-logo svg {
    width: 28px;
    height: 28px;
}

.fleet-container .nav-section,
.flota-sidebar .nav-section {
    margin-top: 25px;
}

.fleet-container .nav-section-title,
.flota-sidebar .nav-section-title {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.fleet-container .nav-item,
.flota-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    position: relative;
    cursor: pointer;
}

.fleet-container .nav-item:hover,
.flota-sidebar .nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.fleet-container .nav-item.active,
.flota-sidebar .nav-item.active {
    background: rgba(76,175,80,0.2);
    color: #4caf50;
    font-weight: 600;
}

.fleet-container .nav-item.active::before,
.flota-sidebar .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #4caf50;
    border-radius: 0 4px 4px 0;
}

.fleet-container .nav-badge,
.flota-sidebar .nav-badge {
    margin-left: auto;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Main Content */
.fleet-container .main-content {
    margin-left: 240px;
    min-height: 100vh;
}

/* Top Bar */
.fleet-container .top-bar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
}

.fleet-container .btn-back-modules {
    position: relative;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fleet-container .btn-back-modules:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.fleet-container .search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.fleet-container .search-bar input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.fleet-container .search-bar input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

.fleet-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.fleet-container .top-bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.fleet-container .notification-btn {
    position: relative;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fleet-container .notification-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.fleet-container .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content Wrapper */
.fleet-container .content-wrapper {
    padding: 32px;
}

/* Dashboard Header Banner - ciemny zielony z białym tekstem */
.fleet-container .page-header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.3);
}

.fleet-container .page-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fleet-container .page-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* KPI Grid */
.fleet-container .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.fleet-container .kpi-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.fleet-container .kpi-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.fleet-container .kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.fleet-container .kpi-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fleet-container .kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fleet-container .kpi-icon.green { background: linear-gradient(135deg, #4caf50 0%, #45a049 100%); }
.fleet-container .kpi-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.fleet-container .kpi-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.fleet-container .kpi-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.fleet-container .kpi-icon.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.fleet-container .kpi-icon.teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }

.fleet-container .kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.fleet-container .kpi-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.fleet-container .kpi-change.positive { color: #22c55e; }
.fleet-container .kpi-change.negative { color: #ef4444; }
.fleet-container .kpi-change.neutral { color: #64748b; }

/* Content Grid */
.fleet-container .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Card Styles */
.fleet-container .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.fleet-container .card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fleet-container .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.fleet-container .card-actions {
    display: flex;
    gap: 8px;
}

.fleet-container .btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fleet-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fleet-container .btn-primary {
    background: #4caf50;
    color: white;
}

.fleet-container .btn-primary:hover {
    background: #45a049;
}

.fleet-container .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.fleet-container .btn-secondary:hover {
    background: #e2e8f0;
}

.fleet-container .card-body {
    padding: 24px;
}

/* Vehicle List */
.fleet-container .vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fleet-container .vehicle-item {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
    gap: 16px;
    margin-bottom: 0;
    background: white;
}

.fleet-container .vehicle-item:hover {
    border-color: #4caf50;
    background: #f8fef9;
    transform: translateX(4px);
}

.fleet-container .vehicle-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.fleet-container .vehicle-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.25);
}

.fleet-container .vehicle-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.fleet-container .vehicle-item:hover .vehicle-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.35);
}

.fleet-container .vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
    padding: 4px 0;
    padding-right: 16px;
    overflow: hidden;
}

.fleet-container .vehicle-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-container .vehicle-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleet-container .vehicle-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fleet-container .status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.fleet-container .status-badge.available { background: #dcfce7; color: #16a34a; }
.fleet-container .status-badge.in-use { background: #dbeafe; color: #2563eb; }
.fleet-container .status-badge.service { background: #fef3c7; color: #d97706; }
.fleet-container .status-badge.alert { background: #fee2e2; color: #dc2626; }

/* Alert List */
.fleet-container .alert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fleet-container .alert-item {
    padding: 14px 16px;
    border-left: 4px solid;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
}

.fleet-container .alert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fleet-container .alert-item.warning { background: #fef3c7; border-color: #f59e0b; }
.fleet-container .alert-item.danger { background: #fee2e2; border-color: #ef4444; }
.fleet-container .alert-item.info { background: #dbeafe; border-color: #3b82f6; }

.fleet-container .alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.fleet-container .alert-content {
    flex: 1;
}

.fleet-container .alert-content h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fleet-container .alert-content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.fleet-container .alert-time {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}

/* Full Width Card */
.fleet-container .full-width-card {
    grid-column: 1 / -1;
}

/* Quick Actions */
.fleet-container .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.fleet-container .quick-action-btn {
    padding: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.fleet-container .quick-action-btn:hover {
    border-color: #4caf50;
    background: #f8fef9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.15);
}

.fleet-container .quick-action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fleet-container .quick-action-btn:hover .quick-action-icon {
    background: #4caf50;
    color: white;
    transform: scale(1.1);
}

.fleet-container .quick-action-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Loading & Empty States */
.fleet-container .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.fleet-container .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fleet-container .loading-spinner p {
    margin-top: 16px;
    color: #6b7280;
    font-size: 14px;
}

.fleet-container .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .fleet-container .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fleet-container .sidebar {
        transform: translateX(-100%);
    }

    .fleet-container .main-content {
        margin-left: 0;
    }

    .fleet-container .kpi-grid {
        grid-template-columns: 1fr;
    }

    .fleet-container .content-wrapper {
        padding: 16px;
    }

    .fleet-container .top-bar {
        padding: 12px 16px;
    }

    .fleet-container .search-bar {
        max-width: 100%;
    }

    .fleet-container .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fleet-container .kpi-card,
.fleet-container .card,
.fleet-container .vehicle-item,
.fleet-container .alert-item {
    animation: fadeIn 0.3s ease-out;
}

/* =====================================================
   VEHICLE DETAILS PAGE - FlotaSzczegolyPojazdu
   ===================================================== */

.vehicle-details-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.vehicle-details-page .loading-container,
.vehicle-details-page .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.vehicle-details-page .loading-container .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #1b5e20;
    border-radius: 50%;
    animation: vd-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes vd-spin {
    to { transform: rotate(360deg); }
}

.vehicle-details-page .error-container h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.vehicle-details-page .error-container p {
    color: #64748b;
    margin-bottom: 24px;
}

/* Header Section */
.vehicle-details-page .page-header {
    margin-bottom: 24px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.vehicle-details-page .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vehicle-details-page .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-details-page .btn-back:hover {
    border-color: #1b5e20;
    color: #1b5e20;
    transform: translateX(-4px);
}

.vehicle-details-page .header-actions {
    display: flex;
    gap: 12px;
}

.vehicle-details-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.vehicle-details-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vehicle-details-page .btn-outline {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.vehicle-details-page .btn-outline:hover {
    border-color: #1b5e20;
    color: #1b5e20;
}

.vehicle-details-page .btn-primary {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
}

.vehicle-details-page .btn-primary:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
}

/* Vehicle Hero Card */
.vehicle-details-page .vehicle-hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: white;
    box-shadow: 0 8px 32px rgba(27, 94, 32, 0.3);
    margin-bottom: 32px;
}

.vehicle-details-page .hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vehicle-details-page .hero-info {
    flex: 1;
    min-width: 0;
}

.vehicle-details-page .hero-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.vehicle-details-page .hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 500;
    color: white !important;
}

.vehicle-details-page .hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vehicle-details-page .status-badge,
.vehicle-details-page .ownership-badge,
.vehicle-details-page .year-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-details-page .status-badge.available { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.vehicle-details-page .status-badge.in-use { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.vehicle-details-page .status-badge.service { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.vehicle-details-page .status-badge.reserved { background: rgba(168, 85, 247, 0.25); color: #c4b5fd; }

.vehicle-details-page .ownership-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.vehicle-details-page .year-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.vehicle-details-page .hero-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.vehicle-details-page .hero-stat {
    text-align: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 100px;
}

.vehicle-details-page .hero-stat .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: white !important;
}

.vehicle-details-page .hero-stat .stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    margin-top: 2px;
}

/* Content Grid */
.vehicle-details-page .content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.vehicle-details-page .main-column,
.vehicle-details-page .side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Info Cards */
.vehicle-details-page .info-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.vehicle-details-page .info-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.vehicle-details-page .info-card.has-alerts {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.vehicle-details-page .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfc;
}

.vehicle-details-page .card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.vehicle-details-page .card-icon.tech { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.vehicle-details-page .card-icon.tires { background: linear-gradient(135deg, #64748b, #475569); }
.vehicle-details-page .card-icon.service { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vehicle-details-page .card-icon.notes { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vehicle-details-page .card-icon.user { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.vehicle-details-page .card-icon.dates { background: linear-gradient(135deg, #ef4444, #dc2626); }
.vehicle-details-page .card-icon.finance { background: linear-gradient(135deg, #10b981, #059669); }
.vehicle-details-page .card-icon.limits { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.vehicle-details-page .card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.vehicle-details-page .card-body {
    padding: 20px;
}

/* Info Grid */
.vehicle-details-page .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vehicle-details-page .info-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vehicle-details-page .info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.vehicle-details-page .info-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.vehicle-details-page .info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vehicle-details-page .info-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.vehicle-details-page .info-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.vehicle-details-page .info-value.highlight {
    color: #1b5e20;
    font-weight: 700;
}

.vehicle-details-page .info-value.mono {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* User Assignment */
.vehicle-details-page .user-assignment {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
}

.vehicle-details-page .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.vehicle-details-page .user-info {
    flex: 1;
    min-width: 0;
}

.vehicle-details-page .user-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.vehicle-details-page .user-dept {
    font-size: 12px;
    color: #64748b;
}

/* Deadline List */
.vehicle-details-page .deadline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-details-page .deadline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.vehicle-details-page .deadline-item.ok {
    background: #f0fdf4;
}

.vehicle-details-page .deadline-item.ok .deadline-icon {
    color: #22c55e;
}

.vehicle-details-page .deadline-item.alert {
    background: #fef2f2;
}

.vehicle-details-page .deadline-item.alert .deadline-icon {
    color: #ef4444;
}

.vehicle-details-page .deadline-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vehicle-details-page .deadline-info {
    flex: 1;
    min-width: 0;
}

.vehicle-details-page .deadline-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: block;
}

.vehicle-details-page .deadline-date {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.vehicle-details-page .deadline-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.vehicle-details-page .deadline-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.vehicle-details-page .deadline-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Finance List */
.vehicle-details-page .finance-list {
    display: flex;
    flex-direction: column;
}

.vehicle-details-page .finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vehicle-details-page .finance-item:last-child {
    border-bottom: none;
}

.vehicle-details-page .finance-label {
    font-size: 12px;
    color: #64748b;
}

.vehicle-details-page .finance-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.vehicle-details-page .finance-value.highlight {
    color: #1b5e20;
    font-size: 14px;
    font-weight: 700;
}

/* KM Limit Display */
.vehicle-details-page .km-limit-display {
    text-align: center;
}

.vehicle-details-page .km-current {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
}

.vehicle-details-page .km-limit {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.vehicle-details-page .km-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.vehicle-details-page .km-bar {
    height: 100%;
    background: linear-gradient(90deg, #1b5e20, #4caf50);
    border-radius: 3px;
}

/* Notes */
.vehicle-details-page .notes-text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    padding: 14px;
    background: #fffbeb;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

/* Responsive */
@media (max-width: 1200px) {
    .vehicle-details-page .content-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-details-page .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vehicle-details-page {
        padding: 16px;
    }

    .vehicle-details-page .vehicle-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .vehicle-details-page .hero-stats {
        width: 100%;
        justify-content: center;
    }

    .vehicle-details-page .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .vehicle-details-page .header-actions {
        justify-content: center;
    }

    .vehicle-details-page .info-grid,
    .vehicle-details-page .info-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

@media print {
    .vehicle-details-page {
        background: white;
        padding: 0;
    }

    .vehicle-details-page .btn-back,
    .vehicle-details-page .header-actions {
        display: none !important;
    }

    .vehicle-details-page .info-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

/* =====================================================
   IMPORT EXCEL MODAL STYLES
   ===================================================== */

/* Quick action button highlight for import */
.fleet-container .quick-action-btn.import-highlight {
    border: 2px solid #1b5e20;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.fleet-container .quick-action-btn.import-highlight:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(27, 94, 32, 0.25);
}

.fleet-container .quick-action-btn.import-highlight .import-icon {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
}

.fleet-container .quick-action-btn.import-highlight .quick-action-label small {
    color: #64748b;
    font-size: 10px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Import Modal */
.import-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.import-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
}

.import-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.close-modal-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.import-modal-body {
    padding: 28px;
    max-height: 60vh;
    overflow-y: auto;
}

.import-info {
    text-align: center;
    margin-bottom: 24px;
}

.import-info .info-icon {
    margin-bottom: 16px;
}

.import-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.import-info p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Dropzone */
.dropzone {
    position: relative;
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8fafc;
}

.dropzone:hover,
.dropzone.dragging {
    border-color: #1b5e20;
    background: #f0fdf4;
}

.dropzone.dragging {
    transform: scale(1.02);
}

.dropzone .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-content {
    pointer-events: none;
}

.dropzone-content p {
    margin: 8px 0;
    color: #64748b;
}

.dropzone-content p strong {
    color: #1e293b;
}

.dropzone-content .file-types {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* Selected File */
.selected-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
    margin-top: 16px;
}

.selected-file span {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
}

.remove-file-btn {
    background: #fee2e2;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    transition: all 0.2s;
}

.remove-file-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* Processing State */
.import-processing {
    text-align: center;
    padding: 48px 24px;
}

.spinner-large {
    width: 64px;
    height: 64px;
    border: 5px solid #e2e8f0;
    border-top-color: #1b5e20;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

.import-processing h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.import-processing p {
    color: #64748b;
    margin: 0;
}

/* Import Results */
.import-results {
    animation: fadeIn 0.3s ease;
}

.results-header {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.results-header.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.results-header.has-errors {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.results-header h3 {
    margin: 12px 0 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
}

.stat-item.success { background: #dcfce7; }
.stat-item.warning { background: #fef3c7; }
.stat-item.info { background: #dbeafe; }

.stat-item .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-details, .results-errors {
    margin-top: 16px;
}

.results-details h4, .results-errors h4 {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 12px 0;
}

.updated-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.updated-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f0fdf4;
    border-radius: 8px;
}

.updated-item .reg-number {
    font-weight: 700;
    color: #1b5e20;
    font-family: 'SF Mono', monospace;
}

.updated-item .arrow {
    color: #94a3b8;
}

.updated-item .new-mileage {
    font-weight: 600;
    color: #1e293b;
}

.more-items {
    padding: 8px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.errors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.error-item {
    padding: 6px 12px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
}

.more-errors {
    padding: 6px 12px;
    color: #64748b;
    font-size: 13px;
}

/* Modal Footer */
.import-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.import-modal-footer button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cancel {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-cancel:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-import {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border: none;
    color: white;
}

.btn-import:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

.btn-import:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-close {
    background: #1b5e20;
    border: none;
    color: white;
}

.btn-close:hover {
    background: #2e7d32;
}

.btn-import-another {
    background: white;
    border: 1px solid #1b5e20;
    color: #1b5e20;
}

.btn-import-another:hover {
    background: #f0fdf4;
}

/* =====================================================
   END OF IMPORT EXCEL MODAL STYLES
   ===================================================== */

/* =====================================================
   ACCESS DENIED STYLES
   ===================================================== */
.access-denied-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f5f7fa;
    padding: 24px;
}

.access-denied-card {
    background: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.access-denied-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.access-denied-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.access-denied-card p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.access-denied-card .btn {
    margin-top: 24px;
    padding: 14px 28px;
    font-size: 16px;
}

/* =====================================================
   END OF ACCESS DENIED STYLES
   ===================================================== */

/* =====================================================
   END OF VEHICLE DETAILS PAGE STYLES
   ===================================================== */

/* =====================================================
   NO VEHICLE ASSIGNED BANNER - Auto Służbowe
   ===================================================== */

.fleet-container .no-vehicle-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.fleet-container .no-vehicle-banner:hover {
    border-color: #94a3b8;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
}

.fleet-container .no-vehicle-banner .banner-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fleet-container .no-vehicle-banner .banner-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.fleet-container .no-vehicle-banner .banner-content p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.fleet-container .no-vehicle-banner .banner-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #475569;
}

/* =====================================================
   END OF NO VEHICLE ASSIGNED BANNER
   ===================================================== */

