/* My Garage Off-Canvas Panel */

/* Overlay */
.vpc-garage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vpc-garage-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Off-Canvas Panel */
.vpc-garage-offcanvas {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.vpc-garage-offcanvas.active {
    right: 0;
}

/* Header */
.vpc-offcanvas-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.vpc-offcanvas-title {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}



.vpc-vehicle-count {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
}

.vpc-offcanvas-close {
    background: transparent;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.vpc-offcanvas-close:hover {
    background: #e0e0e0;
    color: #000;
}

/* Body */
.vpc-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f1f5f9;
}

/* Empty State */
.vpc-empty-garage-state {
    text-align: center;
    padding: 40px 20px;
}

.vpc-empty-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.3;
}

.vpc-empty-icon svg {
    max-width: 200px;
}

.vpc-empty-message {
    font-size: 1.1em;
    color: #666;
    margin: 0 0 10px 0;
}

.vpc-empty-hint {
    font-size: 0.9em;
    color: #999;
    line-height: 1.5;
}

/* Vehicle List */
.vpc-vehicles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Vehicle Card */
.vpc-vehicle-card {
    position: relative;
    background: #fff;
    transition: all 0.3s;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    -webkit-box-shadow: 1px 2px 4px rgba(33, 37, 41, 0.05);
    box-shadow: 1px 2px 4px rgba(33, 37, 41, 0.05);
}

.vpc-vehicle-card:hover {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vpc-vehicle-card.active {
    border-color: #00a32a;
    background: #f0faf3;
}

.vpc-vehicle-main {
    margin-bottom: 12px;
    /* position: relative; */
}

.vpc-vehicle-nickname {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vpc-vehicle-details-small {
    font-size: 0.9em;
    color: #666;
}

.vpc-vehicle-name-main {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vpc-vehicle-year-badge {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.vpc-active-indicator {
    display: inline-block;
    background: #00a32a;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 5px;
}

/* Actions Row */
.vpc-vehicle-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: end;
    justify-content: space-between;
}

.vpc-action-btn {
    /* flex: 1; */
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.vpc-shop-btn {
    background: #007cba;
    color: #fff;
}

.vpc-shop-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.vpc-set-active-btn {
    background: #f0f0f0;
    color: #333;
}

.vpc-set-active-btn:hover {
    background: #ffc107;
    color: #000;
}

.vpc-delete-btn {
    /* background: #f0f0f0; */
    color: #b32d2e;
    flex: 0 0 auto;
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0;
    border: 0;
    background: none;
    height: auto;
    border-radius: 50%;
}

.vpc-delete-btn:hover {
    background: #d63638;
    color: #fff;
}

.vpc-btn-icon {
    font-size: 1.1em;
}

.vpc-btn-text {
    display: inline;
}

/* Meta Info */
.vpc-vehicle-meta-small {
    font-size: 0.75em;
    color: #999;
    text-align: right;
}

/* Footer */
.vpc-offcanvas-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.vpc-footer-info small {
    color: #666;
    font-size: 0.85em;
}

/* Floating Toggle Button */
/* .vpc-garage-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #007cba;
    color: #fff;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    cursor: pointer;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: all 0.3s;
} */

.vpc-garage-toggle {
    color: #fff;
    border: 0;
    background: #df0024;
    padding: 4px 1rem !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding-left: 15px !important;
    cursor: pointer !important;
    min-height: 52px;
}

.vpc-garage-toggle svg {
    width: 24px;
    height: 24px;
}

.vpc-garage-toggle:not(.active-car) svg path {
    fill: #fff;
}

.active-car .vpc-garage-icon {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-car .vpc-garage-icon svg {
    width: 20px;
    height: 20px;
}

.active-car .vpc-garage-text {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.active-car .vpc-garage-text>span:first-child {
    width: 100%;
    text-transform: uppercase;
}

.vpc-garage-image {}

.vpc-garage-image img {
    background: white;
    border-radius: 8px;
    height: 44px;
    object-fit: contain;
    padding: 2px;
    width: 44px;
}

.vpc-garage-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d63638;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6em;
    font-weight: 600;
    border: 2px solid #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .vpc-garage-offcanvas {
        right: -100%;
        width: 100%;
    }

    .vpc-garage-offcanvas.active {
        right: 0;
    }

    .vpc-btn-text {
        display: none;
    }

    .vpc-action-btn {
        padding: 8px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}