/* =================================================================
   MPM Auth — User Dashboard Styles
================================================================= */

/* ── Wrap ──────────────────────────────────────────────────────── */
.mpmd-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 80px;
    color: #c8d8f0;
    font-family: inherit;
}

.mpmd-not-logged {
    text-align: center;
    padding: 60px 20px;
    color: #c8d8f0;
}
.mpmd-not-logged p { font-size: 1.1rem; margin-bottom: 20px; }

/* ── View switching ────────────────────────────────────────────── */
.mpmd-view { animation: mpmd-fade .25s ease; }
@keyframes mpmd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Page header ───────────────────────────────────────────────── */
.mpmd-header { margin-bottom: 28px; }
.mpmd-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}
.mpmd-welcome { color: #8899bb; font-size: .95rem; margin: 0; }
.mpmd-welcome strong { color: #c8d8f0; }

/* ── View header (form pages) ──────────────────────────────────── */
.mpmd-view-header { margin-bottom: 28px; }
.mpmd-view-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 10px 0 6px;
}
.mpmd-view-header p { color: #8899bb; margin: 0; font-size: .9rem; }

.mpmd-back-btn {
    background: none;
    border: none;
    color: #2ecc71;
    cursor: pointer;
    font-size: .9rem;
    padding: 0;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity .2s;
}
.mpmd-back-btn:hover { opacity: .75; }

/* ── Create Panel ──────────────────────────────────────────────── */
.mpmd-create-panel {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
}
.mpmd-create-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mpmd-create-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.mpmd-create-header p { color: #8899bb; font-size: .85rem; margin: 0; max-width: 520px; }

.mpmd-create-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.mpmd-create-card {
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
}
.mpmd-create-card:hover {
    border-color: #2ecc71;
    background: #1e2d50;
    transform: translateY(-2px);
}
.mpmd-create-card strong {
    display: block;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}
.mpmd-create-card span {
    color: #8899bb;
    font-size: .8rem;
}

.mpmd-create-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mpmd-icon-artist { background: rgba(147,112,219,.18); color: #9370db; }
.mpmd-icon-song   { background: rgba(46,204,113,.15);  color: #2ecc71; }

/* ── Section ───────────────────────────────────────────────────── */
.mpmd-section { margin-bottom: 32px; }
.mpmd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mpmd-section-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ── Tabs ───────────────────────────────────────────────────────── */
.mpmd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #1f2d44;
    margin-bottom: 0;
}
.mpmd-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #8899bb;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.mpmd-tab:hover { color: #c8d8f0; }
.mpmd-tab.active { color: #2ecc71; border-bottom-color: #2ecc71; }

.mpmd-tab-content { display: none; padding-top: 0; }
.mpmd-tab-content.active { display: block; }

/* ── Empty state ────────────────────────────────────────────────── */
.mpmd-empty {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 0 0 12px 12px;
    padding: 56px 24px;
    text-align: center;
    color: #8899bb;
}
.mpmd-empty p { margin: 12px 0 20px; font-size: .95rem; }

/* ── Song list (dashboard) ──────────────────────────────────────── */
.mpmd-song-list {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.mpmd-song-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #1a2540;
    transition: background .15s;
}
.mpmd-song-row:last-child { border-bottom: none; }
.mpmd-song-row:hover { background: #1a2540; }

.mpmd-song-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a2540;
}
.mpmd-song-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mpmd-song-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a4a6a;
}

.mpmd-song-info { flex: 1; min-width: 0; }
.mpmd-song-title { display: block; color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpmd-song-meta  { display: block; color: #8899bb; font-size: .78rem; margin-top: 2px; }

/* ── Artist list ────────────────────────────────────────────────── */
.mpmd-artist-list {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.mpmd-artist-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid #1a2540;
    transition: background .15s;
}
.mpmd-artist-row:last-child { border-bottom: none; }
.mpmd-artist-row:hover { background: #1a2540; }

.mpmd-artist-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a2540;
}
.mpmd-artist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mpmd-artist-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a4a6a;
}
.mpmd-artist-info { flex: 1; }
.mpmd-artist-name { display: block; color: #fff; font-weight: 600; font-size: .9rem; }

/* ── Status Badge ───────────────────────────────────────────────── */
.mpmd-status-badge {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.mpmd-status-badge.approved { background: rgba(46,204,113,.15); color: #2ecc71; }
.mpmd-status-badge.pending  { background: rgba(255,193,7,.12);  color: #ffc107; }

/* ── Form Card ──────────────────────────────────────────────────── */
.mpmd-form-card {
    background: #111827;
    border: 1px solid #1f2d44;
    border-radius: 14px;
    padding: 28px;
}

/* ── Form Fields ────────────────────────────────────────────────── */
.mpmd-field { margin-bottom: 20px; }
.mpmd-field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #c8d8f0;
    margin-bottom: 7px;
}
.mpmd-sublabel {
    font-size: .8rem !important;
    color: #8899bb !important;
    font-weight: 500 !important;
    margin-bottom: 5px !important;
}
.mpmd-field-hint { color: #8899bb; font-size: .8rem; margin: -4px 0 8px; }
.mpmd-opt { color: #2ecc71; font-weight: 400; font-size: .78rem; }
.req { color: #e74c3c; margin-left: 2px; }

.mpmd-field input[type="text"],
.mpmd-field input[type="email"],
.mpmd-field select,
.mpmd-field textarea {
    width: 100%;
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 8px;
    color: #c8d8f0;
    font-size: .92rem;
    padding: 11px 14px;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
    resize: vertical;
}
.mpmd-field input:focus,
.mpmd-field select:focus,
.mpmd-field textarea:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.mpmd-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%238899bb'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.mpmd-field small { color: #8899bb; font-size: .75rem; margin-top: 5px; display: block; }

.mpmd-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── File upload ────────────────────────────────────────────────── */
.mpmd-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 8px;
    padding: 8px 14px;
}
.mpmd-file-btn {
    background: #2ecc71;
    color: #000;
    font-size: .82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.mpmd-file-btn:hover { background: #27ae60; }
.mpmd-file-name { color: #8899bb; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Playlist / Section checkboxes ─────────────────────────────── */
.mpmd-playlist-checkboxes,
.mpmd-section-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 8px;
    padding: 14px;
}
.mpmd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #111827;
    border: 1px solid #243050;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: .83rem;
    color: #c8d8f0;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.mpmd-checkbox-label:hover { border-color: #2ecc71; background: #1e2d50; }
.mpmd-checkbox-label input[type="checkbox"] {
    accent-color: #2ecc71;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.mpmd-checkbox-label input[type="checkbox"]:checked + span,
.mpmd-checkbox-label:has(input:checked) { color: #2ecc71; }
.mpmd-no-playlists { color: #8899bb; font-size: .85rem; margin: 0; }

/* ── Owner section ──────────────────────────────────────────────── */
.mpmd-owner-section {
    background: #1a2540;
    border: 1px solid #243050;
    border-radius: 8px;
    padding: 14px;
}
.mpmd-link-green { color: #2ecc71; text-decoration: none; font-weight: 600; }
.mpmd-link-green:hover { text-decoration: underline; }

/* ── Notice ─────────────────────────────────────────────────────── */
.mpmd-notice {
    background: rgba(46,107,204,.1);
    border: 1px solid rgba(46,107,204,.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .82rem;
    color: #7aabf0;
    margin: 20px 0;
    line-height: 1.5;
}
.mpmd-notice strong { color: #aac8f8; }

/* ── Alert ──────────────────────────────────────────────────────── */
.mpmd-alert {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: .88rem;
    font-weight: 500;
}
.mpmd-alert.success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); color: #2ecc71; }
.mpmd-alert.error   { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.3);  color: #e74c3c; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.mpmd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: background .2s, opacity .2s, transform .15s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}
.mpmd-btn:hover { transform: translateY(-1px); }
.mpmd-btn:active { transform: none; }
.mpmd-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.mpmd-btn-green   { background: #2ecc71; color: #000; }
.mpmd-btn-green:hover { background: #27ae60; }
.mpmd-btn-outline { background: transparent; border: 1px solid #2ecc71; color: #2ecc71; }
.mpmd-btn-outline:hover { background: rgba(46,204,113,.08); }
.mpmd-btn-ghost   { background: #1a2540; border: 1px solid #243050; color: #c8d8f0; }
.mpmd-btn-ghost:hover { background: #1e2d50; }
.mpmd-btn-wide    { min-width: 220px; padding: 13px 28px; font-size: .95rem; }

.mpmd-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ── Progress bar ────────────────────────────────────────────────── */
.mpmd-upload-progress {
    display: none;
    margin-top: 10px;
}
.mpmd-upload-progress-bar {
    background: #1a2540;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}
.mpmd-upload-progress-fill {
    background: #2ecc71;
    height: 100%;
    width: 0;
    transition: width .3s;
    border-radius: 4px;
}
.mpmd-upload-progress-text {
    font-size: .75rem;
    color: #8899bb;
    margin-top: 5px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .mpmd-form-row-2 { grid-template-columns: 1fr; }
    .mpmd-create-header { flex-direction: column; }
    .mpmd-form-card { padding: 18px; }
    .mpmd-header h1 { font-size: 1.5rem; }
    .mpmd-btn-wide { width: 100%; }
    .mpmd-form-actions { flex-direction: column; }
}
