/* ============================= */
/* MMC GLOBAL THEME             */
/* ============================= */

:root {
    --mmc-bg: #050816;
    --mmc-panel: #0b1020;
    --mmc-border: #1f2937;
    --mmc-text: #e5e7eb;
    --mmc-muted: #9ca3af;
    --mmc-accent: #60a5fa;
    --mmc-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
}

/* RESET */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--mmc-bg);
    color: var(--mmc-text);
}

/* ============================= */
/* GRID LAYOUT (PREMIUM DASHBOARD) */
/* ============================= */

.mmc-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    padding: 24px;
}

/* ============================= */
/* PANELS */
/* ============================= */

.mmc-panel {
    background: var(--mmc-panel);
    border-radius: 16px;
    border: 1px solid var(--mmc-border);
    box-shadow: var(--mmc-shadow-soft);
    padding: 20px;
}

/* ============================= */
/* HEADINGS */
/* ============================= */

.mmc-panel-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--mmc-muted);
}

h2 {
    font-weight: 600;
    margin-bottom: 12px;
}

/* ============================= */
/* INPUTS */
/* ============================= */

textarea.mmc-input {
    width: 100%;
    min-height: 140px;
    border-radius: 12px;
    border: 1px solid var(--mmc-border);
    padding: 12px;
    background: #020617;
    color: white;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.mmc-button-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mmc-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--mmc-border);
    background: #111827;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 0.85rem;
}

.mmc-btn-primary {
    background: linear-gradient(to right, var(--mmc-accent), #2563eb);
    color: white;
    border: none;
}

.mmc-btn-danger {
    background: #b91c1c;
    color: white;
    border: none;
}

.mmc-btn:hover {
    transform: translateY(-1px);
}

/* ============================= */
/* LEGAL DOCUMENT OUTPUT */
/* ============================= */

.mmc-legal-doc {
    background: #ffffff;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
}

/* Output headings */
.mmc-legal-doc h2 {
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    margin-top: 20px;
}

/* Paragraph rendering */
.mmc-legal-doc pre {
    white-space: pre-wrap;
    font-size: 14px;
    font-family: "Times New Roman", Times, serif;
}

/* ============================= */
/* FILE INPUT */
/* ============================= */

input[type="file"] {
    display: block;
    margin-top: 8px;
    color: white;
}

/* ============================= */
/* SPINNER */
/* ============================= */

.spinner {
    display: none;
    border: 5px solid #eee;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    margin: 10px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================= */
/* ✅ PRINT FIX (CRITICAL) */
/* ============================= */

@media print {

body * {
    visibility: hidden;
}

#printArea, #printArea * {
    visibility: visible;
}

#printArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    color: black;
}

.mmc-legal-doc {
    box-shadow: none;
    border: none;
    padding: 30px;
}

}