/**
 * DeMV Platform - Vehicle to Rental Integration Styles
 * Styles for the integration between vehicles and rentals
 */

/* List as Rental button */
.vehicle-btn.btn-rental {
    background: linear-gradient(90deg, #6c63ff, #00ccff) !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.3) !important;
}

.vehicle-btn.btn-rental:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.5) !important;
}

.vehicle-btn.btn-rental:active {
    transform: translateY(0) !important;
}

/* Rental Button Container */
.rental-button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.rental-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ffcc;
    font-size: 0.9rem;
    padding: 5px 10px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 4px;
    margin-top: 5px;
}

.rental-status i {
    color: #00ffcc;
}

/* Quick List Button */
.btn-outline.quick-list-rental {
    background: transparent !important;
    border: 1px solid #6c63ff !important;
    color: #6c63ff !important;
}

.btn-outline.quick-list-rental:hover {
    background: rgba(108, 99, 255, 0.1) !important;
}

/* View Rental Listing Button */
.btn-secondary.view-rental-listing {
    background: linear-gradient(90deg, #00ccff, #00ffcc) !important;
    color: white !important;
}

/* Rental Preview Styles */
.rental-preview {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: rgba(26, 26, 37, 0.7) !important;
    border-radius: 5px !important;
    border: 1px solid rgba(108, 99, 255, 0.3) !important;
}

.rental-preview-image {
    width: 120px !important;
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
}

.rental-preview-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.rental-preview-details {
    flex: 1 !important;
}

.rental-preview-details h3 {
    margin: 0 0 10px 0 !important;
    color: #00ffcc !important;
}

/* Rental Features */
.rental-features-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
    min-height: 40px !important;
}

.feature-tag {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(108, 99, 255, 0.2) !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    position: relative !important;
}

.feature-tag .remove-feature {
    margin-left: 5px !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease !important;
}

.feature-tag .remove-feature:hover {
    color: #ff3366 !important;
}

.feature-input-container {
    display: flex !important;
    gap: 10px !important;
}

/* Rental Card Enhancements */
.rental-card[data-vehicle-id] {
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.2);
}

.rental-card.highlighted-rental {
    animation: highlight-pulse 2s infinite;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    }
}

/* New Listing Badge */
.new-listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #ff3366, #ff9933);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

/* From Vehicle Tag */
.from-vehicle-tag {
    position: absolute;
    top: 45px;
    right: 10px;
    background: linear-gradient(90deg, #6c63ff, #00ccff);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 9;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

/* Welcome Message */
.rental-welcome-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 37, 0.95);
    border: 2px solid #00ffcc;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.welcome-message-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.welcome-message-content h3 {
    color: #00ffcc;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-message-content p {
    margin: 0;
    line-height: 1.5;
}

.close-welcome-message {
    margin-top: 10px;
}

