/* New Layout Styles */
.vfm-new-layout {
    display: flex;
    /*min-height: 1600px;*/
    height: auto;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Sidebar Styles */
.vfm-main-sidebar {
    width: 300px;
    background:  #066CCB ;
    color: white;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: relative;
    overflow-y: auto;
    /*max-height: 700px;*/
    height: auto;
}

.vfm-sidebar-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.vfm-sidebar-header h3,
.vfm-sidebar-header h4 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.vfm-sidebar-header h4 {
    font-size: 16px;
}

/* Vehicle Type Buttons */
.vfm-vehicle-buttons {
    padding: 10px;
}

.vfm-sidebar-btn {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid #066CCB;
    color: white;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.vfm-sidebar-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.vfm-sidebar-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateX(5px);
}

.vfm-btn-icon {
    font-size: 20px;
}

.vfm-btn-text {
    flex: 1;
    text-align: left;
}

/* States Section */
.vfm-states-section {
    margin-top: 10px;
}

.vfm-state-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vfm-state-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.vfm-state-item.active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.vfm-state-faq-count {
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Main Content Area */
.vfm-main-content-area {
    flex: 1;
    background: white;
    position: relative;
    overflow-y: auto;
    max-height: 700px;
}

/* FIXED: Content sections display logic */
.vfm-content-section {
    padding: 30px;
    display: none; /* Default to hidden */
}

.vfm-content-section.active {
    display: block !important; /* Force display when active, override any inline styles */
    animation: fadeInSlide 0.4s ease-out;
}

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

.vfm-content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.vfm-content-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.vfm-content-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}

/* Welcome State */
.vfm-welcome-content {
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
}

.vfm-welcome-content h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 15px;
}

.vfm-welcome-content p {
    color: #6c757d;
    font-size: 18px;
    margin-bottom: 40px;
}

.vfm-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.vfm-feature-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.vfm-feature-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.vfm-feature-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.vfm-feature-item h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.vfm-feature-item p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* Tests Grid */
.vfm-tests-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.vfm-test-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vfm-test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vfm-test-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.vfm-test-card:hover::before {
    transform: scaleX(1);
}

.vfm-test-card h4 {
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.vfm-test-card p {
    color: #6c757d;
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

.vfm-test-faq-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* FAQs Grid */
.vfm-faqs-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.vfm-faq-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
}

.vfm-faq-accordion-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.vfm-faq-accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.vfm-faq-accordion-header {
    padding: 15px 18px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.vfm-faq-accordion-header::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    transition: transform 0.3s ease;
}

.vfm-faq-accordion-header.active {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.vfm-faq-accordion-header.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.vfm-faq-accordion-header h5 {
    margin: 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 30px;
}

.vfm-faq-accordion-content {
    display: none;
    padding: 15px 18px;
    background: #f9f9f9;
    border-top: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

.vfm-faq-accordion-content.active {
    display: block;
}

.vfm-faq-accordion-content p {
    margin: 0;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

/* Navigation Buttons */
.vfm-nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vfm-back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vfm-back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Breadcrumb */
.vfm-breadcrumb-nav {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.vfm-breadcrumb {
    color: #6c757d;
    font-size: 14px;
}

.vfm-breadcrumb-item {
    color: #2c3e50;
    font-weight: 500;
}

.vfm-breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
}

/* Loading State */
.vfm-loading-content {
    text-align: center;
    padding: 80px 20px;
}

.vfm-loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vfm-loading-content h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.vfm-loading-content p {
    color: #6c757d;
    margin: 0;
}

/* Empty State */
.vfm-empty-content {
    text-align: center;
    padding: 80px 20px;
}

.vfm-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.vfm-empty-content h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.vfm-empty-content p {
    color: #6c757d;
    margin: 0 0 30px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .vfm-new-layout {
        flex-direction: column;
        min-height: auto;
    }
	
	.vfm-vehicle-buttons, .vfm-states-container {
		display: inline-flex !important;
		width: 100%;
	}
    
    .vfm-main-sidebar {
        width: 100%;
        max-height: none;
        order: 1 !important;
    }
    
    .vfm-main-content-area {
        order: 2;
        max-height: none;
    }
    
    .vfm-content-section {
        padding: 20px 15px;
    }
    
    .vfm-tests-grid-container {
        grid-template-columns: 1fr;
    }
    
    .vfm-faqs-grid-container {
        grid-template-columns: 1fr;
    }
    
    .vfm-feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vfm-nav-buttons {
        flex-direction: column;
    }
    
    .vfm-welcome-content {
        margin: 20px auto;
    }
    
    .vfm-welcome-content h2 {
        font-size: 24px;
    }
    
    .vfm-content-header h2 {
        font-size: 22px;
    }
	
	.vfm-state-item {
	padding: 12px 3px;
    margin: 4px 4px;
		display: block !important;
	}
}

@media screen and (max-width: 480px) {
    .vfm-sidebar-btn {
        padding: 12px;
        font-size: 14px;
		display: block;
    }
	
	.vfm-vehicle-buttons, .vfm-states-container {
		display: inline-flex !important;
	}
    
    .vfm-btn-icon {
        font-size: 16px;
    }
    
    .vfm-test-card {
        padding: 15px;
    }
    
    .vfm-faq-accordion-header {
        padding: 12px 15px;
    }
    
    .vfm-faq-accordion-header h5 {
        font-size: 13px;
        padding-right: 25px;
    }
    
    .vfm-faq-accordion-content {
        padding: 12px 15px;
    }
	
	
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.4s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Utility Classes */
.vfm-hidden {
    display: none !important;
}

.vfm-visible {
    display: block !important;
}
