/* Product Detail Page Styles */

/* Sidebar Styles */
.product-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 200px);
    padding: 20px;
    position: sticky;
    top: 80px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.product-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.product-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
}

.product-sidebar-close:hover {
    color: #000;
}

/* Tree Menu Styles - L1 Level */
.product-tree-menu {
    padding: 0;
}

.tree-l1-category {
    margin-bottom: 10px;
}

.tree-l1-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
}

.tree-l1-header:hover {
    background: #e9ecef;
    border-color: var(--base-color, #0d6efd);
}

.tree-l1-category.active .tree-l1-header {
    background: var(--base-color, #0d6efd);
    color: #fff;
    border-color: var(--base-color, #0d6efd);
}

.l1-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.tree-l1-category.active .l1-icon {
    transform: rotate(90deg);
}

.tree-l1-content {
    display: none;
    padding: 10px 0 10px 30px;
}

.tree-l1-content.show {
    display: block;
}

/* Tree Menu Styles - L2 Level */
.tree-l2-category {
    margin-bottom: 10px;
}

.tree-l2-header {
    display: flex;
    align-items: center;
    padding: 8px 7px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    color: #333;
}

.tree-l2-header:hover {
    background: #e9ecef;
    border-color: var(--base-color, #0d6efd);
}

.tree-l2-category.active .tree-l2-header {
    background: #f3f3f3;
    color: #202020;
    border-color: var(--base-color, #0d6efd);
}

.l2-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.tree-l2-category.active .l2-icon {
    transform: rotate(90deg);
}

.tree-l2-content {
    display: none;
    padding: 10px 0 10px 30px;
}

.tree-l2-content.show {
    display: block;
}

/* Tree Menu Styles - L3 Level */
.tree-l3-category {
    margin-bottom: 10px;
}

.tree-l3-header {
    display: flex;
    align-items: center;
    padding: 6px 5px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 200;
    color: #333;
}

.tree-l3-header:hover {
    background: #e9ecef;
    border-color: var(--base-color, #0d6efd);
}

.tree-l3-category.active .tree-l3-header {
    background: #ffffff;
    color: #202020;
    border-color: var(--base-color, #0d6efd);
}

.l3-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.tree-l3-category.active .l3-icon {
    transform: rotate(90deg);
}

.tree-l3-content {
    display: none;
    padding: 10px 0 10px 30px;
}

.tree-l3-content.show {
    display: block;
}

/* Model Item Styles */
.tree-model-item {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    color: #495057;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.tree-model-item:hover {
    background: #e9ecef;
    color: var(--base-color, #0d6efd);
    border-left-color: var(--base-color, #0d6efd);
    padding-left: 20px;
}

.tree-model-item.active {
    background: #e7f3ff;
    color: var(--base-color, #0d6efd);
    border-left-color: var(--base-color, #0d6efd);
    font-weight: 600;
}

/* Content Area Styles */
.product-content {
    padding-left: 30px;
}

.model-detail-container {
    max-width: 1200px;
}

.model-header {
    border-bottom: 2px solid var(--base-color, #0d6efd);
    padding-bottom: 20px;
}

.model-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.model-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--base-color, #0d6efd);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.5rem;
}

/* Diagram Container */
.diagram-container {
    text-align: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Application & Feature Content */
.application-content,
.feature-content {
    font-size: 1rem;
  /*  color: #495057;*/
    line-height: 1.8;
}

.application-content ul,
.feature-content ul {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.application-content > ul > li,
.feature-content > ul > li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.application-content > ul > li::before,
.feature-content > ul > li::before {
    content: "\F270";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--base-color, #0d6efd);
    font-size: 0.85rem;
}

/* Nested list styles */
.application-content ul ul,
.feature-content ul ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style: none;
}

.application-content ul ul li,
.feature-content ul ul li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.application-content ul ul li::before,
.feature-content ul ul li::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #6c757d;
    font-size: 0.7rem;
}

/* Section spacing for Application & Feature blocks */
.model-section.col-lg-6 {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .model-section.col-lg-6:nth-child(odd) {
        padding-right: 12px;
    }
    .model-section.col-lg-6:nth-child(even) {
        padding-left: 12px;
    }
}

/* Resource Table Styles */
.resource-table {
    margin-bottom: 0;
    table-layout: auto;
    font-size:1rem;
}

.resource-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.resource-table td {
    vertical-align: middle;
}

/* File name column - prevent wrapping */
.resource-table td:first-child {
    white-space: nowrap;
    min-width: 180px;
}

.download-link {
    color: var(--base-color, #0d6efd);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.download-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Video button columns - fixed width */
.resource-table th:last-child,
.resource-table th:nth-last-child(2),
.resource-table td:last-child,
.resource-table td:nth-last-child(2) {
   /* width: 80px;*/
    min-width: 80px;
}

/* Category column */
.resource-table td:nth-child(2) {
    white-space: nowrap;
    min-width: 120px;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--base-color, #0d6efd);
}

.breadcrumb-item.active {
    color: var(--base-color, #0d6efd);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.product-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--base-color, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-mobile-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding-top: 0;
        max-height: 100vh;
    }

    .product-sidebar.show {
        left: 0;
    }

    .product-sidebar-header {
        display: flex;
    }

    .product-content {
        padding: 20px 15px;
    }

    .model-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .model-section {
        padding: 15px;
    }
}

/* Sidebar Overlay for Mobile */
.product-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.product-sidebar-overlay.show {
    display: block;
}

/* Small Mobile Adjustments */
@media (max-width: 576px) {
    .product-content {
        padding: 15px 10px;
    }

    .model-title {
        font-size: 1.25rem;
    }

    .product-mobile-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 15px;
        right: 15px;
    }

    .resource-table {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .product-sidebar,
    .product-mobile-toggle,
    .product-sidebar-close {
        display: none !important;
    }

    .product-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}