.fade-out {
    animation: fade-out 0.5s forwards;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Rental Badge on Vehicle Card */
.rental-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #00ccff, #00ffcc);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

/* View Vehicle Button */
.btn-outline.view-vehicle-btn {
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
}

.btn-outline.view-vehicle-btn:hover {
    background: rgba(0, 255, 204, 0.1);
}

/* Rental Badge */
.status-rental {
    background: rgba(108, 99, 255, 0.2) !important;
    color: #6c63ff !important;
    border: 1px solid rgba(108, 99, 255, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
}

/* Form Actions */
.form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

/* Success Message */
.success-message {
    background: rgba(0, 204, 136, 0.2) !important;
    border: 1px solid #00cc88 !important;
    color: #00cc88 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin-top: 20px !important;
    display: none !important;
}

/* Error Message */
.error-message {
    background: rgba(255, 51, 102, 0.2) !important;
    border: 1px solid #ff3366 !important;
    color: #ff3366 !important;
    padding: 15px !important;
    border-radius: 5px !important;
    margin-top: 20px !important;
    display: none !important;
}

/**
 * DeMV Platform - Vehicle to Rental Integration Styles
 * Provides styling for the vehicle-to-rental integration workflow
 */

/* List as Rental Modal */
.list-as-rental-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.list-as-rental-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.list-as-rental-modal .modal-content {
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    margin: 50px auto;
    position: relative;
    z-index: 1001;
    max-height: 90vh;
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Animation removed to reduce CPU usage */

.list-as-rental-modal .modal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-as-rental-modal .modal-header h3 {
    margin: 0;
    color: #00ccff;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.list-as-rental-modal .close-modal {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.list-as-rental-modal .close-modal:hover {
    color: #ff3e3e;
}

.list-as-rental-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Rental Form Steps */
.rental-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.rental-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    z-index: 1;
}

.rental-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.rental-steps .step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.rental-steps .step.active .step-icon {
    background-color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

.rental-steps .step.completed .step-icon {
    background-color: #00aa55;
}

.rental-steps .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rental-steps .step.active .step-number {
    background-color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

.rental-steps .step.completed .step-number {
    background-color: #00aa55;
}

.rental-steps .step-label {
    font-size: 0.9rem;
    color: #999;
    text-align: center;
}

.rental-steps .step.active .step-label {
    color: #00ccff;
}

.rental-steps .step.completed .step-label {
    color: #00aa55;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #333;
    margin-top: 25px;
}

/* Form Steps */
.form-step {
    display: none;
}

/* AGGRESSIVE CSS Reset for Rental Modal - Overrides all conflicting styles */
#list-as-rental-modal * {
    box-sizing: border-box !important;
}

/* Reset modal structure */
#list-as-rental-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    backdrop-filter: blur(5px) !important;
}

#list-as-rental-modal.hidden {
    display: none !important;
}

#list-as-rental-modal .modal-content {
    background-color: rgba(18, 18, 30, 0.95) !important;
    border-radius: 16px !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(108, 99, 255, 0.3) !important;
    border: 1px solid rgba(108, 99, 255, 0.3) !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Reset modal body styles */
#list-as-rental-modal .modal-body {
    padding: 20px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Reset form styles */
#list-as-rental-modal #list-as-rental-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Reset form steps */
#list-as-rental-modal .form-step {
    display: none !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    grid-template-areas: unset !important;
    grid: unset !important;
    gap: unset !important;
}

#list-as-rental-modal .form-step.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Animation removed to reduce CPU usage */

/* Rental Preview */
.rental-preview {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.rental-preview-image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100%;
    height: 200px;
}

.rental-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rental-image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #00ccff, #0088ff);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.rental-preview-title {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
}

/* Rental Summary Styles */
.summary-container,
.rental-summary {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.summary-row,
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.summary-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #888;
    flex: 0 0 30%;
}

.summary-value {
    flex: 0 0 65%;
    text-align: right;
    word-break: break-word;
    color: #fff;
}

#summary-total {
    font-weight: 700;
    font-size: 1.2em;
    color: #00e676;
}

.rental-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.rental-preview-meta span {
    background-color: #2a2a2a;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Blockchain Badge */
.rental-blockchain-badge {
    margin: 15px 0;
}

.verification-note {
    margin-top: 5px;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
}

/* Form Controls */
#list-as-rental-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* AGGRESSIVE Reset for form-group styles in rental modal */
#list-as-rental-modal .form-group,
#list-as-rental-modal .form-step.active .form-group {
    margin-bottom: 20px !important;
    width: 100% !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#list-as-rental-modal .form-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
    width: calc(100% + 20px) !important;
}

#list-as-rental-modal .form-row .form-group {
    flex: 1 1 calc(50% - 20px) !important;
    margin: 0 10px 20px !important;
    min-width: 200px !important;
}

