:root { 
    --primary: #1a365d; 
    --primary-light: #2c5282;
    --accent: #e53e3e; 
    --success: #38a169;
    --text: #2d3748; 
    --bg: #f7fafc;
    --border: #e2e8f0; 
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    border: 1px black; 
    color: var(--text); 
    line-height: 1.5;
    margin: 0;
    padding: 20px;
}

.admin-container { 
    max-width: 1100px; 
    margin: 20px auto; 
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
}

h1.main-title { 
    font-size: 32px; 
    color: var(--primary); 
    margin-bottom: 10px;
    text-align: center;
    font-weight: 800;
}

.step-indicator {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin-bottom: 20px;
    font-weight: 600;
}

h2.section-title { 
    background: var(--primary); 
    color: white; 
    padding: 14px 24px; 
    font-size: 18px; 
    border-radius: 8px; 
    margin: 30px 0 20px 0;
    display: flex;
    align-items: center;
}

h2.section-title::before {
    content: "📋";
    margin-right: 10px;
}

.signature-pad { 
    border: 1px solid black; 
    border-radius: 6px; 
    width: 100%;
    height: 150px;
    background: white;
}

.form-grid {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
}

label { 
    font-weight: 600; 
    margin-bottom: 8px; 
    font-size: 14px; 
    color: #4a5568; 
}

input, select, textarea { 
    padding: 12px 16px; 
    border: 2px solid var(--border); 
    border-radius: 8px; 
    font-size: 15px; 
    transition: all 0.2s;
    background: #fff;
}

input:focus, select:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.btn { 
    padding: 12px 30px; 
    font-size: 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    border: none; 
    font-weight: 700; 
    transition: transform 0.1s, background 0.3s;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); }

.btn-next { background: var(--success); color: white; }
.btn-next:hover { background: #2f855a; }


.image-uploader { 
    border: 2px dashed var(--border); 
    padding: 30px; 
    text-align: center; 
    border-radius: 10px; 
    cursor: pointer; 
    background: #fcfcfc; 
}

.preview-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 20px; 
}

.preview-item { 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    height: 120px; 
    overflow: hidden; 
    background: #eee; 
}

.preview-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}



.tyre-input-row { 
    background: #f9f9f9; 
    padding: 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    margin-bottom: 15px; 
}

.btn-primary { 
    background: var(--primary); 
    color: white; 
}

/* Multi-step logic styles */
.form-section {
    display: none; 
}

.form-section.active {
    display: block; 
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-next { background-color: #28a745; color: white; }
.btn-prev { background-color: #6c757d; color: white; }

.progress-container {
    margin-bottom: 30px;
    background: #eee;
    height: 8px;
    border-radius: 4px;
}

#progress-bar {
    background: var(--primary);
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: 0.3s;
}

#printable-report { 
    display: none; 
}

.report-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 30px; 
    border-bottom: 4px solid var(--primary); 
    padding-bottom: 10px; 
}

.report-logo img { 
    width: 250px; 
}

.report-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 30px; 
    border-radius: 8px;
    overflow: hidden;
}

.report-table td, .report-table th {
    border: 1px solid #e2e8f0;
    padding: 14px;
}

.report-table th { 
    background: #f1f5f9; 
    color: var(--primary);
    font-weight: 700;
    width: 40%;
}

.status-pass { color: var(--success); font-weight: 800; text-transform: uppercase; }
.status-fail { color: var(--accent); font-weight: 800; text-transform: uppercase; }

.terms-box { 
    padding: 15px; 
    color: red; 
    background: #fff3f3; 
    border-left: 5px solid var(--accent); 
    margin-bottom: 20px; 
    font-size: 13px; 
}


@media (max-width: 600px) {
    .tyre-input-row > div {
        grid-template-columns: 1fr !important;
    }
} 

@media print { 
    .no-print { display: none !important; } 
    #printable-report { display: block !important; } 

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        -webkit-print-color-adjust: exact !important;
    }

   
    h2.section-title {
        background-color: var(--primary) !important;
        color: white !important;
    }

    .report-table th {
        background-color: #f1f5f9 !important;
    }

    .terms-box {
        background-color: #fff3f3 !important;
        border-left: 5px solid #D32F2F !important;
    }
}