.audio-content {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
}/**
 * Media Display Application - Viewer Styles
 * 
 * License: This software is provided under a proprietary license.
 * Unauthorized reproduction, distribution, or sale of this software is strictly prohibited.
 * Use of this software is permitted only with a valid license obtained through proper purchase.
 */

/* Media Viewer */
.media-viewer {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

.viewer-header a {
    color: white;
    text-decoration: none;
}

.viewer-header a:hover {
    text-decoration: underline;
}

/* Media Container */
.media-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* Media Items */
.media-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.media-item.active {
    display: flex;
    z-index: 10;
}

/* Media Content Styles */
.media-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-content {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.video-content {
    width: 100%;
    height: 100%;
}

.pdf-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    color: #333;
}

.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    z-index: 20;
}

.pdf-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin: 0 0.5rem;
}

.pdf-page-info {
    color: white;
    margin: 0 1rem;
}

.pdf-canvas {
    flex: 1;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background-color: white;
}

.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.iframe-content {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

.original-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.original-link:hover {
    opacity: 1;
}

.iframe-container:hover .original-link {
    opacity: 1;
}

.text-content {
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow: auto;
    background-color: white;
    color: #333;
}

.text-content pre {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.stl-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.stl-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    border-radius: 0.25rem;
    z-index: 20;
}

.stl-controls button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    margin: 0 0.25rem;
}

.other-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.file-info {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.file-info i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-info h3 {
    margin-bottom: 1rem;
}

.file-info p {
    margin-bottom: 0.5rem;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
    text-decoration: none;
}

.download-btn:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.error-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0.5rem;
}

.empty-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Watermark */
.watermark {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    opacity: 0.7;
    z-index: 50;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.watermark-logo {
    height: 2rem;
    margin-right: 0.5rem;
}

.watermark-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* File Info Overlay */
.file-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 500;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Attribution */
.attribution {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    z-index: 60;
    max-width: 50%;
    text-align: right;
}

.uploader {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.note {
    font-style: italic;
    font-size: 0.9rem;
}

/* Controls */
.viewer-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    z-index: 100;
}

.nav-controls {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.secondary-controls {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 1rem;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.music-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

/* File List Sidebar */
.file-list-sidebar {
    position: absolute;
    top: 0;
    right: -25rem;
    width: 25rem;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.file-list-sidebar.active {
    right: 0;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.file-list-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.file-list-tools button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.file-list-tools button:hover {
    background-color: #34495e;
}

.file-list-tools select {
    flex: 1;
    min-width: 8rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    border-radius: 0.25rem;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.file-item:hover {
    background-color: var(--surface-light);
}

.file-item-checkbox {
    margin-right: 0.75rem;
}

.file-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-light);
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.file-item-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.file-item-details {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-info {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

.file-item-controls {
    margin-left: 0.75rem;
}

.file-item-controls button {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
}

.file-item-controls button:hover {
    color: var(--primary-color);
}

/* Date and Time */
.date-time {
    position: absolute;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 0.25rem;
    z-index: 90;
    font-weight: 500;
}

.top-left {
    top: 1.5rem;
    left: 1.5rem;
}

.top-right {
    top: 1.5rem;
    right: 1.5rem;
}

.bottom-left {
    bottom: 1.5rem;
    left: 1.5rem;
}

.bottom-right {
    bottom: 1.5rem;
    right: 1.5rem;
}

/* Banner */
.banner {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    z-index: 80;
    font-size: 1.5rem;
    font-weight: 500;
}

.banner a {
    color: white;
    text-decoration: none;
}

.banner a:hover {
    text-decoration: underline;
}

/* Social Sharing */
.social-icons {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 70;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
}

/* Message Overlay */
.message-overlay {
    position: absolute;
    left: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 300;
}

.message-top {
    top: 0;
}

.message-middle {
    top: 50%;
    transform: translateY(-50%);
}

.message-bottom {
    bottom: 0;
}

.message-content {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .viewer-controls {
        bottom: 1rem;
        padding: 0.3rem 0.75rem;
    }
    
    .control-btn {
        font-size: 1rem;
        width: 2rem;
        height: 2rem;
        margin: 0 0.3rem;
    }
    
    .file-list-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .watermark {
        bottom: 4rem;
        right: 1rem;
    }
    
    .watermark-text {
        font-size: 1rem;
    }
    
    .attribution {
        bottom: 4rem;
        right: 1rem;
        max-width: 80%;
    }
    
    .date-time {
        font-size: 0.9rem !important;
        padding: 0.3rem 0.6rem;
    }
    
    .social-icons {
        bottom: 4rem;
        left: 1rem;
    }
    
    .social-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .message-content {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .viewer-controls {
        width: 90%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-controls {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .secondary-controls {
        border-left: none;
        padding-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .file-info-overlay {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-meta {
        margin-top: 0.25rem;
    }
}