.breadcrumb {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-light);
}

.breadcrumb-item:not(:last-child):after {
    content: "/";
    margin: 0 10px;
    color: var(--secondary);
}

.breadcrumb-item.active {
    color: var(--secondary);
    cursor: default;
}

.breadcrumb-item.active:hover {
    color: var(--secondary);
}

.tab-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 24px;
}


.tabs {
    display: flex;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    overflow-x: auto;
    padding: 0 8px;
}

.tab {
    padding: 16px 24px;
    color: white;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.tab.active {
    border-bottom-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-content {
    display: none;
    padding: 24px;
    animation: fadeIn 0.5s;
}

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


.contract-content {
    min-height: 400px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    color: var(--primary-light);
}

.breadcrumb-item:not(:last-child):after {
    content: "/";
    margin: 0 10px;
    color: var(--secondary);
}

.breadcrumb-item.active {
    color: var(--secondary);
    cursor: default;
}

.breadcrumb-item.active:hover {
    color: var(--secondary);
}

.action-buttonss {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.related-section {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.related-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}


.doc-card {
    background-color: var(--accent-light);
    padding: 16px;
    border-radius: 8px;
    border-right: 4px solid var(--primary);
    transition: all 0.3s;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.file-path {
    display: flex;
    align-items: center;
    background-color: var(--accent-light);
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-family: monospace;
    direction: ltr;
    text-align: left;
}

.file-path i {
    margin-left: 10px;
    color: var(--primary);
}

.book-cover {
    width: 100%;
    max-width: 200px;
    height: 260px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    border-radius: 8px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.content-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.content-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}

.content-list li:hover {
    background-color: var(--accent-light);
    padding-right: 12px;
    border-radius: 6px;
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list i {
    margin-left: 12px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* بخش‌های قابل بازشو - بهبود یافته */
.expandable-section {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.expandable-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.expandable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    user-select: none;

    pointer-events: auto !important;

}

.expandable-header:hover {
    background: var(--accent-light);
    padding-right: 1.75rem;
}

.expandable-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--primary);
    margin: 0;
}

.expandable-header i {
    margin-left: 0.75rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.expandable-header:hover i {
    transform: scale(1.1);
}

.expandable-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--secondary);
    font-size: 0.9rem;
}

.expandable-arrow.rotated {
    transform: rotate(180deg);
}

.expandable-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content.expanded {
    padding: 0 1.5rem 1.5rem;
    max-height: 2000px;
}

.contract-content {
    min-height: 400px;
}

.detail-content {
    /* background-color: var(--accent-light); */
    background-color: var(--accent);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.detail-content h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.detail-content p {
    color: #4b5563;

    line-height: 1.6;
}

.detail-list {
    list-style-type: disc;
    padding-right: 20px;
    margin-top: 10px;
}

.detail-list li {
    margin-bottom: 8px;
    color: #4b5563;
}


.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 108, 148, 0.3);
    border: none;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(20, 108, 148, 0.4);
}


.tabs {
    padding: 0 4px;
}

.tab {
    padding: 12px 16px;
    font-size: 14px;
}

.tab-content {
    padding: 16px;
}
