/* ── Tab Navigation ── */
.prescribed-books .book-tab-wrapper {
margin-bottom: 45px;
background: #fff;
padding: 10px;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.prescribed-books .book-tab-scroll {
display: flex;
overflow-x: auto;
gap: 8px;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
padding-bottom: 5px;
}
.prescribed-books .book-tab-scroll::-webkit-scrollbar {
height: 5px;
}
.prescribed-books .book-tab-scroll::-webkit-scrollbar-thumb {
background-color: #cbd5e1;
border-radius: 10px;
}
.prescribed-books .book-tab {
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
color: #64748b;
background: transparent;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
white-space: nowrap;
}
.prescribed-books .book-tab:hover {
color: var(--it-theme-1, #1a6b5c);
background: #f0fdfa;
}
.prescribed-books .book-tab.active {
color: #fff;
background: var(--it-theme-1, #1a6b5c);
box-shadow: 0 4px 12px rgba(26, 107, 92, 0.25);
}

/* ── Tab Panels ── */
.prescribed-books .book-panel {
display: none;
animation: prescribedBookIn 0.4s ease;
}
.prescribed-books .book-panel.active {
display: block;
}

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

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

/* ── Premium Book Card Layout ── */
.prescribed-books .book-card {
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 16px;
background: #fff;
height: 100%;
border: 1px solid #e2e8f0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.prescribed-books .book-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Content Area */
.prescribed-books .book-card-body {
padding: 24px;
flex-grow: 1;
}
.prescribed-books .book-subject {
display: inline-block;
font-size: 11px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
padding: 4px 12px;
border-radius: 20px;
margin-bottom: 16px;
}
.prescribed-books .book-title {
font-size: 18px;
font-weight: 700;
color: #0f172a;
line-height: 1.4;
margin-bottom: 14px;
}
.prescribed-books .book-meta-info {
font-size: 13px;
color: #64748b;
display: flex;
flex-direction: column;
gap: 4px;
}
.prescribed-books .book-meta-info strong {
color: #334155;
}

/* Dynamic Left Edge Border Styles & Pill Colors */
.prescribed-books .subject-green {
border-left: 4px solid var(--it-theme-1, #1a6b5c);
}
.prescribed-books .subject-green .book-subject {
background: #e6f5f0;
color: var(--it-theme-1, #1a6b5c);
}
.prescribed-books .subject-teal {
border-left: 4px solid #0a7565;
}
.prescribed-books .subject-teal .book-subject {
background: #e0f4f0;
color: #0a7565;
}
.prescribed-books .subject-blue {
border-left: 4px solid #1A5276;
}
.prescribed-books .subject-blue .book-subject {
background: #e8f1fb;
color: #1A5276;
}
.prescribed-books .subject-pink {
border-left: 4px solid #8e2461;
}
.prescribed-books .subject-pink .book-subject {
background: #fdedf4;
color: #8e2461;
}
.prescribed-books .subject-orange {
border-left: 4px solid #9a5d0a;
}
.prescribed-books .subject-orange .book-subject {
background: #fef3e2;
color: #9a5d0a;
}
.prescribed-books .subject-purple {
border-left: 4px solid #5b3fa0;
}
.prescribed-books .subject-purple .book-subject {
background: #f0ecfb;
color: #5b3fa0;
}

/* Modern Action Strip */
.prescribed-books .book-card-actions {
display: flex;
border-top: 1px solid #f1f5f9;
background: #f8fafc;
padding: 12px 16px;
gap: 10px;
}
.prescribed-books .book-card-actions a {
flex: 1;
text-align: center;
padding: 8px 12px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
border-radius: 8px;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.prescribed-books .btn-view {
background: #fff;
color: #475569;
border: 1px solid #cbd5e1;
}
.prescribed-books .btn-view:hover {
background: #f1f5f9;
color: #1e293b;
border-color: #94a3b8;
}
.prescribed-books .btn-download {
background: var(--it-theme-1, #1a6b5c);
color: #fff;
border: 1px solid transparent;
}
.prescribed-books .btn-download:hover {
background: #145347;
color: #fff;
box-shadow: 0 4px 8px rgba(26, 107, 92, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
.prescribed-books .book-tab {
padding: 10px 18px;
font-size: 13px;
}
.prescribed-books .book-card-body {
padding: 20px;
}
.prescribed-books .book-title {
font-size: 16px;
}
}
.prescribed-books [hidden]{display:none!important}.prescribed-books .book-card{overflow-wrap:anywhere}.prescribed-books .book-card-actions [aria-disabled="true"]{opacity:.5;cursor:not-allowed}.prescribed-books .book-tab:focus-visible,.prescribed-books .book-card-actions a:focus-visible{outline:3px solid var(--it-theme-1);outline-offset:3px}
