/* E-Library tab */
.elibrary-pane {
    padding: 0;
}

.elibrary-hero {
    background: linear-gradient(135deg, #0e7490, #0891b2 55%, #1ecfe4 95%);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.elibrary-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    right: -60px;
    top: -80px;
}

.elibrary-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.elibrary-hero-content {
    color: #e2e8f0;
}

.elibrary-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 0.75rem;
}

.elibrary-hero-title-wrap {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.elibrary-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fbbf24;
}

.elibrary-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #fff;
    text-transform: uppercase;
}

.elibrary-subtitle {
    margin: 0.75rem 0 0;
    color: rgba(241, 245, 249, 0.9);
    max-width: 540px;
}

.elibrary-hero-tags {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: #e2e8f0;
}

.elibrary-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}

.elibrary-search,
.elibrary-filter {
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
}

.elibrary-search {
    flex: 1 1 320px;
    min-width: 220px;
}

.elibrary-search input {
    border: none;
    outline: none;
    width: 100%;
}

.elibrary-filter {
    flex: 0 0 220px;
}

.elibrary-filter select {
    border: none;
    outline: none;
    width: 100%;
}

.elibrary-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.elibrary-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), #ffffff);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.elibrary-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.25));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: -1;
}

.elibrary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.12);
}

.elibrary-card:hover::before {
    opacity: 1;
}

.elibrary-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.elibrary-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.elibrary-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.elibrary-card-icon i {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.elibrary-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.elibrary-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    flex: 1 1 auto;
}

.elibrary-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.elibrary-card-note {
    font-size: 0.85rem;
    color: #475569;
}

.elibrary-card-footer a {
    text-decoration: none;
    color: #1d4ed8;
    font-weight: 600;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.elibrary-card-footer a:hover {
    text-decoration: underline;
}

.elibrary-empty {
    text-align: center;
    color: #475569;
    padding: 2rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
}

@media (max-width: 768px) {
    .elibrary-hero {
        padding: 1.5rem;
    }

    .elibrary-hero-inner {
        flex-direction: column;
    }

    .elibrary-controls {
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }

    .elibrary-search input,
    .elibrary-filter select {
        min-width: unset;
        width: 100%;
    }
}

.elibrary-search input {
    border: none;
    outline: none;
    min-width: 320px;
}

.elibrary-filter select {
    border: none;
    outline: none;
    min-width: 200px;
}
