/* Molitor AP-01 Packager Styles - Scoped to .molitor-ap01-wrap */

.molitor-ap01-wrap {
    font-family: 'WeissenhofGrotesk', 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    padding: 50px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.molitor-ap01-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

.molitor-ap01-wrap .container {
    background: #c00;
    color: #fff;
    border-radius: 10px;
    padding: 20px 14px;
    width: 100%;
    max-width: 520px;
    position: relative;
}

/* Drop zone */
.molitor-ap01-wrap .drop-zone {
    background: rgba(255,255,255,.1);
    border: 2px dashed rgba(255,255,255,.4);
    padding: 36px 20px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 18px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    position: relative;
    color: #fff;
}

.molitor-ap01-wrap .drop-zone:hover {
    background: rgba(255,255,255,.15);
}

.molitor-ap01-wrap .drop-zone.dragover {
    background: rgba(255,255,255,.22);
}

.molitor-ap01-wrap .drop-zone input[type=file] {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Button group (help + refresh + sort) */
.molitor-ap01-wrap .button-group {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 14px 0;
}

.molitor-ap01-wrap .help-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
    padding: 0;
    font-family: inherit;
}

.molitor-ap01-wrap .help-btn:hover {
    background: rgba(255,255,255,.35);
}

.molitor-ap01-wrap .mini-refresh {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 0;
    opacity: .7;
}

.molitor-ap01-wrap .mini-refresh:hover {
    opacity: 1;
}

.molitor-ap01-wrap .sort-media {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    opacity: .7;
    visibility: hidden;
}

.molitor-ap01-wrap .sort-media:hover {
    opacity: 1;
}

/* Controls */
.molitor-ap01-wrap .controls-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.molitor-ap01-wrap .control-card {
    background: transparent;
    padding: 0;
    flex: 0 1 130px;
}

.molitor-ap01-wrap .control-card label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    opacity: .9;
}

.molitor-ap01-wrap .control-card select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 14px;
    appearance: none;
    font-family: inherit;
    cursor: pointer;
}

.molitor-ap01-wrap .control-card select option {
    background: #fff;
    color: #333;
}

.molitor-ap01-wrap .intro-upload {
    display: none;
    width: 100%;
    margin-top: 6px;
    font-size: 12px;
}

/* File list */
.molitor-ap01-wrap .file-list {
    list-style: none;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
}

.molitor-ap01-wrap .file-item {
    background: rgba(255,255,255,.08);
    padding: 10px 14px;
    border-radius: 8px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    cursor: grab;
    color: #fff;
}

.molitor-ap01-wrap .file-item.fixed {
    cursor: default;
    opacity: .8;
}

.molitor-ap01-wrap .file-index {
    min-width: 45px;
    color: #ff9999;
    font-weight: 700;
}

/* Delete button */
.molitor-ap01-wrap .delete-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 1.6em;
    cursor: pointer;
    padding: 0;
}

.molitor-ap01-wrap .delete-btn:hover {
    color: #fff;
}

.molitor-ap01-wrap .delete-btn svg {
    display: none;
}

.molitor-ap01-wrap .delete-btn::after {
    content: '\00d7';
}

/* Main buttons */
.molitor-ap01-wrap .main-btn {
    background: #fff;
    color: #c00;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    font-family: inherit;
}

.molitor-ap01-wrap .main-btn:hover:not(:disabled) {
    background: #f0f0f0;
}

.molitor-ap01-wrap .main-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.molitor-ap01-wrap .preview-btn {
    margin-top: 20px;
}

.molitor-ap01-wrap .export-btn {
    margin-top: 12px;
}

/* Notifications */
.molitor-ap01-wrap .notification {
    display: none;
    background: rgba(255,200,200,.15);
    border: 1px solid rgba(255,100,100,.4);
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.5;
    max-height: 200px;
    overflow-y: auto;
}

.molitor-ap01-wrap .notification.active {
    display: block;
}

.molitor-ap01-wrap .notification.error {
    background: rgba(255,100,100,.15);
    border-color: rgba(255,50,50,.5);
}

.molitor-ap01-wrap .notification.success {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
}

.molitor-ap01-wrap .notification.info {
    background: rgba(100,200,255,.12);
    border-color: rgba(100,150,255,.4);
    color: #aaddff;
}

/* Preview wrapper + copy button */
.molitor-ap01-wrap .preview-wrapper {
    position: relative;
    margin: 20px 0;
}

.molitor-ap01-wrap .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    color: #c00;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    z-index: 100;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.molitor-ap01-wrap .copy-btn:hover {
    background: #f0f0f0;
}

.molitor-ap01-wrap .copy-btn.copied {
    opacity: .5;
}

/* Playlist preview */
.molitor-ap01-wrap .preview-box {
    display: none;
    background: #fff;
    color: #333;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    max-height: 650px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
    width: 100%;
    border: none;
}

/* Progress bar */
.molitor-ap01-wrap .progress-container {
    display: none;
    width: 100%;
    margin: 12px 0;
}

.molitor-ap01-wrap .progress-container.active {
    display: block;
}

.molitor-ap01-wrap .progress-bar {
    height: 2px;
    background: rgba(255,255,255,.7);
    width: 0%;
    transition: width .15s linear;
    will-change: width;
}

.molitor-ap01-wrap .progress-text {
    display: none;
}

/* Report/summary */
.molitor-ap01-wrap .report {
    display: none;
    padding: 8px 0;
    margin: 12px 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255,255,255,.6);
}

.molitor-ap01-wrap .report.active {
    display: block;
}

/* Success status */
.molitor-ap01-wrap .status {
    display: none;
    font-size: 11px;
    color: rgba(255,255,255,.7);
    text-align: left;
    margin: 8px 0 12px;
}

.molitor-ap01-wrap .status.active {
    display: block;
}

/* Warning */
.molitor-ap01-wrap .warning {
    color: #ffcccc;
    margin-top: 8px;
    text-align: left;
    font-weight: 600;
}

/* Footer */
.molitor-ap01-wrap footer {
    margin-top: 16px;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    text-align: center;
    width: 100%;
    font-family: inherit;
}

/* Help modal */
.molitor-ap01-wrap .help-modal {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.molitor-ap01-wrap .help-modal.open {
    display: flex;
}

.molitor-ap01-wrap .help-box {
    background: rgba(255,255,255,.95);
    color: #333;
    border-radius: 8px;
    padding: 16px 16px 14px;
    font-size: 12px;
    line-height: 1.6;
    width: 80%;
    position: relative;
}

.molitor-ap01-wrap .help-box ol {
    padding-left: 16px;
    margin: 0;
}

.molitor-ap01-wrap .help-box li {
    margin-bottom: 4px;
}

.molitor-ap01-wrap .help-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* Disabled state */
.molitor-ap01-wrap select:disabled,
.molitor-ap01-wrap input:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 700px) {
    .molitor-ap01-wrap .controls-row {
        flex-direction: row;
    }
}
