/* ==========================================================================
   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;
}

/* <fs_premium_only> */
.mediat_dialog-comment {
    width: 440px;
    max-width: 90vw;
}

.mediat_dialog-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
}

.mediat_dialog-info {
    margin: -8px 0 20px 0;
    font-size: 14px;
    color: #555;
    background: #f0f6fb;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid #1e90ff;
}

.mediat_dialog-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    min-height: 120px;
    margin-bottom: 24px;
    font-size: 15px;
    resize: none;
    box-sizing: border-box;
    display: block;
}

.mediat_dialog-input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

/* </fs_premium_only> */


.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;
}

/* <fs_premium_only> */
.mediat_asset-info {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.mediat_info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.mediat_info-row:last-child {
    margin-bottom: 0;
}

.mediat_info-label {
    color: #646970;
}

.mediat_info-value {
    color: #1d2327;
    font-weight: 500;
}

.mediat_exif-section {
    margin-top: 12px;
}

.mediat_exif-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-top: 1px solid #e2e4e7;
    font-size: 13px;
}

.mediat_exif-row:last-child {
    border-bottom: 1px solid #e2e4e7;
}

.mediat_exif-label {
    color: #646970;
}

.mediat_exif-value {
    color: #1d2327;
    font-weight: 500;
}

/* </fs_premium_only> */

.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;
    }
}
