/* ========================================
   OPENREADERS - PROFESSIONAL DARK THEME
   ======================================== */

/* Root Variables */
:root {
    --primary-dark: #0f0f1e;
    --secondary-dark: #1a1a2e;
    --tertiary-dark: #16213e;
    --accent-primary: #e94560;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #06b6d4;
    --text-primary: #f5f5f7;
    --text-secondary: #b0b0b8;
    --text-tertiary: #808088;
    --border-color: #2d2d3d;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(233, 69, 96, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.320, 1);
    --transition-smooth: 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    --transition-slow: 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.navbar.sticky-nav {
    box-shadow: 0 4px 30px rgba(233, 69, 96, 0.1);
}

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

.nav-brand {
    flex: 1;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.logo:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo-icon-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35 0%, #004e89 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-fast);
}

.logo:hover .logo-icon-img {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.logo:hover .logo-text {
    transform: scale(1.05);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--tertiary-dark) 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-tertiary);
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.5);
}

.glow-button {
    position: relative;
}

.glow-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.glow-button:hover::before {
    opacity: 0.5;
    filter: blur(10px);
}

/* Animations */
.fade-in {
    animation: fadeIn var(--transition-slow) ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn var(--transition-slow) ease-out forwards;
    animation-delay: 0.2s;
}

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

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(odd) {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--primary-dark) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

.view-all-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.view-all-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.view-all-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.story-card, .book-card {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.story-card::before, .book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.story-card:hover, .book-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(233, 69, 96, 0.25);
}

.story-card:hover::before, .book-card:hover::before {
    opacity: 1;
}

.story-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.story-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.story-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.story-meta {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   WHATS NEW GRID
   ======================================== */

.whats-new-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.whats-new-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    padding: 2px;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.whats-new-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(233, 69, 96, 0.4);
}

.whats-new-inner {
    background: var(--secondary-dark);
    border-radius: 10px;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.whats-new-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
    text-transform: uppercase;
}

.whats-new-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.whats-new-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.whats-new-date {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   INCIDENTS GRID
   ======================================== */

.incidents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* ========================================
   BOOKS GRID & CARDS
   ======================================== */

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

.book-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.book-cover {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.book-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.book-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.book-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn-sample {
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-sample:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-buy {
    padding: 10px 15px;
    background: var(--accent-primary);
    color: white;
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-buy:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-subscribe {
    padding: 14px 30px;
    background: white;
    color: var(--accent-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn var(--transition-smooth) ease-out;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--secondary-dark);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    animation: slideUp var(--transition-smooth) ease-out;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-primary);
}

.story-modal-body {
    color: var(--text-primary);
}

.story-modal-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.story-modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.story-modal-content {
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.story-modal-content p {
    margin-bottom: 20px;
}

.story-interaction {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding: 8px 15px;
    border-radius: 6px;
}

.interaction-btn:hover {
    color: var(--accent-primary);
    background: rgba(233, 69, 96, 0.1);
    transform: translateY(-2px);
}

.interaction-btn.liked {
    color: var(--accent-primary);
}

.comment-section {
    margin-top: 30px;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.comment-input {
    flex: 1;
    padding: 12px 15px;
    background: var(--tertiary-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-input::placeholder {
    color: var(--text-tertiary);
}

.btn-comment {
    padding: 12px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-comment:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.comments-list {
    list-style: none;
}

.comment-item {
    padding: 15px;
    background: var(--tertiary-dark);
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-primary);
}

.comment-author {
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.comment-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 10px;
        background: var(--secondary-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whats-new-grid, .incidents-grid, .books-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 25px;
        max-height: 95vh;
    }

    .story-modal-title {
        font-size: 1.8rem;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .book-buttons {
        grid-template-columns: 1fr;
    }

    .story-interaction {
        flex-direction: column;
    }

    .interaction-btn {
        width: 100%;
        justify-content: center;
    }

    .comment-form {
        flex-direction: column;
    }

    .btn-comment {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .story-card, .book-card {
        padding: 20px;
    }

    .story-title {
        font-size: 1.3rem;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .modal-content {
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    .story-modal-title {
        font-size: 1.5rem;
    }

    .story-modal-content {
        font-size: 1rem;
    }

    .footer-content {
        gap: 20px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.hidden {
    display: none;
}

/* PDF Viewer Styles */
.pdf-modal-content {
    max-width: 1100px;
}

.pdf-modal-body {
    position: relative;
}

.pdf-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.pdf-viewer-container {
    width: 100%;
    height: 70vh;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: auto;
    position: relative;
}

.pdf-viewer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pdf-page {
    display: flex;
    justify-content: center;
}

.pdf-unlock-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(10,10,18,0) 40%, rgba(10,10,18,0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.pdf-unlock-inner {
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--border-color);
    padding: 18px 24px;
    border-radius: 10px;
    text-align: center;
    color: var(--text-primary);
}

/* blurred pages when locked */
.pdf-locked .pdf-page canvas {
    filter: blur(6px) grayscale(0.1);
    transform: scale(1.01);
}


.loading {
    opacity: 0.5;
    pointer-events: none;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

.warning {
    color: var(--warning-color);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
