/* ==========================================================================
   MediaTasker Dialog & Modal Styles (Clean with subtle touches)
   ========================================================================== */

.mediat_overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mediat_overlay-backdrop.is-active {
    display: block;
}

/* Base Dialog Styles */
.mediat_dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 30px;
    z-index: 100001;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    margin: 0;
}

.mediat_dialog[open] {
    display: block;
}




.mediat_dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Button style overrides for dialogs to match floating menu feel */
.mediat_dialog .mediat_btn-primary,
.mediat_dialog .mediat_btn-danger,
.mediat_dialog .mediat_btn-neutral {
    border-radius: 24px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.mediat_dialog .mediat_btn-neutral {
    background: #f0f0f1;
    color: #3c434a;
    border: none;
}

.mediat_dialog .mediat_btn-neutral:hover {
    background: #e2e2e3;
    transform: translateY(-1px);
}

/* Media Viewer Modal - Subtle Upgrades */
.mediat_viewer-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1300px;
    height: 88vh;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

.mediat_viewer-modal[open] {
    display: block;
}

.mediat_viewer-layout {
    display: grid;
    grid-template-columns: 2fr 360px;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mediat_viewer-main {
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mediat_viewer-sidebar {
    background: #fff;
    border-left: 1px solid #eee;
}

.mediat_viewer-close:hover {
    background: #ea2027;
    transform: scale(1.05);
}

.mediat_sidebar-header {
    padding: 24px 24px 0;
}

.mediat_asset-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    word-break: break-all;
}

.mediat_sidebar-body {
    padding: 24px;
    height: calc(100% - 100px);
    overflow-y: auto;
}



.mediat_section-title {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Alert/Confirm */
.mediat_custom-dialog {
    width: 420px;
    text-align: center;
}

.mediat_custom-dialog-message {
    margin-bottom: 30px;
    color: #444;
    line-height: 1.5;
    max-height: 50vh;
    overflow-y: auto;
}

.mediat_custom-dialog-message ul {
    text-align: left;
    margin-top: 15px;
    margin-bottom: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.mediat_custom-dialog-actions {
    justify-content: center;
}

@media (max-width: 1024px) {
    .mediat_viewer-layout {
        grid-template-columns: 1fr;
    }
}
