/* ToolKits Detail Page Styles */

/* Sidebar Styles */
.toolkits-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);
}

.toolkits-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.toolkits-sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    color: #6c757d;
}

.toolkits-sidebar-close:hover {
    color: #000;
}

/* Tree Menu Styles */
.toolkits-tree-menu {
    padding: 0;
}

.tree-category {
    margin-bottom: 10px;
}

.tree-category-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-category-header:hover {
    background: #e9ecef;
    border-color: var(--base-color, #0d6efd);
}

.tree-category.active .tree-category-header {
    background: var(--base-color, #0d6efd);
    color: #fff;
    border-color: var(--base-color, #0d6efd);
}

.category-icon {
    margin-right: 10px;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.tree-category.active .category-icon {
    transform: rotate(90deg);
}

.tree-category-content {
    display: none;
    padding: 10px 0 10px 30px;
}

.tree-category-content.show {
    display: block;
}

/* Download Section */
.tree-download-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.tree-download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f39926 0%, #f1b741 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tree-download-link:hover {
    background: linear-gradient(135deg, #f39926 0%, #f1b741 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.tree-download-link i {
    font-size: 1.25rem;
}

.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 */
.toolkits-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: 15px;
}

.model-description {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
}

.model-image-container {
    text-align: center;
    padding: 30px;
   /* background: #f8f9fa;*/
    border-radius: 8px;
}

.model-image {
   /* max-width: 100%;*/
    /*height: auto;*/
    max-height:600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--base-color, #0d6efd);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Table Responsive Wrapper */
.table-Wrap {
    overflow-x: auto;
    margin: 0 -25px;
    padding: 0 25px;
}

/* Applicable Products */
.applicable-products {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: var(--base-color, #0d6efd);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-link:hover {
    background: var(--base-color, #0d6efd);
    color: #fff;
    border-color: var(--base-color, #0d6efd);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Toggle */
.toolkits-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;
}

.toolkits-mobile-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .toolkits-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .toolkits-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;
    }

    .toolkits-sidebar.show {
        left: 0;
    }

    .toolkits-sidebar-header {
        display: flex;
    }

    .toolkits-content {
        padding: 20px 15px;
    }

    .model-title {
        font-size: 1.5rem;
    }

    .model-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .model-section {
        padding: 15px;
    }

    .table-Wrap {
        margin: 0 -15px;
        padding: 0 15px;
    }
}

/* Sidebar Overlay for Mobile */
.toolkits-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.toolkits-sidebar-overlay.show {
    display: block;
}

/* Small Mobile Adjustments */
@media (max-width: 576px) {
    .toolkits-content {
        padding: 15px 10px;
    }

    .model-title {
        font-size: 1.25rem;
    }

    .applicable-products {
        flex-direction: column;
    }

    .product-link {
        width: 100%;
        justify-content: center;
    }

    .toolkits-mobile-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: 15px;
        right: 15px;
    }
}

/* Print Styles */
@media print {
    .toolkits-sidebar,
    .toolkits-mobile-toggle,
    .toolkits-sidebar-close {
        display: none !important;
    }

    .toolkits-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}
