/* PDF Modal */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-container {
    background: #1f2937;
    border-radius: 15px;
    width: 95%;
    max-width: 900px;
    height: 95%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.pdf-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.pdf-title {
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.pdf-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-close-btn:active {
    background: rgba(255, 255, 255, 0.4);
}

.pdf-controls {
    background: #374151;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pdf-nav-btn,
.pdf-zoom-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.pdf-zoom-btn {
    width: 40px;
    padding: 8px;
}

.pdf-nav-btn:active,
.pdf-zoom-btn:active {
    background: #1e7a96;
}

#page-info {
    color: white;
    font-size: 0.85rem;
    min-width: 100px;
    text-align: center;
}

.pdf-content {
    flex: 1;
    overflow: auto;
    background: #525252;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

#pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.audio-player-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-icon {
    font-size: 24px;
}

.audio-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-close-btn:active {
    background: #e5e7eb;
}

.audio-player audio {
    width: 100%;
}