/* SumoWebTools - Video & audio converters. Light theme, purple accent, RTL-safe (logical properties). */
.mt-tool {
    --mt-purple-1: #6d28d9;
    --mt-purple-2: #a855f7;
    --mt-purple-soft: #f5f3ff;
    --mt-border: #ddd6fe;
    --mt-text: #1f2937;
    --mt-muted: #6b7280;
    --mt-success: #059669;
    color: var(--mt-text);
}
.mt-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-drop {
    position: relative;
    border: 2px dashed var(--mt-border);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 243, 255, .9), rgba(255, 255, 255, .7));
    transition: border-color .15s ease, background-color .15s ease;
    margin-block-end: 1rem;
}
.mt-drop.is-dragover { border-color: var(--mt-purple-2); background: var(--mt-purple-soft); }
.mt-drop:focus-within { border-color: var(--mt-purple-1); box-shadow: 0 0 0 3px rgba(109, 40, 217, .15); }
.mt-drop-label {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    padding: 2.25rem 1rem; cursor: pointer; text-align: center; margin: 0;
}
.mt-drop-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%; color: #fff;
    background: linear-gradient(135deg, var(--mt-purple-1), var(--mt-purple-2));
    box-shadow: 0 6px 18px rgba(109, 40, 217, .25); margin-block-end: .5rem;
}
.mt-drop-title { font-weight: 600; font-size: 1.05rem; }
.mt-drop-hint, .mt-muted { color: var(--mt-muted); }
.mt-small { font-size: .85rem; }
.mt-selected { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.mt-selected[hidden], .mt-drop-label[hidden] { display: none; }
.mt-selected-icon { color: var(--mt-purple-1); display: inline-flex; }
.mt-selected-name { font-weight: 600; word-break: break-all; flex: 1 1 auto; min-width: 0; }
.mt-selected-size { color: var(--mt-muted); }
.mt-link { color: var(--mt-purple-1); cursor: pointer; font-weight: 600; margin: 0; }
.mt-link:hover, .mt-link:focus { text-decoration: underline; }
.mt-subtitle, .mt-options { margin-block-end: 1rem; }
.mt-tool .form-text { margin-block: -.5rem 1rem; color: var(--mt-muted); }
.mt-options .form-select:focus, .mt-options .form-control:focus, .mt-subtitle .form-control:focus {
    border-color: var(--mt-purple-2); box-shadow: 0 0 0 3px rgba(168, 85, 247, .15);
}
.mt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    margin-block-start: .5rem; padding: .7rem 1rem; border: 0; border-radius: 12px;
    font-weight: 600; color: #fff !important;
    background: linear-gradient(135deg, var(--mt-purple-1), var(--mt-purple-2));
    box-shadow: 0 6px 16px rgba(109, 40, 217, .22);
    transition: transform .1s ease, box-shadow .15s ease, opacity .15s ease;
}
.mt-btn:hover { box-shadow: 0 8px 22px rgba(109, 40, 217, .3); }
.mt-btn:active { transform: translateY(1px); }
.mt-btn:focus-visible { outline: 3px solid rgba(109, 40, 217, .35); outline-offset: 2px; }
.mt-btn:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.mt-panel {
    border: 1px solid var(--mt-border); border-radius: 16px; padding: 1.25rem;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
}
.mt-panel[hidden], .mt-error[hidden], .mt-notes[hidden] { display: none; }
.mt-progress-head { display: flex; align-items: center; gap: .6rem; font-weight: 600; margin-block-end: .6rem; }
.mt-percent { margin-inline-start: auto; color: var(--mt-purple-1); font-variant-numeric: tabular-nums; }
.mt-bar { height: 10px; border-radius: 999px; background: var(--mt-purple-soft); overflow: hidden; margin-block-end: .4rem; }
.mt-bar-fill {
    height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--mt-purple-1), var(--mt-purple-2));
    transition: width .4s ease;
}
.mt-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--mt-border); border-top-color: var(--mt-purple-1);
    animation: mt-spin .8s linear infinite;
}
@keyframes mt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mt-spinner { animation: none; } .mt-bar-fill { transition: none; } }
.mt-result-head { display: flex; align-items: center; gap: .75rem; margin-block-end: .75rem; }
.mt-check {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--mt-success);
}
.mt-result-title { font-weight: 700; font-size: 1.05rem; }
.mt-notes { margin: 0 0 .5rem; padding-inline-start: 1.1rem; color: var(--mt-muted); font-size: .9rem; }
.mt-notes li + li { margin-block-start: .25rem; }
.mt-again { color: var(--mt-purple-1); font-weight: 600; text-decoration: none; }
.mt-error { margin-block-start: 1rem; border-radius: 12px; }
.mt-privacy { display: flex; align-items: center; gap: .4rem; justify-content: center; margin: 1rem 0 0; }
.mt-related { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .6rem; margin-block-start: .75rem; font-size: .9rem; }
.mt-related-label { color: var(--mt-muted); }
.mt-related a {
    color: var(--mt-purple-1); text-decoration: none; padding: .2rem .65rem; border-radius: 999px;
    background: var(--mt-purple-soft); border: 1px solid var(--mt-border);
}
.mt-related a:hover, .mt-related a:focus-visible { background: #ede9fe; text-decoration: underline; }
/* Multi-file list (Merge PDF), help text, password field */
.mt-filelist { padding: .75rem 1rem 1rem; }
.mt-filelist[hidden] { display: none; }
.mt-filelist-items { list-style: decimal; margin: 0 0 .5rem; padding-inline-start: 1.4rem; }
.mt-filelist-item { padding: .35rem 0; border-block-end: 1px solid var(--mt-border); }
.mt-filelist-item > * { vertical-align: middle; }
.mt-filelist-item .mt-selected-name { display: inline-block; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-end: .5rem; }
.mt-filelist-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-block-end: .25rem; }
.mt-icon-btn {
    border: 1px solid var(--mt-border); background: #fff; color: var(--mt-purple-1); border-radius: 8px;
    width: 30px; height: 30px; margin-inline-start: .25rem; line-height: 1; cursor: pointer; float: inline-end;
}
.mt-icon-btn:disabled { opacity: .35; cursor: default; }
.mt-icon-btn:focus-visible { outline: 2px solid var(--mt-purple-2); outline-offset: 1px; }
.mt-help { color: var(--mt-muted); font-size: .82rem; margin-block-start: .3rem; }
.mt-password { position: relative; }
.mt-password .form-control { padding-inline-end: 2.6rem; }
.mt-reveal { position: absolute; inset-inline-end: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; opacity: .7; }
