/* General reset & variables */
:root {
    --primary: #607731;
    --primary-hover: #4d6027;
    --secondary: #f4f6fa;
    --dark: #1e293b;
    --light: #ffffff;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --success: #10b981;
    --warning: #ddd067;
    --danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: #fafbfc;
    color: var(--dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header & Navigation */
.header {
    background-color: var(--light);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-link {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-form {
    flex: 0 1 300px;
    position: relative;
    margin: 0 15px;
}

.search-input {
    width: 100%;
    padding: 8px 16px;
    padding-right: 40px;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    font-family: var(--font);
    font-size: 13px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--light);
    box-shadow: 0 0 0 3px rgba(96, 119, 49, 0.15);
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.search-button:hover {
    color: var(--primary);
}

/* Hamburger Menu Toggle Button */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--dark);
    cursor: pointer;
    padding: 5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

/* Responsive Header Media Query */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--light);
        border-bottom: 1px solid var(--light-gray);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
        align-items: stretch;
        z-index: 999;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: flex;
        padding: 8px 0;
        width: 100%;
    }
    
    .header-container {
        position: relative;
        flex-wrap: wrap;
    }
    
    .search-form {
        order: 3;
        flex: 1 1 100%;
        margin: 15px 0 0 0;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

/* Category Quick Menu */
.quick-menu-bar {
    background-color: var(--light);
    border-bottom: 1px solid var(--light-gray);
    overflow-x: auto;
    white-space: nowrap;
}

.quick-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
}

.quick-link {
    padding: 6px 16px;
    border-radius: 20px;
    background-color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

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

/* Main Container */
.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    min-height: 70vh;
}

/* Home Section Styles */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Premium Card Design */
.book-card {
    background: var(--light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
    width: 100%;
    padding-top: 140%; /* 5:7 Aspect Ratio */
    position: relative;
    background-color: #f1f5f9;
}

.book-cover-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.book-cover-fallback {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: var(--light);
}

.book-cover-fallback .title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.book-cover-fallback .author {
    font-size: 11px;
    opacity: 0.8;
}

.badge-premium {
    position: absolute;
    top: 10px; right: 10px;
    background-color: var(--warning);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 10;
}

.book-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.book-author {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-badge-free {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Detail Book Page */
.detail-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-gray);
    margin-bottom: 40px;
}

.detail-cover {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 15px;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 20px;
    align-items: center;
}

.detail-desc {
    font-size: 16px;
    color: #334155;
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* PDF Viewer Halaman Baca */
.reader-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0f172a;
    border-radius: 0;
    overflow: hidden;
}

.reader-header {
    background-color: #1e293b;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light);
}

.reader-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #334155;
}

.pdf-viewer-frame {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    border: none;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.sidebar {
    background-color: var(--light);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    padding: 20px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--gray);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(96, 119, 49, 0.1);
    color: var(--primary) !important;
}

.dashboard-content {
    background-color: var(--light);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 60vh;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-lbl {
    font-size: 14px;
    color: var(--gray);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-approved {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
}

.price-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.price-card.featured::before {
    content: "Paling Populer";
    position: absolute;
    top: 15px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.price-amt {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin: 20px 0;
}

/* Footer styling */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Flash alerts */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sambutan Seksi */
.greetings-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 45px;
}

.greetings-card {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 25px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    align-items: start;
    border: 1px solid #e2e8f0;
}

@media (max-width: 992px) {
    .greetings-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .greetings-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.greetings-photo-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f1f5f9;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.greetings-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.greetings-photo-fallback {
    text-align: center;
    padding: 20px;
    color: var(--gray);
}

.greetings-photo-fallback i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 10px;
}

.greetings-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.greetings-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.greetings-text {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

.greetings-text p {
    margin-bottom: 15px;
}

/* Galeri Kegiatan */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.gallery-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-img-container {
    height: 180px;
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    overflow: hidden;
    position: relative;
}

.gallery-img-container i {
    font-size: 36px;
    color: var(--primary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 15px 20px;
}

.gallery-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.gallery-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Video Kegiatan */
.video-player-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    background: #0f172a;
    border: 1px solid #334155;
    margin-bottom: 50px;
}

.video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Baru Page Layout */
.form-page-container {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .form-page-container {
        padding: 25px;
        margin: 20px auto;
    }
}

.form-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-page-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.form-page-header p {
    font-size: 14px;
    color: var(--gray);
}

.form-page-group {
    margin-bottom: 20px;
}

.form-page-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-page-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-page-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--light);
    box-shadow: 0 0 0 3px rgba(96, 119, 49, 0.15);
}

.form-page-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    resize: vertical;
}

.form-page-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--light);
    box-shadow: 0 0 0 3px rgba(96, 119, 49, 0.15);
}

/* Responsive Dashboard Layout Media Query */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 30px 0;
}

.page-item {
    display: inline-block;
}

.page-link,
.page-item span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background-color: var(--light);
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.page-item.active .page-link,
.page-item.active span {
    background-color: var(--primary);
    color: var(--light) !important;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(96, 119, 49, 0.25);
}

.page-item.disabled .page-link,
.page-item.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f8fafc;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Fix default Laravel Tailwind & Bootstrap 5 pagination styling */
nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
}

/* Hide duplicate and redundant structures in Bootstrap 5 and Tailwind pagination */
nav[role="navigation"] .d-flex.justify-content-between.flex-grow-1,
nav[role="navigation"] .d-md-none,
nav[role="navigation"] > div:first-child {
    display: none !important;
}

nav[role="navigation"] p.small,
nav[role="navigation"] .text-muted,
nav[role="navigation"] > div:last-child > div:first-child {
    display: none !important;
}

nav[role="navigation"] > div:last-child {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

nav[role="navigation"] .flex.justify-between.flex-1 {
    display: none !important;
}

/* Hero Banner Styling */
.hero-banner {
    background: linear-gradient(135deg, #607731 0%, #4d6027 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.hero-banner-content {
    max-width: 600px;
}

.hero-banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-banner-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-premium,
.btn-hero-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-premium {
    background-color: #ddd067;
    color: #000000 !important;
}

.btn-hero-premium:hover {
    background-color: #c9bd57;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-hero-catalog {
    background-color: #ffffff;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.btn-hero-catalog:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-banner-icon {
    font-size: 100px;
    opacity: 0.15;
    padding-right: 30px;
}

@media (max-width: 992px) {
    .hero-banner-icon {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-banner-title {
        font-size: 24px;
    }

    .hero-banner-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-banner-buttons {
        justify-content: center;
    }

    .btn-hero-premium,
    .btn-hero-catalog {
        width: 100%;
        justify-content: center;
        margin: 0 !important;
    }
}

/* Detail Book Responsive */
@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .detail-cover {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .detail-info h1 {
        font-size: 22px;
        text-align: center;
    }

    .detail-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .detail-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .detail-actions a,
    .detail-actions button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Reader Header Custom & Responsive Styles */
.reader-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-reader-back {
    background-color: #334155;
    color: white !important;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-reader-back:hover {
    background-color: #475569;
}

.reader-title {
    font-weight: 600;
    font-size: 16px;
}

.reader-author {
    font-size: 13px;
    opacity: 0.7;
}

.reader-badge-premium {
    color: var(--warning);
    font-size: 13px;
    font-weight: 600;
}

.reader-badge-free {
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .reader-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 15px;
    }
    
    .reader-header-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .btn-reader-back {
        width: 100%;
        justify-content: center;
    }
}
