/* M-PRINT Files — dark theme, glass cards */
:root {
    --mp-bg:        #0b0f17;
    --mp-bg-2:      #0f1623;
    --mp-glass:     rgba(255, 255, 255, 0.04);
    --mp-glass-2:   rgba(255, 255, 255, 0.07);
    --mp-border:    rgba(255, 255, 255, 0.08);
    --mp-text:      #e6ecf5;
    --mp-muted:     #8a96a9;
    --mp-accent:    #3b82f6;   /* M-PRINT primary blue */
    --mp-accent-2:  #8b5cf6;   /* secondary violet */
    --mp-success:   #22c55e;
    --mp-danger:    #ef4444;
    --mp-radius:    14px;
    --mp-shadow:    0 10px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: radial-gradient(ellipse at top, #131c2d 0%, var(--mp-bg) 60%);
    color: var(--mp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--mp-accent); text-decoration: none; }
a:hover { color: #93c5fd; }

.mp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid var(--mp-border);
    background: rgba(11, 15, 23, 0.7);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mp-brand { display: flex; align-items: center; gap: 10px; }
.mp-logo {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--mp-accent), var(--mp-accent-2));
    display: grid; place-items: center;
    font-weight: 800; color: white;
}
.mp-name { font-weight: 600; letter-spacing: 0.3px; }

.mp-nav a {
    margin-left: 18px;
    color: var(--mp-muted);
    font-weight: 500;
}
.mp-nav a.active, .mp-nav a:hover { color: var(--mp-text); }

.mp-main {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 24px;
    display: grid;
    gap: 24px;
}

.mp-glass {
    background: var(--mp-glass);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 24px;
    box-shadow: var(--mp-shadow);
    backdrop-filter: blur(18px);
}

.mp-glass h1, .mp-glass h2 { margin: 0 0 8px; font-weight: 600; }
.mp-muted { color: var(--mp-muted); }

.mp-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.mp-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    background: var(--mp-glass-2);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    color: var(--mp-text);
    transition: transform 0.12s ease, border-color 0.12s ease;
}
.mp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
}

.mp-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mp-accent), var(--mp-accent-2));
    display: grid; place-items: center;
    font-weight: 700; color: white;
}

.mp-card-title { font-weight: 600; }
.mp-card-meta  { font-size: 12px; color: var(--mp-muted); }

/* Listing table */
.mp-listing-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.mp-table-wrap { overflow-x: auto; }
.mp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mp-table th, .mp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mp-border);
    text-align: left;
}
.mp-table th { color: var(--mp-muted); font-weight: 500; }

/* Buttons */
.mp-btn {
    appearance: none;
    background: var(--mp-glass-2);
    border: 1px solid var(--mp-border);
    color: var(--mp-text);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}
.mp-btn:hover { border-color: rgba(59, 130, 246, 0.5); }
.mp-btn-primary {
    background: linear-gradient(135deg, var(--mp-accent), var(--mp-accent-2));
    border: none;
    font-weight: 600;
}

/* Upload */
.mp-upload { display: grid; gap: 14px; margin-top: 14px; }
.mp-field { display: grid; gap: 6px; }
.mp-field input {
    background: var(--mp-glass-2);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--mp-text);
    font: inherit;
}

.mp-dropzone {
    display: grid;
    gap: 6px;
    place-items: center;
    padding: 40px;
    text-align: center;
    border: 2px dashed var(--mp-border);
    border-radius: 14px;
    background: var(--mp-glass-2);
    cursor: pointer;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.mp-dropzone.over {
    border-color: var(--mp-accent);
    background: rgba(59, 130, 246, 0.07);
}

.mp-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    font-size: 13px;
}

.mp-result {
    white-space: pre-wrap;
    background: var(--mp-bg-2);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    max-height: 240px;
    overflow: auto;
}