#list-as-rental-modal label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    color: #fff !important;
    font-size: 14px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.form-row > .form-group {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

/* Hidden class for toggling visibility */
.hidden {
    display: none !important;
}

/* Rate Type Buttons */
.rate-type-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.rate-type-btn {
    flex: 1;
    padding: 12px 15px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rate-type-btn:hover {
    background-color: #333;
    border-color: #555;
}

.rate-type-btn.active {
    background-color: #00ccff;
    border-color: #00ccff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

/* Availability Schedule */
.availability-schedule {
    margin-top: 10px;
}

.day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}

.day-item:hover {
    background-color: #333;
}

.day-item input[type="checkbox"] {
    margin: 0;
}

.day-item label {
    margin: 0 !important;
    cursor: pointer;
}

/* Price Suggestion */
.price-suggestion {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.price-suggestion i {
    color: #00ccff;
}

/* Terms Agreement */
.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 204, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(0, 204, 255, 0.3);
}

.terms-agreement input[type="checkbox"] {
    margin-top: 3px;
}

.terms-agreement label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-link {
    color: #00ccff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #00e5ff;
    text-decoration: none;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

/* AGGRESSIVE Reset for form controls in rental modal */
#list-as-rental-modal input[type="text"],
#list-as-rental-modal input[type="number"],
#list-as-rental-modal input[type="date"],
#list-as-rental-modal input[type="email"],
#list-as-rental-modal input[type="tel"],
#list-as-rental-modal input[type="password"],
#list-as-rental-modal input[type="time"],
#list-as-rental-modal textarea,
#list-as-rental-modal select,
#list-as-rental-modal .form-control {
    width: 100% !important;
    padding: 12px 15px !important;
    background-color: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    margin-bottom: 5px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
    outline: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

#list-as-rental-modal textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

#list-as-rental-modal input:focus,
#list-as-rental-modal textarea:focus,
#list-as-rental-modal select:focus,
#list-as-rental-modal .form-control:focus {
    border-color: #6c63ff !important;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.25) !important;
    outline: none !important;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #eee;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-control:focus {
    border-color: #00ccff;
    box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.3);
    outline: none;
}

.form-group .help-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* Features */
.rental-features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.rental-feature {
    background-color: #2a2a2a;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rental-feature i {
    color: #00ccff;
}

.rental-feature .remove-feature {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.rental-feature .remove-feature:hover {
    color: #ff3e3e;
}

/* Navigation Buttons */
/* AGGRESSIVE Reset for form actions in rental modal */
#list-as-rental-modal .form-actions,
#list-as-rental-modal .form-step.active .form-actions {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 30px !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
    min-height: 50px !important;
    flex-wrap: wrap !important;
}

/* AGGRESSIVE Reset for buttons in rental modal */
#list-as-rental-modal .form-actions button,
#list-as-rental-modal .btn,
#list-as-rental-modal .btn-primary,
#list-as-rental-modal .btn-secondary,
#list-as-rental-modal .next-step,
#list-as-rental-modal .prev-step {
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 5px !important;
    min-width: 120px !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 3 !important;
    height: auto !important;
    line-height: 1.5 !important;
    font-size: 16px !important;
    border: none !important;
}

#list-as-rental-modal .btn-primary,
#list-as-rental-modal .next-step {
    background: linear-gradient(135deg, #6c63ff, #4834d4) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

#list-as-rental-modal .btn-secondary,
#list-as-rental-modal .prev-step {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

#list-as-rental-modal .btn-primary:hover,
#list-as-rental-modal .next-step:hover {
    background: linear-gradient(135deg, #5a52e0, #3a2bb8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

#list-as-rental-modal .btn-secondary:hover,
#list-as-rental-modal .prev-step:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #00ccff;
    color: #000;
}

.btn-primary:hover {
    background-color: #00b8e6;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

.btn-secondary {
    background-color: #444;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn-danger {
    background-color: #ff3e3e;
    color: #fff;
}

.btn-danger:hover {
    background-color: #e63636;
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.5);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Summary Step */
.summary-item:last-child,
.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: #999;
}

.summary-value {
    color: #fff;
    font-weight: 500;
}

/* Messages */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    max-width: 350px;
}

.message {
    background-color: #1a1a1a;
    border-left: 4px solid #00ccff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    /* Animation removed to reduce CPU usage */
}

/* Animation removed to reduce CPU usage */

.message.success {
    border-left-color: #00aa55;
}

.message.error {
    border-left-color: #ff3e3e;
}

.message-content {
    flex: 1;
    color: #fff;
}

