/* Car Sales Plugin Public Styles */

/* Reset and Base Styles */
.car-search-container,
.user-dashboard,
.financing-calculator {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Car Search Styles */
.search-input-group {
    display: flex;
    gap: 10px;
    position: relative;
}

.search-inputWrapper {
    position: relative;
    flex: 1;
}

.license-input {
    width: 100%;
    padding: 16px 20px 16px 60px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nummerplade_icon {
    position: absolute;
    top: 50%;
    display: flex;
    background-color: #3268A3;
    height: 2.5rem;
    width: 2.5rem;
    justify-content: center;
    border-radius: 5px;
    transform: translate(0, -50%);
    left: 10px;
    padding: 5px;
}

.license-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #138d62, #18A976);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #18A976, #138d62);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
}
/*30-7-2025*/

@media only screen and (min-width: 581px) {
.search-btn {
    padding: 4px 20px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 10px;
    }    
}

/* Search Results */
.search-results {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0e2c25; /* dark semi-transparent overlay */
    z-index: 9999;
    /* display: none; */ /* Hidden by default */
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 2rem;
}

.car-info-card {
    background: #0e2c25;
    border-radius: 12px;
    padding: 30px;
    /* border: 1px solid #e2e8f0; */
}

.car-info-card h3 {
    color: #C9F100;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #C9F100;
    padding-bottom: 10px;
}

.car-overview h4 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.license-plate {
    background: #3182ce;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 600;
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.spec-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.spec-item label {
    font-weight: 600;
    color: #4a5568;
}

.spec-item span {
    color: #2d3748;
    font-weight: 500;
}

.synsbasen-info {
    margin-top: 20px;
    padding: 20px;
    background: #edf2f7;
    border-radius: 8px;
    border-left: 4px solid #38a169;
}

.synsbasen-info h5 {
    color: #1a202c;
    margin-bottom: 10px;
}

.assessment-score,
.technical-condition {
    margin-bottom: 8px;
    font-weight: 500;
}

/* Contact Form */
.contact-form-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.contact-form-section h4 {
    color: #1a365d;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}


/*.submit-btn:hover {*/
/*    background: linear-gradient(135deg, #2f855a, #276749);*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);*/
/*}*/

/* Loading and Error States */
.search-loading,
.search-error {
    background: #fff;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.loading-spinner {
    color: #3182ce;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.error-message {
    color: #e53e3e;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.retry-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #c53030;
}

/* User Dashboard Styles */
.user-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-size: 2.2rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #3182ce;
}

.tab-btn.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.car-image {
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #a0aec0;
    font-size: 3rem;
}

.car-info {
    padding: 20px;
}

.car-info h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.car-details {
    color: #718096;
    margin-bottom: 10px;
}

.car-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #38a169;
    margin-bottom: 15px;
}

.car-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.inquiries {
    color: #718096;
    font-size: 0.9rem;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-approved {
    background: #c6f6d5;
    color: #22543d;
}

.status-pending {
    background: #fef5e7;
    color: #c05621;
}

.status-rejected {
    background: #fed7d7;
    color: #742a2a;
}

.view-car-btn {
    width: 100%;
    background: #3182ce;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-car-btn:hover {
    background: #2c5aa0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #1a365d;
}

.close-modal {
    font-size: 1.5rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e53e3e;
}

.modal-body {
    padding: 30px;
}

/* Financing Calculator */
.financing-calculator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-inputs {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calculator-results {
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #3182ce;
}

.results-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.result-item label {
    font-weight: 600;
    color: #4a5568;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3182ce;
}

.calculate-btn,
.book-advice-btn {
    background: linear-gradient(135deg, #3182ce, #2c5aa0);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.calculate-btn:hover,
.book-advice-btn:hover {
    background: linear-gradient(135deg, #2c5aa0, #2a4a8a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.3);
}

.book-advice-btn {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.book-advice-btn:hover {
    background: linear-gradient(135deg, #2f855a, #276749);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
}

/* Success Notifications */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #38a169;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.3);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
 
    .search-input-group {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading animations */
.loading-cars {
    text-align: center;
    padding: 40px;
    color: #3182ce;
}

.loading-cars i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Additional utility classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Print styles */
@media print {
    .modal,
    .success-notification {
        display: none !important;
    }
}


