/* Basic style for demo module */
.auto-container-demo {
    position: relative;
    padding: 0 15px;
    margin: 0 auto;
    width: 80%;
    box-sizing: border-box;
}

.demo-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 20%);
    z-index: 0;
}

.demo-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.demo-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.demo-header p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* nav-tab style */
.nav-tabs-container {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.nav-tabs {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    background-color: #fff;
    padding: 10px 0;
    width: 100%;
    border-radius: 12px;
}

.nav-tabs .nav-link {
    padding: 12px 20px;
    font-weight: 600;
    color: #4a5568;
    border: none;
    border-bottom: 3px solid transparent;
    margin-right: 10px;
    border-radius: 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #2563eb;
    background-color: #f1f5f9;
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    background-color: transparent;
}

#more-demo-container {
    position: relative;
}

.more-demo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 15px;
    margin-top: 5px;
    z-index: 1000;
    display: none;
}

.more-demo-dropdown.show {
    display: block;
}

.more-demo-item {
    color: #4a5568;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.more-demo-item:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Container of demo content */
.tab-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    padding: 40px 15px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tab-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
}

.tab-content.active::before {
    opacity: 1;
}

.tab-pane h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 50px;
    line-height: 1.3;    
    text-align: center;
}

.tab-pane h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px;
}

.demo-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.demo-media {
    width: 80%;
    min-width: 300px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.image-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex: 1;
}

.image-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f8fafc;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.image-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.image-nav-btn {
    padding: 9px 18px;
    background-color: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.image-nav-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

.image-nav-btn.active {
    background-color: black;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.demo-details {
    width: 40%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
}

.demo-feature-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #4a5568;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 20px;
    border-radius: 6px;
    text-align: left;
    width: 100%;
}

.demo-feature-list li:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.demo-feature-list li i {
    color: #22c55e;
    margin-right: 10px;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.demo-feature-list li:hover i {
    transform: scale(1.2);
}

.demo-feature-list li strong {
    color: #1e293b;
    transition: color 0.3s ease;
    font-size: 1.15rem;
}

.demo-feature-list li:hover strong {
    color: #2563eb;
}

/* Value prompt box */
.demo-value {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 22px;
    border-radius: 0 8px 8px 0;
    margin-top: 50px;
    transition: all 0.3s ease;
}

.demo-value:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.demo-value h4 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 12px;
    font-weight: 600;
}

.demo-value p {
    color: #3b82f6;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Tab switching animation */
.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
}

/* Image zoom viewer */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

.image-viewer.active {
    display: flex;
}

.image-viewer .viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.zoom-button:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* Responsive adjustments */
@media (max-width: 1400px) {
    .demo-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .demo-media,
    .demo-details {
        width: 100%;
    }
    
    .demo-section h1 {
        line-height: 1.8;
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .demo-section {
        padding: 60px 0;
    }
    
    .demo-header {
        margin-bottom: 40px;
    }
    
    .demo-header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 30px 0;
    }
    
    .demo-content {
        gap: 30px;
        padding: 0 15px;
    }
    
    .module-main-title {
        font-size: 1.5rem;
    }
    
    .demo-feature-list li {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .demo-section {
        padding: 40px 0;
    }
    
    .demo-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start;
    }
}