.message .close-message {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.message .close-message:hover {
    color: #ff3e3e;
}

.view-rental-link {
    color: #00ccff;
    text-decoration: underline;
    margin-left: 5px;
}

/* Vehicle Card Enhancements */
/* Removed green highlighting for rental vehicles */

.rental-badge {
    background-color: #00aa55;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.highlighted-vehicle {
    animation: highlightPulse 2s infinite;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 204, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
    }
}

/* Navigation Highlight */
.nav-highlight-pulse {
    /* Animation removed to reduce CPU usage */
    color: #00ccff;
}

/* Animation removed to reduce CPU usage */

/* Help Modal */
.help-step {
    display: flex;
    margin-bottom: 20px;
    gap: 15px;
}

.help-step .step-number {
    width: 30px;
    height: 30px;
    background-color: #00ccff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-weight: bold;
    flex-shrink: 0;
}

.help-step .step-content {
    flex: 1;
}

.help-step h5 {
    margin: 0 0 5px 0;
    color: #00ccff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rental-steps .step-label {
        font-size: 0.8rem;
    }
    
    .rental-steps .step-number {
        width: 40px;
        height: 40px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* Quick List Button */
.quick-list-btn {
    margin-right: 5px;
}

.unlist-btn {
    margin-right: 5px;
}

/* Blockchain Badge Container */
.blockchain-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blockchain-badge-container[data-verification-status="verified"] {
    background-color: rgba(0, 170, 85, 0.1);
}

.blockchain-badge-container[data-verification-status="pending"] {
    background-color: rgba(255, 193, 7, 0.1);
}

.blockchain-badge-container[data-verification-status="failed"] {
    background-color: rgba(255, 62, 62, 0.1);
}

.blockchain-badge {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.badge-icon {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

.blockchain-badge-container[data-verification-status="verified"] .badge-icon {
    color: #00aa55;
}

.blockchain-badge-container[data-verification-status="pending"] .badge-icon {
    color: #ffc107;
}

.blockchain-badge-container[data-verification-status="failed"] .badge-icon {
    color: #ff3e3e;
}

.badge-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;

}

.blockchain-badge-container[data-verification-status="verified"] .badge-pulse {
    box-shadow: 0 0 0 rgba(0, 170, 85, 0.4);
}

.blockchain-badge-container[data-verification-status="pending"] .badge-pulse {
    box-shadow: 0 0 0 rgba(255, 193, 7, 0.4);
}

.blockchain-badge-container[data-verification-status="failed"] .badge-pulse {
    box-shadow: 0 0 0 rgba(255, 62, 62, 0.4);
}



.verification-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.blockchain-badge-container[data-verification-status="verified"] .verification-text {
    color: #00aa55;
}

.blockchain-badge-container[data-verification-status="pending"] .verification-text {
    color: #ffc107;
}

.blockchain-badge-container[data-verification-status="failed"] .verification-text {
    color: #ff3e3e;
}

/* Rental Image Link Styling */
.rental-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.rental-image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.rental-image-link::after {
    content: 'View Details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 204, 255, 0.8);
    color: #000;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.rental-image-link:hover::before {
    opacity: 1;
}

.rental-image-link:hover::after {
    opacity: 1;
}

.rental-image-link:hover .rental-image {
    transform: scale(1.05);
}

.rental-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Make the entire rental card clickable */
.rental-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* View Details Button */
.view-vehicle-btn {
    background-color: transparent;
    border: 1px solid #00ccff;
    color: #00ccff;
    transition: all 0.2s ease;
}

.view-vehicle-btn:hover {
    background-color: #00ccff;
    color: #000;
}

/* Ensure buttons don't inherit the pointer cursor from the card */
.rental-card button,
.rental-card a.btn {
    cursor: pointer;
}

/* Add a subtle animation for newly added rental cards */
@keyframes newCardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 204, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 204, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 204, 255, 0);
    }
}

.rental-card[data-new="true"] {
    animation: newCardPulse 2s infinite;
}

/* Ensure the blockchain badge is visible above the hover overlay */
.blockchain-badge-container {
    position: relative;
    z-index: 3;
}

/* Car Details Page - Rental Specific Styling */
.rental-price-tag {
    background-color: #00aa55;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.rental-price-tag i {
    font-size: 1rem;
}

