/* ============================================================
   market_momentum_papertrade.css
   Paper Trade Modal styling — voeg toe aan market_momentum.css
   ============================================================ */

/* ─── Banner link als button ──────────────────────────────── */
.mm-banner-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* ─── Paper Trade knop in pakket ──────────────────────────── */
.mm-pkg-actions {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.mm-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.1s;
}
.mm-btn:hover:not(:disabled)  { opacity: 0.85; transform: translateY(-1px); }
.mm-btn:active:not(:disabled) { transform: translateY(0); }
.mm-btn:disabled               { opacity: 0.4; cursor: not-allowed; }

.mm-btn--primary   { background: #00a854; color: #fff; }
.mm-btn--secondary { background: #222;    color: #aaa; border: 1px solid #333; }
.mm-btn--trade     { background: #1a3a2a; color: #00d46a; border: 1px solid #00a854;
                     font-size: 0.8rem; padding: 0.4rem 0.9rem; }

/* ─── Modal overlay ───────────────────────────────────────── */
.mm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
    animation: mm-fadeIn 0.2s ease;
}

@keyframes mm-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.mm-modal {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: mm-slideUp 0.25s ease;
}

@keyframes mm-slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.mm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #222;
}

.mm-modal-header h3 { margin: 0; font-size: 1rem; color: #eee; }

.mm-modal--small { max-width: 420px; }

.mm-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.mm-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

.mm-modal-body    { padding: 1.25rem; }
.mm-modal-footer  { padding: 1rem 1.25rem; border-top: 1px solid #222;
                    display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ─── Trade samenvatting ──────────────────────────────────── */
.mm-trade-summary { margin-bottom: 1rem; }

.mm-trade-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    color: #888;
}

/* ─── Form ────────────────────────────────────────────────── */
.mm-modal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mm-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.mm-form-row label {
    font-size: 0.72rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mm-form-row input {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #eee;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.mm-form-row input:focus {
    outline: none;
    border-color: #00a854;
}

/* ─── Allocatie tabel ─────────────────────────────────────── */
.mm-alloc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.mm-alloc-table th {
    text-align: left;
    color: #aaa;
    font-size: 0.68rem;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #222;
}

.mm-alloc-table td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
}

.mm-alloc-table tfoot td {
    border-top: 1px solid #2a2a2a;
    border-bottom: none;
    color: #eee;
    padding-top: 0.5rem;
}

.mm-td-right { text-align: right; font-variant-numeric: tabular-nums; }
.mm-td-dim   { color: #555; font-size: 0.75rem; }

/* ─── Result banner ───────────────────────────────────────── */
.mm-trade-result {
    margin: 0 1.25rem 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.mm-trade-result--ok    { background: #0d2a1a; border: 1px solid #00a854; color: #00d46a; }
.mm-trade-result--error { background: #2a0d0d; border: 1px solid #a84400; color: #ff6b6b; }

.mm-result-link {
    color: #00d46a;
    text-decoration: underline;
    font-size: 0.82rem;
    display: inline-block;
    margin-top: 0.4rem;
}
