/* ==========================================================================
   DM Membership Manager — Frontend Dashboard Styles
   ========================================================================== */

/* ── Dashboard Wrapper ── */
.dmmm-dashboard {
    max-width: 100%;
}

/* ── Card ── */
.dmmm-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.dmmm-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.dmmm-card table {
    width: 100%;
    border-collapse: collapse;
}

.dmmm-card table th,
.dmmm-card table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: .95rem;
}

.dmmm-card table th {
    font-weight: 600;
    color: #555;
    width: 40%;
}

/* ── Download Button Wrap — column layout (Bug 7) ── */
.dmmm-download-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

/* ── Download Button — brand colors (Bug 8) ── */
.dmmm-download-btn {
    display: inline-block;
    background: #FF0071 !important;
    color: #fff !important;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: .95rem;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 0, 113, .35);
    letter-spacing: .3px;
}

.dmmm-download-btn:hover,
.dmmm-download-btn:focus {
    background: #111B7F !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 27, 127, .35);
    color: #fff !important;
}

/* ── Remaining Text — below button (Bug 7) ── */
.dmmm-remaining-text {
    font-size: .82rem;
    color: #777;
    font-style: italic;
    padding-left: 2px;
}

/* ── Notices ── */
.dmmm-notice {
    border-left: 4px solid #ccc;
    padding: 14px 18px;
    border-radius: 6px;
    background: #f9f9f9;
    margin: 8px 0;
}

.dmmm-notice--info    { border-left-color: #2271b1; background: #f0f6fc; }
.dmmm-notice--warning { border-left-color: #dba617; background: #fef8ee; }
.dmmm-notice--error   { border-left-color: #d63638; background: #fdf0f0; }

/* ── Limit Reached Notice (Bug 5) ── */
.dmmm-notice--limit {
    border-left: 4px solid #FF0071;
    background: #fff0f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dmmm-notice--limit p {
    margin: 0;
    font-size: .95rem;
    color: #c00055;
    font-weight: 500;
}

/* ── CTA Notice (Bug 9) ── */
.dmmm-notice--cta {
    border-left: 4px solid #FF0071;
    background: linear-gradient(135deg, #fff0f6 0%, #f5f0ff 100%);
    padding: 18px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.dmmm-cta-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
}

/* ── CTA Button ── */
.dmmm-cta-btn {
    display: inline-block;
    background: #FF0071;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none !important;
    transition: background .2s ease, transform .15s ease;
    box-shadow: 0 3px 12px rgba(255, 0, 113, .3);
    letter-spacing: .3px;
}

.dmmm-cta-btn:hover,
.dmmm-cta-btn:focus {
    background: #111B7F !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.dmmm-cta-btn--outline {
    background: transparent !important;
    border: 2px solid #FF0071;
    color: #FF0071 !important;
    box-shadow: none;
}

.dmmm-cta-btn--outline:hover {
    background: #FF0071 !important;
    color: #fff !important;
}

.dmmm-notice p {
    margin: 0;
    font-size: .95rem;
}

.dmmm-notice a {
    color: #FF0071;
    font-weight: 600;
}

/* ── Recent Downloads Table (Bug 10) ── */
.dmmm-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.dmmm-history-table thead th {
    background: #f8f8f8;
    font-weight: 700;
    color: #333;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid #e5e5e5;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.dmmm-history-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
}

.dmmm-history-table tbody tr:last-child td {
    border-bottom: none;
}

.dmmm-history-table tbody tr:hover {
    background: #fafafa;
}

/* ── Mobile Responsive ── */
@media (max-width: 600px) {

    .dmmm-card {
        padding: 16px;
    }

    .dmmm-history-table thead {
        display: none;
    }

    .dmmm-history-table tbody td {
        display: block;
        padding: 6px 12px;
    }

    .dmmm-history-table tbody td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: #555;
    }

    .dmmm-history-table tbody tr {
        display: block;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 8px 0;
    }
}