.nav-tabs .nav-link {
    border: none;
    color: #666;
    padding: 1rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    color: #222f6e;
    background: none;
    font-weight: 600;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #222f6e;
    border-radius: 3px 3px 0 0;
}

.view-toggle {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
    display: inline-flex;
    gap: 0.5rem;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: none;
    color: #666;
    transition: all 0.3s ease;
}

.view-toggle button.active {
    background: white;
    color: #222f6e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #222f6e;
    box-shadow: 0 4px 12px rgba(34, 47, 110, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.item-card.grid-view {
    padding: 1.5rem;
    text-align: center;
}

.item-card.list-view {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #222f6e20;
}

.item-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.list-view .item-icon {
    margin: 0;
    width: 40px;
    height: 40px;
}

.item-card:hover .item-icon {
    transform: scale(1.1);
}

.item-name {
    color: #333;
    font-weight: 500;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.pagination {
    margin-top: 2rem;
    justify-content: center;
}

.unit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb20, #222f6e20);
    color: #2563eb;
    transition: all 0.3s ease;
}

.unit-icon i {
    font-size: 32px;
}

.unit-icon svg {
    width: 32px;
    height: 32px;
}

.item-card:hover .unit-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2563eb30, #222f6e30);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Alternative gradient styles */
.unit-icon.style-2 {
    background: linear-gradient(135deg, #2196F320, #03A9F420);
    color: #2196F3;
}

.unit-icon.style-3 {
    background: linear-gradient(135deg, #FF980020, #FF572220);
    color: #FF9800;
}

.unit-icon.style-4 {
    background: linear-gradient(135deg, #E91E6320, #9C27B020);
    color: #E91E63;
}

/* List view adjustments */
.list-view .unit-icon,
.list-view .course-icon {
    width: 48px;
    height: 48px;
    margin: 0 1rem 0 0;
}

.list-view .unit-icon i,
.list-view .course-icon i,
.list-view .unit-icon svg,
.list-view .course-icon svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}