/*
 * style.css
 * ตกแต่งรูปแบบพิเศษ แอนิเมชัน และสไตล์สำหรับพิมพ์เกียรติบัตร
 * โรงเรียนบ้านน้ำพร
 */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #1e3a8a;
    --primary-navy: #0f172a;
    --accent-gold: #d97706;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
}

body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Step Navigation Pills */
.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.step-pill.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-pill.completed {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.step-pill.pending {
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.step-pill.pending:hover {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Lab Tab Buttons */
.lab-tab-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.lab-tab-btn.active {
    background-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.lab-tab-btn.inactive {
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.lab-tab-btn.inactive:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Subtle Glow Effects */
.card-glow-blue {
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
}

/* Certificate Preview Styling */
.cert-container {
    background: #ffffff;
    border: 12px solid #1e3a8a;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.cert-inner-border {
    border: 2px solid #d97706;
    margin: 6px;
    padding: 2.5rem;
    position: relative;
}

.cert-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #d97706;
}
.cert-corner.top-left { top: -2px; left: -2px; border-top: 4px solid #d97706; border-left: 4px solid #d97706; }
.cert-corner.top-right { top: -2px; right: -2px; border-top: 4px solid #d97706; border-right: 4px solid #d97706; }
.cert-corner.bottom-left { bottom: -2px; left: -2px; border-bottom: 4px solid #d97706; border-left: 4px solid #d97706; }
.cert-corner.bottom-right { bottom: -2px; right: -2px; border-bottom: 4px solid #d97706; border-right: 4px solid #d97706; }

/* Print Stylesheet for A4 Landscape Certificate */
@media print {
    body * {
        visibility: hidden;
    }

    #cert-print-area, #cert-print-area * {
        visibility: visible;
    }

    #cert-print-area {
        position: fixed;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        background: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 99999;
    }

    .no-print {
        display: none !important;
    }

    @page {
        size: A4 landscape;
        margin: 0;
    }
}
