/* Media Drawer Styles */
.media-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: flex;
    visibility: hidden;
}

.media-drawer.show {
    right: 0;
    visibility: visible;
}

.media-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.media-drawer.show .media-drawer-overlay {
    opacity: 1;
}

.media-drawer-content {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.media-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.media-drawer-title {
    margin-bottom: 0;
}

.media-drawer-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

/* Dark mode support */
body.dark .media-drawer-content {
    background-color: #1f1f1f;
    color: #fff;
}

body.dark .media-drawer-header {
    border-bottom-color: #444;
}

body.dark .btn-close {
    filter: invert(1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .media-drawer {
        max-width: 100%;
    }
}
