/* ============================================ */
/* ORIGINAL STYLES - KEPT INTACT */
/* ============================================ */

.media-files {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enterprise-media-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* Preview Section - Original Sizes */
.media-preview-image,
.media-preview-video {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-preview-image:hover .media-overlay {
    opacity: 1;
}

.media-overlay i {
    color: white;
    font-size: 2rem;
}

/* Video Overlay - Transparent */
.video-overlay.transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button.transparent {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.play-button.transparent i {
    color: var(--primary-color, #0d6efd);
    font-size: 2rem;
    margin-left: 4px;
}

.media-preview-video:hover .video-overlay.transparent {
    background: rgba(0, 0, 0, 0.2);
}

.media-preview-video:hover .play-button.transparent {
    transform: scale(1.1);
    background: white;
}

/* Video placeholder */
.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dp-brand-gradient, linear-gradient(115deg, #0b1b34 0%, #0d2f63 45%, #066ac9 100%));
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
}

/* PDF and Document previews - Original */
.media-preview-pdf,
.media-preview-document {
    padding: 2rem;
    background: #f8f9fa;
    text-align: center;
}

.pdf-preview-wrapper,
.document-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pdf-icon {
    font-size: 4rem;
    color: #dc3545;
}

.document-icon {
    font-size: 4rem;
    color: #6c757d;
}

.pdf-info,
.document-info {
    text-align: center;
}

.pdf-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-pdf-view {
    background: var(--primary-color, #0d6efd);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pdf-view:hover {
    background: var(--secondary-color, #0b5ed7);
    transform: translateY(-2px);
}

.document-type {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.document-format {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Media Info Section - Original */
.media-info-section {
    padding: 1.5rem;
}

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

.media-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.media-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ============================================ */
/* MEDIA META BAR - WITH BADGE INSIDE */
/* ============================================ */
.media-meta-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.media-meta-bar.horizontal {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.media-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    white-space: nowrap;
}

.media-badge-image { background: #e3f2fd; color: #1976d2; }
.media-badge-video { background: #f3e5f5; color: #7b1fa2; }
.media-badge-audio { background: #e8f5e9; color: #388e3c; }
.media-badge-document { background: #fff3e0; color: #f57c00; }

.upload-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.media-actions {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.btn-media-action {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-download-primary {
    background: var(--primary-color, #0d6efd);
    color: white;
}

.btn-download-primary:hover {
    background: var(--secondary-color, #0b5ed7);
    transform: translateY(-2px);
}

.btn-preview {
    background: #6c757d;
    color: white;
}

.btn-preview:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-download {
    background: var(--primary-color, #0d6efd);
    color: white;
}

.btn-download:hover {
    background: var(--secondary-color, #0b5ed7);
}

/* Audio Styles - Original */
.audio-full-layout {
    padding: 1.5rem;
}

.audio-header-section {
    margin-bottom: 1.5rem;
}

.audio-icon-title {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.audio-main-icon {
    font-size: 2.5rem;
    color: var(--primary-color, #0d6efd);
}

.audio-title-section {
    flex: 1;
}

.audio-player-section {
    margin-bottom: 1.5rem;
}

.custom-audio-player-full {
    width: 100%;
    height: 40px;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 576px) {
    .media-meta-bar {
        gap: 0.5rem;
    }

    .upload-date {
        font-size: 0.75rem;
    }

    .btn-media-action {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }

    @media (max-width: 480px) {
        .download-text,
        .preview-text {
            display: none;
        }

        .btn-media-action {
            padding: 0.35rem;
            width: 32px;
            height: 32px;
            justify-content: center;
        }

        .btn-media-action i {
            margin: 0;
        }
    }
}

.no-media-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}