.placeholder {
    display: inline-block;
    min-height: 1em;
    vertical-align: middle;
    cursor: wait;
    background-color: rgb(136 147 170) !important;
    opacity: .5;
}
  [v-cloak] {
    display: none !important;
  }
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.fs-7 {
    font-size: .84rem;
}

.fs-8 {
    font-size: .74rem !important;
}

.zero-x-gutter {
    --bs-gutter-x: 0 !important;
}

.banner_logo {
    height: auto;
    width: 340px;
}

.feed-post-user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid white;
}

@media (max-width: 650px) {
    .fs-bmd-5 {
        font-size: 1.2rem !important;
    }

    .fs-bmd-6 {
        font-size: 1rem !important;
    }

    .fs-bmd-7 {
        font-size: .84rem !important;
    }

    .fs-bmd-8 {
        font-size: .78rem !important;
    }

    .h-bmd-100 {
        height: 100% !important;
    }

    .banner_logo {
        margin-left: 5px;
        height: auto;
        width: 170px;
    }


    .feed-post-user-avatar {
        width: 40px;
        height: 40px;
    }
}


/* Modern Navbar */
#topbar {
    background: white;
    height: 70px;
    padding: 0 2rem;
}

.navbar-brand h3 {
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-brand h3 span {
    color: var(--primary-color);
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
    margin: 0 1.2rem;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Navigation Items */
.top-nav-item {
    margin-right: 0.9rem;
    padding-right: 0.2rem;
}

.top-nav-link i {
    margin-bottom: -5px; /* pulls icon closer to text */
}

.top-nav-link {
    display: flex;
    flex-direction: column;
    row-gap: 0px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--bs-secondary-color) !important;
    transition: all 0.2s ease;
}

.top-nav-link i {
    font-size: 1.2rem;
    color: var(--bs-secondary-color);
}

.top-nav-link:hover, .top-nav-link.active {
    color: var(--primary-color) !important;
}

.top-nav-link:hover i, .top-nav-link.active i {
    color: var(--primary-color) !important;;
}

/* User Dropdown */
.avatar {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
#sidebar {
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    width: 250px;
}

.nav-link {
    color: var(--bs-secondary-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    background-color: #F3F4F6;
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: white;
    display: none;
    padding: 8px 0;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.mobile-bottom-nav .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.mobile-bottom-nav .avatar {
    width: 24px;
    height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .search-container {
        margin: 0.5rem 0;
        max-width: 68%;
    }

    #sidebar {
        width: 100%;
        position: static;
    }

    /* Show mobile bottom nav and adjust body padding */
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide regular nav items on mobile */
    .navbar-nav .top-nav-item {
        display: none;
    }

    /* Adjust top navbar for mobile */
    #topbar {
        padding: 0 1rem;
        height: 60px;
    }

    /* Adjust main content padding to account for fixed navbars */
    .main-content {
        padding-bottom: 80px;
    }
}

.sticky-block {
    position: sticky;
    top: 4.6rem;
    z-index: 1020;
}

.navbar-expand .navbar-nav .nav-link {
    border-radius: 0;
    padding-bottom: 0rem;
    padding-top: 0rem;
}

@media (min-width: 993px) {
    /* Hide mobile bottom nav on desktop */
    .mobile-bottom-nav {
        display: none !important;
    }    
}

.no-effects:hover,
.no-effects:active,
.no-effects:focus {
    background-color: inherit !important;
    color: inherit !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.thin-scrollbar {
    scrollbar-width: thin !important;
    scrollbar-color: transparent !important;
}

.text-no-decoration {
    text-decoration: none !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: var(--bs-dropdown-link-hover-bg);
    border-radius: 12px;
}


.dropdown-menu {
    border-radius: 12px;
    padding: 8px;
}

.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    z-index: 1040;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.show {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
}

.main-content {
    background: #f8f9fa;
    min-height: 400px;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.sidebar-content {
    background: #e9ecef;
    min-height: 300px;
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #adb5bd;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .sidebar-toggle {
        display: flex;
    }

    .desktop-sidebar {
        display: none !important;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .mobile-sidebar,
    .sidebar-overlay,
    .sidebar-toggle {
        display: none !important;
    }

    .border-md-1 {
        border: var(--bs-card-border-width) solid var(--bs-card-border-color) !important;
    }
}


body {
    background-color: #ececec;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary {
    background-color: #5a32a3 !important; /* slightly darker purple */
    border-color: #4b2889 !important;
    color: #fff !important;
}


.btn-outline-primary {
    /* Button Styles Using Purple */
    --bs-btn-color: #009fff !important;
    --bs-btn-border-color: #009fff !important;

    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #009fff !important;
    --bs-btn-hover-border-color: #009fff !important;
    --bs-btn-focus-shadow-rgb: 111, 66, 193 !important;

    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #009fff !important;
    --bs-btn-active-border-color: #009fff !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;

    --bs-btn-disabled-color: #009fff !important;
    --bs-btn-disabled-bg: transparent !important;
    --bs-btn-disabled-border-color: #009fff !important;

    --bs-gradient: none !important;
}

.btn-outline-primary:active,
.btn-outline-primary:hover {
    color: #fff !important;
}

.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: #fff !important;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: transparent;
    padding: 1rem 0;
}

.search-filter-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
}


.search-icon {
    position: absolute;
    color: var(--text-light);
}

.search-input {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    background: white;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-btn {
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.search-container {
    position: relative;
    max-width: 100%;
    transition: var(--transition);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 40px !important;
    padding: 0 44px 0 44px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-color);
    background-color: white;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 2;
    transition: var(--transition);
}

.search-icon.left {
    left: 16px;
}

.search-icon.right {
    right: 16px;
    cursor: pointer;
}

.search-icon.right:hover {
    color: var(--text-dark);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.2s ease-out;
}

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

.dropdown-section {
    padding: 12px 0;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-header {
    padding: 0 16px 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    gap: 12px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--text-dark);
}

.item-title {
    font-weight: 500;
    white-space: wrap;
    flex: 1;
}

.item-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-course {
    background: #e3f2fd;
    color: #1976d2;
}

.type-book {
    background: #f3e5f5;
    color: #7b1fa2;
}

.type-magazine {
    background: #fff3e0;
    color: #f57c00;
}

.type-article {
    background: #e8f5e9;
    color: #388e3c;
}

.type-person {
    background: #fce4ec;
    color: #c2185b;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-view-all {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.empty-state {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 24px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.loading-state {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.spinner-border-sm {
    width: 18px;
    height: 18px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .search-container {
        margin: 0;
        width: 100%;
    }

    .search-input {
        height: 48px !important;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--radius-md);
    }

    .search-dropdown {
        position: fixed;
        top: 45px;
        left: 0px;
        height: 100vh !important;
        min-height: 100vh !important;
        min-width: 100%;
        max-height: calc(100vh - 200px);
        border-radius: var(--radius-md);
        margin-top: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .dropdown-item {
        padding: 6px 16px;
    }

    .item-title {
        font-size: 15px;
    }

    .search-icon.left {
        left: 14px;
    }

    .search-icon.right {
        right: 14px;
    }
}

@media (max-width: 576px) {
    .search-input {
        padding: 0 42px 0 42px;
    }

    .search-dropdown {
        height: 100vh !important;
        min-height: 100vh !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        border: 0 !important;
    }
}

/* Focus states for accessibility */
.dropdown-item:focus {
    background: var(--primary-light);
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    background: white;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Publication Cards */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    color: white;
}

.btn-secondary-custom {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Stats Section */
.stats-section {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: #9ca3af;
    margin-top: 0.25rem;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.course-card .rating {
    color: var(--accent-color);
    font-size: 0.875rem;
}

/* Dropdown Styling */
.dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    background: rgba(218, 218, 218, 0.63);
    backdrop-filter: blur(58px);
    animation: dropdownFadeIn 0.3s ease-out;
}

[data-bs-theme="dark"] .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    background: rgba(33, 37, 41, 0.63);
    backdrop-filter: blur(58px);
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Gradient Header */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #009fff 100%);
}

/* Icon Wrapper */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notifications Container */
.notifications-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.notifications-container::-webkit-scrollbar {
    width: 6px;
}

.notifications-container::-webkit-scrollbar-track {
    background: transparent;
}

.notifications-container::-webkit-scrollbar-thumb {
    background-color: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.notifications-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(102, 126, 234, 0.5);
}

/* Notification Item */
.notification-item {
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0;
}

.notification-item:hover {
    background-color: rgba(102, 126, 234, 0.08) !important;
    transform: translateX(2px);
}

.notification-item:last-child {
    border-bottom: none;
}

/* Notification Avatar */
.notification-avatar {
    position: relative;
    transition: transform 0.2s ease;
}

.notification-item:hover .notification-avatar {
    transform: scale(1.05);
}

/* Notification Type Icon */
.notification-type-icon {
    position: absolute;
}

/* Transition utility */
.transition-all {
    transition: all 0.2s ease;
}

/* Responsive Design */
@media (max-width: 576px) {
    .dropdown-menu {
        right: 8px !important;
        width: calc(100vw - 45px) !important;
        max-width: none !important;
        min-width: auto !important;
    }

    .modal-content {
        height: 100vh;
        max-height: 100vh !important;
        border-radius: 0 !important;
        border: 0 !important;
        margin: 0 !important;
    }

    .modal-dialog {
        height: 100vh;
        width: 100vw;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .dropdown-header h6 {
        font-size: 1rem;
    }

    .notification-avatar {
        width: 40px !important;
        height: 40px !important;
    }

    .notification-type-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 0.7rem !important;
    }
}

@media (min-width: 577px) {
    .dropdown-menu {
        width: 420px !important;
        right: 0 !important;
    }
}

.empty-state {
    opacity: 0.8;
}

   .dropdown-card {
        width: 320px;
        background: white;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .user-header {
        padding: 24px;
        border-bottom: 1px solid #f3f4f6;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .user-avatar i {
        font-size: 24px;
    }

    .user-info h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 4px 0;
    }

    .user-info p {
        font-size: 14px;
        color: #6b7280;
        margin: 0;
    }

    .menu-items {
        padding: 8px;
    }

    .menu-item {
        border-radius: 12px;
        margin:2px;
        width: 100%;
        display: flex;
        align-items: center;
        padding: 12px 24px;
        border: none;
        color: var(--bs-secondary-color) !important;
        background: none;
        cursor: pointer;
        transition: background-color 0.15s ease;
        text-decoration: none;
        color: inherit;
    }

    .menu-item:hover {
        background-color: var(--shade-color);
        color: var(--primary-color) !important;
    }

    .menu-icon {
        width: 48px;
        height: 48px;
        background:  var(--shade-color);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        color: #6b7280;
    }

    .menu-icon i {
        font-size: 20px;
        color: var(--bs-secondary-color) !important;
    }

.menu-label {
    font-size: 16px;
    font-weight: 500;
}

/* Disabled state styling */
a[disabled] {
    opacity: 0.5;
    cursor: not-allowed !important;
    color: #6c757d; /* Gray color */
    pointer-events: none; /* Prevents all click events */
    text-decoration: none;
}

/* Alternative: if you want to use a class instead */
a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #6c757d;
    pointer-events: none;
    text-decoration: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.notebooks-app {
    width: 100%;
}

/* Tabs */
.filter-tabs {
    display: flex;
    align-items: center;
    margin: 10px;
}

.filter-tab {
    border: none;
    background: transparent;
    padding: 8px 12px;
    margin-right: 6px;
    border-radius: 6px;
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: #f1f3f5;
    color: #000;
}

.filter-tab.active {
    background: #0d6efd;
    color: #fff;
}

.tab-badge {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 6px;
}

.filter-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Add button container */
.add_item_button_container {
    display: flex;
    align-items: center;
}

.add_item_button {
    display: flex;
    gap: 4px;
}

/* Notebook card */
.notebook-card {
    transition: all 0.2s ease;
    border-radius: 10px;
}

.notebook-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.notebook-icon {
    font-size: 22px;
}

/* Toast container spacing fix */
#toast-container .toast {
    margin-bottom: 10px;
}

/* Small screens */
@media (max-width: 768px) {
    .filter-tabs {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .add_item_button_container {
        width: 100%;
        justify-content: flex-end;
    }

    .filter-tab {
        font-size: 13px;
        padding: 6px 10px;
    }
}

.tab-content-fade {
    animation: fadeIn 0.3s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
    gap: 0.2rem;
    justify-content: center;
}

@media (max-width: 576px) {
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0rem !important;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
    }

    .nav-pills .nav-link {
        flex: 0 0 auto;
        padding: 0.5rem .65rem !important;
        /* smaller padding */
        font-size: 0.85rem;
        /* smaller font */
        margin: 0.25rem 0.3rem !important;
    }

    .nav-pills .badge-tab {
        font-size: 0.7rem;
        /* slightly smaller badge */
        padding: 0.15rem 0.4rem;
    }
}

.nav-pills .nav-link {
    padding: 0.75rem 1rem;
    margin: 0 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    /* prevent text wrapping inside tabs */
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color, #6366f1);
    transform: translateY(-1px);
}

.nav-pills .nav-link.active {
    background: var(--primary-color, #ac76ff);
    color: white !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-pills .nav-link.active .badge-tab {
    font-size: 0.75rem;
    background: white;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
}