/* Preflight — PP brand styling */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: #3D4D4D;
    background: #f5f5f5;
    line-height: 1.5;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Logo */
.logo {
    display: block;
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #FFE600;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* Forms */
label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

input[type="password"],
input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

input[type="file"] {
    padding: 8px;
    cursor: pointer;
}

button, .btn {
    display: inline-block;
    background: #FFE600;
    color: #3D4D4D;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

button:hover, .btn:hover {
    background: #e6cf00;
}

/* Flash messages */
.flash {
    background: #fff3cd;
    border: 1px solid #e6cf00;
    color: #3D4D4D;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Report */
.filename {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-pass {
    background: #d4edda;
    color: #155724;
}

.badge-warn {
    background: #fff3cd;
    color: #856404;
}

.badge-fail {
    background: #f8d7da;
    color: #721c24;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 8px;
}

th {
    text-align: left;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 2px solid #eee;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
}

td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

tr:last-child td {
    border-bottom: none;
}

/* Warnings list */
.warnings-list {
    list-style: none;
    padding: 0;
}

.warnings-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.warnings-list li.warn {
    background: #fff3cd;
    border-left: 3px solid #e6cf00;
}

.warnings-list li.fail {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.topbar a {
    color: #3D4D4D;
    font-size: 0.8rem;
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

/* Spot colour chips */
.colour-chip {
    display: inline-block;
    padding: 3px 10px;
    background: #eee;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
}

.colour-chip.dieline {
    background: #f8d7da;
    color: #721c24;
}

/* Page thumbnails */
.page-section {
    margin-bottom: 20px;
}

.page-thumb {
    display: block;
    max-width: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Box colour key (inline in table rows) */
.legend-swatch {
    display: inline-block;
    width: 14px;
    height: 3px;
    vertical-align: middle;
    margin-right: 6px;
}

.legend-trim {
    background: #dc3545;
}

.legend-bleed {
    background: repeating-linear-gradient(
        90deg,
        #007bff 0px, #007bff 3px,
        transparent 3px, transparent 6px
    );
}

/* Separation thumbnails */
.sep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.sep-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}

.sep-thumb {
    display: block;
    width: 100%;
    height: auto;
}

.sep-label {
    display: block;
    padding: 6px 8px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Ghostscript hint */
.gs-hint {
    font-size: 0.82rem;
    color: #888;
    margin-top: 12px;
}

.gs-hint a {
    color: #3D4D4D;
}
