/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Reading progress bar */
#progress-bar {
    background: linear-gradient(90deg, #0EA5E9 0%, #14B8A6 100%);
}

/* Table of Contents active state */
.toc-link.active {
    color: #0EA5E9;
    border-left-color: #0EA5E9;
    background-color: #f0f9ff;
}

/* FAQ transitions */
.faq-content {
    transition: all 0.3s ease;
}

.faq-btn.active .faq-icon {
    transform: rotate(45deg);
}

/* Image hover effects */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

/* Glassmorphism for nav */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#navbar.scrolled .text-white,
#navbar.scrolled .nav-text,
#navbar.scrolled .nav-link {
    color: #1e293b !important;
}

#navbar.scrolled .nav-menu-btn {
    color: #1e293b;
}
/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Smooth scroll offset for fixed headers */
html {
    scroll-padding-top: 100px;
}

/* Print styles */
@media print {
    #navbar,
    aside,
    .sticky,
    footer,
    button {
        display: none !important;
    }
    
    main {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .lg\:col-span-6 {
        width: 100%;
        max-width: 100%;
    }
}