/* Renault Portal Styles */

:root {
    /* Renault kleuren */
    --renault-blue: #0069b4;
    --renault-yellow: #EFDF00;
    --renault-black: #000000;
    --renault-white: #FFFFFF;
    
    /* Bootstrap overrides */
    --bs-primary: #0069b4;
    --bs-primary-rgb: 0, 105, 180;
    --bs-secondary: #6c757d;
    --bs-dark: #000000;
}

/* Import Assistant font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700&display=swap');

body {
    font-family: 'Assistant', Arial, Helvetica, sans-serif;
    background-color: #ffffff;
}

/* Header styling */
header {
    box-shadow: none;
    border-bottom: 1px solid #e5e5e5;
}

/* Header navigation styling */
.header-nav {
    display: flex;
    align-items: center;
}

.header-nav .nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header-nav .nav-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.header-nav .nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.logo {
    max-width: 150px;
}

/* Main content area */
.selection-panel {
    margin-bottom: 2rem;
}

.selection-panel .card {
    border: none;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
    background-color: #ffffff;
    border-radius: 0;
}

.selection-panel .card-body {
    padding: 0;
}

/* Minimal styling for selection items */
.vehicle-card, .quality-card, .part-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    background-color: #ffffff;
    box-shadow: none;
}

.clickable-card {
    position: relative;
    overflow: hidden;
}

.clickable-card:hover {
    border-color: var(--renault-blue);
}

.vehicle-card:hover, .quality-card:hover, .part-card:hover {
    border-color: #e5e5e5;
    box-shadow: none;
    transform: scale(1.02);
}

.vehicle-card.selected, .quality-card.selected, .part-card.selected {
    border-color: var(--renault-blue);
    background-color: #ffffff;
    border-width: 2px;
}

/* Price indicator in quality cards */
.price {
    font-weight: normal;
    font-size: 1rem;
    text-align: center;
    color: #666;
}

/* Cart styling */
.cart-panel .card {
    border: 1px solid #e5e5e5;
    box-shadow: none;
    background-color: #ffffff;
}

.cart-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.remove-item {
    cursor: pointer;
    color: #dc3545;
}

.remove-item:hover {
    color: #bd2130;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.accordion-button {
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--renault-blue);
    outline: none;
}

.accordion-button.completed {
    background-color: #ffffff;
    color: #198754;
}

.accordion-button.completed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23198754' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 8l2 2 5-5'/%3e%3c/svg%3e");
}

.accordion-button::after {
    margin-left: 10px;
}

/* Button styling */
.btn-primary {
    background-color: #000000;
    border-color: #000000;
    border-radius: 2px;
    box-shadow: none;
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #333333;
    border-color: #333333;
    box-shadow: none;
    color: #ffffff;
}

.btn-primary:disabled {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    opacity: 0.5;
}

/* Order header styling */
.order-header {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 2px;
    box-shadow: none;
}

/* Utility classes */
.sticky-top {
    top: 20px;
    z-index: 100;
}

/* Clean accordion styling */
.accordion-item {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background-color: #ffffff;
    margin-bottom: 0;
}

.accordion-item:first-of-type {
    border-top: none;
}

.accordion-item:last-of-type {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-body {
    background-color: #ffffff;
    padding: 2rem;
}

/* Quality card headers */
.quality-card .card-header {
    background-color: #ffffff !important;
    color: #333 !important;
    border-bottom: 1px solid #e5e5e5;
}

/* Remove Bootstrap card shadows and borders */
.card {
    box-shadow: none;
    border: none;
    border-radius: 0;
}

/* Simplify form elements */
.form-control {
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--renault-blue);
    box-shadow: none;
    outline: none;
}

/* Clean order summary styling */
.order-summary-clean {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 1.5rem;
    border-radius: 0;
}

.order-summary-clean h4 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

/* Cart preview styling */
.cart-preview {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    padding: 1rem;
    border-radius: 4px;
}

.cart-preview-item {
    border-bottom: 1px solid #e5e5e5;
}

.cart-preview-item:last-child {
    border-bottom: none;
}

.cart-preview-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd !important;
}

/* Vehicle list styling */
.vehicle-list-container {
    background-color: #ffffff;
}

.vehicle-list-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.vehicle-item {
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}

.vehicle-item:hover {
    background-color: #f8f9fa;
}

.vehicle-item:last-child {
    border-bottom: none;
}

.vehicle-item .input-group .btn {
    border-color: #e5e5e5;
}

.vehicle-item .quantity-input {
    border-left: none;
    border-right: none;
    background-color: #ffffff;
}

.price-per-piece {
    color: #666;
    font-size: 0.9rem;
}

.total-price {
    font-size: 1.1rem;
}

/* Remove item button styling */
.remove-item-btn {
    border: none;
    background-color: transparent;
    color: #666;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.remove-item-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .cart-panel .card.sticky-top {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .selection-panel {
        margin-bottom: 1rem;
    }
}

/* Mobile floating cart button */
.mobile-cart-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--renault-blue);
    color: white;
    box-shadow: none;
    border: 1px solid var(--renault-blue);
}

@media (max-width: 991.98px) {
    .mobile-cart-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cart-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .cart-panel.show {
        transform: translateY(0);
    }
}

/* Animation for cart updates */
@keyframes highlight {
    0% {
        border-color: var(--renault-blue);
    }
    100% {
        border-color: #e5e5e5;
    }
}

.highlight {
    animation: highlight 1s ease;
}