@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Kalam:wght@400;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Main System Overrides */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a; /* Slate 900 */
}
::-webkit-scrollbar-thumb {
    background: #1e293b; /* Slate 800 */
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669; /* Emerald 600 */
}

/* Flowchart Button styling */
.stage-btn {
    background-color: #020617; /* Slate 950 */
    border-color: #1e293b; /* Slate 800 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stage-btn:hover {
    border-color: #10b981; /* Emerald 500 */
    transform: translateY(-2px);
}

.active-stage-btn {
    border-color: #10b981 !important; /* Emerald 500 */
    background: linear-gradient(135deg, #022c22 0%, #020617 100%) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.active-stage-btn span:first-child {
    color: #a3e635 !important; /* Lime 400 */
}

/* Hologram Warning Light for Quarantine */
.quarantine-light {
    position: relative;
}
.quarantine-light::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: quarantineBlink 1.2s infinite alternate;
}

@keyframes quarantineBlink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Handwriting Note block */
.handwriting-note {
    font-family: 'Kalam', cursive;
    color: #a3e635; /* Lime 400 */
    line-height: 1.4;
}

/* Interactive Tabs styling */
.active-q-btn {
    background-color: #10b981;
    color: #020617;
    border-color: #10b981;
}

.active-doc-tab {
    background-color: #10b981;
    color: #020617;
    border-color: #10b981;
}

.standard-card img {
    transition: transform 240ms ease, filter 240ms ease;
}

.standard-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.inspection-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #1e293b;
    border-radius: 0.75rem;
    background: #020617;
    color: #cbd5e1;
    line-height: 1.35;
}

.inspection-check input {
    margin-top: 0.1rem;
    accent-color: #10b981;
}

.inspection-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.inspection-report-table th,
.inspection-report-table td {
    border: 1px solid #cbd5e1;
    padding: 6px;
    vertical-align: top;
}

.inspection-report-table th {
    background: #f1f5f9;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
}

/* PRINT OUT STYLES & OVERRIDES */
@media print {
    /* Hide everything on the standard screen layout */
    body * {
        visibility: hidden !important;
    }

    /* Target specific blocks we want to isolate for print */
    #printableLabelBlock, #printableLabelBlock * {
        visibility: visible !important;
    }
    #printableCoaBlock, #printableCoaBlock * {
        visibility: visible !important;
    }
    #printableManifestBlock, #printableManifestBlock * {
        visibility: visible !important;
    }
    #printableInspectionBlock, #printableInspectionBlock * {
        visibility: visible !important;
    }

    /* Label Print Configuration */
    #printableLabelBlock {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0.25in;
        margin: 0;
        background-color: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        box-shadow: none !important;
        border: none !important;
    }

    #printableLabelBlock .sticker-sheet {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.18in;
        width: 100%;
    }

    #printableLabelBlock .sticker-cell {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px dashed #94a3b8;
        padding: 0.08in;
    }

    #printableLabelBlock .codep-label {
        box-shadow: none !important;
    }

    /* Certificate of Analysis (COA) Print Configuration */
    #printableCoaBlock {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0.5in;
        margin: 0;
        background-color: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        box-shadow: none !important;
    }

    /* Transport Manifest Print Configuration */
    #printableManifestBlock {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0.5in;
        margin: 0;
        background-color: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        box-shadow: none !important;
    }

    /* Inspection Report Print Configuration */
    #printableInspectionBlock {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0.5in;
        margin: 0;
        background-color: #ffffff !important;
        color: #000000 !important;
        display: block !important;
        box-shadow: none !important;
    }
}
