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

/* Utility classes */
.hidden {
    display: none !important;
}

:root {
    --primary-purple: #8b5cf6;
    --secondary-purple: #a855f7;
    --accent-purple: #c084fc;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a15;
    --card-bg: #1a1a2e;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --glow-purple: rgba(139, 92, 246, 0.3);
}

body {
    background: var(--dark-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--glow-purple) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 50%);
}

.app {
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo h1 {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* prevent vertical misalignment */
}

.nav-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s;
}

.nav-btn:hover:before {
    left: 100%;
}

.nav-btn:hover,
.nav-btn.active {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    box-shadow: 0 0 20px var(--glow-purple);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.menu-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(153, 69, 255, 0.2), transparent);
    transition: left 0.5s;
}

.menu-btn:hover:before {
    left: 100%;
}

.menu-btn:hover,
.menu-btn.active {
    border-color: #9945ff;
    color: #9945ff;
    box-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
    text-shadow: 0 0 5px rgba(153, 69, 255, 0.5);
}

.section {
    display: none;
    margin-top: 30px;
}

.section.active {
    display: block;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.book-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.book-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.book-card:hover:before {
    transform: scaleX(1);
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-purple);
}

.book-cover {
    width: 100%;
    height: 200px;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.file-icon {
    font-size: 48px;
    color: #9945ff;
    text-shadow: 0 0 10px rgba(153, 69, 255, 0.5);
}

.file-title {
    color: #9945ff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.file-description {
    color: #8b7fb8;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-btn {
    background: transparent;
    border: 1px solid #555;
    color: #b19cd9;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    flex: 1;
}

.file-btn:hover {
    border-color: #9945ff;
    color: #9945ff;
    box-shadow: 0 0 5px rgba(153, 69, 255, 0.3);
}

.upload-form {
    margin-top: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 25px;
}

.terminal-label {
    color: #9945ff;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(153, 69, 255, 0.3);
}

.terminal-input,
.terminal-textarea {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #555;
    color: #b19cd9;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.terminal-input:focus,
.terminal-textarea:focus {
    outline: none;
    border-color: #9945ff;
    box-shadow: 0 0 10px rgba(153, 69, 255, 0.3);
}

.terminal-textarea {
    resize: vertical;
    min-height: 80px;
}

.terminal-file-input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #555;
    color: #b19cd9;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-file-input:hover {
    border-color: #9945ff;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.terminal-btn {
    background: linear-gradient(135deg, #9945ff, #7c3aed);
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.terminal-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.terminal-btn:hover:before {
    left: 100%;
}

.terminal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.4);
}

.terminal-btn.secondary {
    background: linear-gradient(135deg, #444, #555);
    color: #b19cd9;
}

.terminal-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(68, 68, 68, 0.4);
}

.loading {
    text-align: center;
    margin: 40px 0;
    font-style: italic;
}

.readme-content {
    margin-top: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    margin: 5% auto;
    border: 1px solid #9945ff;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(153, 69, 255, 0.3);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close {
    color: #b19cd9;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #9945ff;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #444;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cursor-line {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        margin: 10px;
        border-radius: 0;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .menu {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show entire image without cropping */
    background: var(--darker-bg); /* fill letterbox space */
}

.book-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.book-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.btn-purple {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
}

.btn-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Upload Form */
.upload-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-purple);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    font-size: 0.8rem;
}

/* Better file input styling */
.form-group input[type="file"]::file-selector-button {
    background: var(--primary-purple);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: var(--secondary-purple);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Upload Progress Bar */
.upload-progress {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.upload-progress.hidden {
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-weight: 500;
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.progress-percentage {
    font-weight: 600;
    color: var(--secondary-purple);
    font-size: 0.9rem;
}

.progress-bar {
    background: var(--darker-bg);
    border-radius: 1rem;
    height: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 1rem;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.file-name {
    font-weight: 500;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--primary-purple);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* About Main Card */
.about-main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.about-main-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* .about-icon styles already defined earlier; removed redundant empty block */
 .about-icon {
     font-size: 4rem; /* restore large emoji size */
     line-height: 1; /* prevent vertical shrink */
 }

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    margin: 2% auto;
    border: 1px solid var(--primary-purple);
    border-radius: 1rem;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: var(--primary-purple);
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notification {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.notification.success {
    border-color: #10b981;
}

.notification.success::before {
    background: #10b981;
}

.notification.error {
    border-color: #ef4444;
}

.notification.error::before {
    background: #ef4444;
}

.notification.info {
    border-color: var(--primary-purple);
}

.notification.info::before {
    background: var(--primary-purple);
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--darker-bg);
    color: var(--text-primary);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.removing {
    animation: slideOut 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

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

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .upload-form {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .form-group input[type="file"] {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .form-group input[type="file"]::file-selector-button {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-main-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .about-icon {
        font-size: 3rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }

    .reader-links {
        flex-direction: column;
        align-items: center;
    }

    .reader-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .notification {
        min-width: auto;
        max-width: 100%;
    }

    .upload-progress {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .progress-details {
        flex-direction: column;
        gap: 0.25rem;
    }

    .file-name {
        max-width: 100%;
    }

    .upload-info {
        gap: 0.75rem;
    }

    .info-item {
        font-size: 0.85rem;
    }

    .reader-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .reader-link {
        justify-content: center;
        font-size: 0.8rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

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

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

/* Info Banner for eBook Readers */
.info-banner {
    background: linear-gradient(135deg, var(--card-bg), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--primary-purple);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-content h4 {
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-item strong {
    color: var(--primary-purple);
    display: block;
    margin-bottom: 0.25rem;
}

.reader-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reader-link {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reader-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Message notifications */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.message.show {
    transform: translateX(0);
}

.message.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.message.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}