/* ============================================================================
   CUSTOM STYLES - Bob Smith BMW/MINI
   ============================================================================ */

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    max-width: 450px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes logo white */
}

.login-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.login-body {
    padding: 40px 30px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    margin: 0 auto;
}

.login-form-heading {
    color: #495057;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.login-form-heading i {
    color: #0d6efd;
    margin-right: 8px;
}

.login-form .form-control,
.login-form .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form .form-control:focus,
.login-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.login-form .input-group-text {
    background: white;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #6c757d;
}

.login-form .input-group .form-control {
    border-left: none;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #0d6efd;
    color: #0d6efd;
}

.login-form .input-group:focus-within .form-control {
    border-color: #0d6efd;
}

.btn-login {
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    border-radius: 4px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.privacy-notice {
    background: #ffffff;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 25px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.privacy-notice i {
    color: #0d6efd;
    margin-right: 8px;
}

.alert-lockout {
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
    width: 100%;
    max-width: 420px;
}

.alert-lockout i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.login-body .alert-danger {
    width: 100%;
    max-width: 420px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.login-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.login-footer small {
    color: #6c757d;
    display: block;
    margin-top: 10px;
}

.week-badge {
    background: white;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Inventory Color Scheme */
.inventory-new .card-header {
    background-color: #0d6efd !important;
    color: white;
}
.inventory-new {
    border-color: #0d6efd;
    border-width: 2px;
}

.inventory-punched .card-header {
    background-color: #0a3d6e !important;
    color: white;
}
.inventory-punched {
    border-color: #0a3d6e;
    border-width: 2px;
}

.inventory-lc .card-header {
    background-color: #6f42c1 !important;
    color: white;
}
.inventory-lc {
    border-color: #6f42c1;
    border-width: 2px;
}

.inventory-mso .card-header {
    background-color: #198754 !important;
    color: white;
}
.inventory-mso {
    border-color: #198754;
    border-width: 2px;
}

.inventory-cpo .card-header {
    background-color: #dc3545 !important;
    color: white;
}
.inventory-cpo {
    border-color: #dc3545;
    border-width: 2px;
}

.inventory-used .card-header {
    background-color: #ffc107 !important;
    color: #000;
}
.inventory-used {
    border-color: #ffc107;
    border-width: 2px;
}

.inventory-offmake .card-header {
    background-color: #f8f9fa !important;
    color: #000;
    border-bottom: 1px solid #dee2e6;
}
.inventory-offmake {
    border-color: #dee2e6;
    border-width: 2px;
}

/* General card styling */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-body {
        padding: 30px 20px;
    }
    
    .login-header {
        padding: 30px 20px 20px;
    }
}

/* ============================================================================
   VERIFICATION PAGE STYLES
   ============================================================================ */

/* Verification code input - large and spaced */
.verification-code-input {
    letter-spacing: 0.5em;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Alert icons */
.alert i.bi {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Attempt badge */
.alert .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

/* Security footer text */
.login-footer .bi-lock-fill {
    color: #198754;
    margin-right: 5px;
}

/* Success alert customization */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-success .bi {
    color: #198754;
}

/* Warning alert customization */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-warning .bi {
    color: #ffc107;
}

/* Danger alert customization */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-danger .bi {
    color: #dc3545;
}

/* ============================================================================
   NDA PAGE STYLES
   ============================================================================ */

.nda-content {
    text-align: left;
    line-height: 1.8;
}

.nda-content h5 {
    color: #1e3c72;
    font-weight: 600;
    margin-top: 1rem;
}

.nda-content p {
    color: #495057;
    margin-bottom: 1rem;
}

.nda-content hr {
    border-top: 2px solid #e9ecef;
}

/* NDA buttons */
.btn-lg {
    padding: 14px 24px;
    font-size: 1.1rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-lg i {
    margin-right: 8px;
}

.btn.disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* NDA Checkbox */
.form-check {
    padding-left: 2rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* ============================================================================
   BRAND SELECTION (FORK) PAGE STYLES
   ============================================================================ */

.brand-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.brand-card .card-body {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.brand-logo-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card .btn {
    transition: all 0.2s ease;
}

.brand-card:hover .btn {
    transform: scale(1.05);
}

/* Navigation bar customization */
.navbar-dark .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   BMW/MINI INVENTORY CARDS - COLOR CODED
   ============================================================================ */

.inventory-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    overflow: hidden;
    position: relative;
}

.inventory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.inventory-card .card-body {
    color: #333;
}

.inventory-card .card-title,
.inventory-card .display-4 {
    color: #333;
}

/* Colored header strip at top of card */
.card-header-color {
    height: 12px;
    width: 100%;
    display: block;
    position: relative;
    top: 0;
    left: 0;
}

/* ALL - Gray */
.inventory-card[data-theme="all"] .card-header-color {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

/* NEW - Blue */
.inventory-card[data-theme="new"] .card-header-color {
    background: linear-gradient(135deg, #0dcaf0 0%, #0a58ca 100%);
}

/* PUNCHED - Dark Blue */
.inventory-card[data-theme="punched"] .card-header-color {
    background: linear-gradient(135deg, #0d6efd 0%, #002a5c 100%);
}

/* MSO - Green */
.inventory-card[data-theme="mso"] .card-header-color {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

/* LC - Purple */
.inventory-card[data-theme="lc"] .card-header-color {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* CPO - Red */
.inventory-card[data-theme="cpo"] .card-header-color {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

/* USED - Yellow/Gold */
.inventory-card[data-theme="used"] .card-header-color {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

/* OFFMAKE - Gray with border */
.inventory-card[data-theme="offmake"] {
    border: 2px solid #dee2e6 !important;
}

.inventory-card[data-theme="offmake"] .card-header-color {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
}

/* jQuery UI Autocomplete styling for Bootstrap */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050 !important;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ui-menu-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

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

.ui-state-active {
    background-color: #0d6efd !important;
    color: white !important;
    border: none !important;
}

/* ============================================================================
   RESULTS PAGE (VEHICLE CARDS) - COLOR CODED
   ============================================================================ */

/* Section Header - Sticky */
.section-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 56px; /* Below the navbar */
    z-index: 1020;
    margin-bottom: 1rem;
}

/* Vehicle Card Base */
.vehicle-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.vehicle-card .card-body {
    padding: 1.25rem;
}

.vehicle-card .card-title {
    color: #1e3c72;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.vehicle-card .vehicle-details {
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.vehicle-image {
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-image img {
    transition: transform 0.3s ease;
}

.vehicle-image:hover img {
    transform: scale(1.05);
}

/* Color-coded header strips for vehicle cards */
.vehicle-card .card-header-color {
    height: 8px;
    width: 100%;
}

/* NEW - Blue */
.vehicle-card[data-category="new"] .card-header-color {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* PUNCHED - Dark Blue */
.vehicle-card[data-category="punched"] .card-header-color {
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
}

/* MSO - Green */
.vehicle-card[data-category="mso"] .card-header-color {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

/* LC - Purple */
.vehicle-card[data-category="lc"] .card-header-color {
    background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

/* CPO - Red */
.vehicle-card[data-category="cpo"] .card-header-color {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

/* USED - Yellow/Gold */
.vehicle-card[data-category="used"] .card-header-color {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

/* OFFMAKE - Gray with border */
.vehicle-card[data-category="offmake"] {
    border: 2px solid #dee2e6 !important;
}

.vehicle-card[data-category="offmake"] .card-header-color {
    background: linear-gradient(135deg, #adb5bd 0%, #868e96 100%);
}

/* Status badges on vehicle cards */
.vehicle-card .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Copy Button Styles */
.copy-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.copy-btn:hover {
    color: #0d6efd;
    transform: scale(1.1);
}

.copy-btn:active {
    color: #198754;
}

.copy-btn i {
    font-size: 0.9rem;
}

/* Vehicle Details Table Improvements */
.vehicle-details table td:first-child {
    width: 90px;
    white-space: nowrap;
}

.vehicle-details table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

/* Alert styles for warnings */
.alert-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Mobile improvements */
@media (max-width: 767px) {
    .vehicle-details table td:first-child {
        width: 70px;
        font-size: 0.9rem;
    }
    
    .copy-btn {
        padding: 1px 4px;
        font-size: 0.75rem;
    }
}

/* Photo Carousel Modal Styling */
.modal-lg {
    max-width: 900px;
}

/* Carousel controls visibility */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Carousel indicators */
.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
}

/* Photo carousel image container */
.carousel-item img {
    border-radius: 0;
}

/* Modal for photos - darker background */
#photoCarousel1 .modal-body,
#photoCarousel2 .modal-body,
#photoCarousel3 .modal-body {
    background-color: #000;
}

/* Mobile: Make carousel controls larger */
@media (max-width: 767px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}