.back-to-rentals-btn {
    margin-right: 10px;
}

/* Add a rental badge to the car details page when viewing a rental vehicle */
.rental-badge-large {
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 170, 85, 0.1);
    border: 1px solid #00aa55;
    color: #00aa55;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.rental-badge-large i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Enhance the booking modal */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.booking-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

.booking-modal .modal-content {
    background-color: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalAppear 0.3s ease-out;
}

.booking-modal .modal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-modal .modal-header h3 {
    margin: 0;
    color: #00ccff;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

.booking-modal .modal-body {
    padding: 20px;
}

.booking-modal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.booking-modal .close-modal {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.booking-modal .close-modal:hover {
    color: #ff3e3e;
}

.booking-summary {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

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

.booking-summary-label {
    color: #999;
}

.booking-summary-value {
    color: #fff;
    font-weight: 500;
}

.booking-dates {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-dates .form-group {
    flex: 1;
}

.booking-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ccff;
    text-align: right;
    margin-top: 20px;
}

/* Rental Card Enhancements */
.rental-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.rental-image-container.hover .rental-image {
    transform: scale(1.05);
}

.rental-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.rental-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rental-image-link:hover .image-overlay {
    opacity: 1;
}

.view-details-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(0, 255, 204, 0.3);
    backdrop-filter: blur(4px);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.rental-image-link:hover .view-details-text {
    transform: translateY(0);
}

.rental-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rental-title-link:hover {
    color: var(--primary-color, #00ffcc);
    text-decoration: none;
}

.rental-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 255, 204, 0.1));
    color: var(--primary-color, #00ffcc);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.3);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.rental-badge i {
    margin-right: 4px;
}

.rental-price-tag {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 4px;
    color: var(--primary-color, #00ffcc);
    font-weight: 600;
    border-left: 3px solid var(--primary-color, #00ffcc);
}

/* Book Now Button Enhancements */
.book-now-btn {
    background: linear-gradient(135deg, #00ffcc, #00ccff);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.3);
}

.book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.4);
    background: linear-gradient(135deg, #00ffdd, #00ddff);
}

.back-to-rentals-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.back-to-rentals-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color, #00ffcc);
}

/* Booking Modal Enhancements */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.booking-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.booking-modal .modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: #121212;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.booking-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 255, 204, 0.1));
}

.booking-modal .modal-header h3 {
    margin: 0;
    color: var(--primary-color, #00ffcc);
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.booking-modal .close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.booking-modal .close-modal:hover {
    color: var(--primary-color, #00ffcc);
}

.booking-modal .modal-body {
    padding: 20px;
}

.booking-vehicle-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-vehicle-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.booking-vehicle-details h4 {
    margin: 0 0 10px 0;
    color: #fff;
}

.booking-vehicle-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color, #00ffcc);
}

.booking-vehicle-location {
    color: rgba(255, 255, 255, 0.7);
}

.booking-form .form-group {
    margin-bottom: 15px;
}

.booking-form label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.booking-form .form-control {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
}

.booking-form .form-control:focus {
    border-color: var(--primary-color, #00ffcc);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

.booking-dates {
    display: flex;
    gap: 15px;
}

.booking-dates .form-group {
    flex: 1;
}

.booking-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.booking-summary h4 {
    margin-top: 0;
    color: var(--primary-color, #00ffcc);
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.booking-summary-label {
    color: rgba(255, 255, 255, 0.7);
}

.booking-summary-value {
    font-weight: 600;
    color: #fff;
}

#summary-total {
    color: var(--primary-color, #00ffcc);
    font-size: 18px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#confirm-booking {
    background: linear-gradient(135deg, #00ffcc, #00ccff);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#confirm-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.3);
}

#cancel-booking {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cancel-booking:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Car Details Page Enhancements for Rentals */
.car-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.car-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .booking-vehicle-info {
        flex-direction: column;
    }
    
    .booking-vehicle-image {
        width: 100%;
        height: 150px;
    }
    
    .booking-dates {
        flex-direction: column;
        gap: 10px;
    }
    
    .car-actions {
        flex-direction: column;
    }
}
