* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

/* Landing page */

.home {
    background: #56595b;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-btn {
    width: 360px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #3478c8;
    color: white;

    border-radius: 13px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;

    text-decoration: none;

    box-shadow:
        0 2px 5px rgba(0,0,0,0.2);

    transition: 0.2s ease;
}

.certificate-btn:hover {
    background: #286bb7;
    transform: translateY(-1px);
}


/* Certificate viewer */

.viewer {
    background: #303633;
    min-height: 100vh;

    display: flex;
    justify-content: center;

    overflow-x: hidden;
}

.viewer-container {
    width: 100%;
    max-width: 1200px;

    padding-top: 80px;
    padding-bottom: 80px;
}


.certificate-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;
}

.certificate {
    display: block;

    width: min(95vw, 1000px);
    height: auto;

    box-shadow:
        0 4px 15px rgba(0,0,0,0.35);
}


/* Mobile */

@media (max-width: 600px) {

    .certificate-btn {
        width: 360px;
        max-width: 82vw;

        height: 72px;

        font-size: 29px;
    }

    .viewer-container {
        padding-top: 70px;
    }

    .certificate {
        width: 96vw;
    }

}

/* ==========================================================================
   QR Code Page & Interactive Utility Styles
   ========================================================================== */

.qr-body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f1f5f9;
}

.qr-card {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
}

.qr-header .badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qr-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.qr-header .subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
    margin-bottom: 24px;
}

.qr-display-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
}

.qr-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
}

.qr-code-box img,
.qr-code-box canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.scan-hint {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.url-config-box {
    text-align: left;
    margin-bottom: 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.url-config-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row input {
    flex: 1;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-row input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.helper-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.qr-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #334155;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-outline {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.deploy-guide {
    text-align: left;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.deploy-guide h3 {
    font-size: 14px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 8px;
}

.deploy-guide ol {
    margin-left: 20px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

.deploy-guide a {
    color: #38bdf8;
    text-decoration: underline;
}

.deploy-guide code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: monospace;
    color: #f1f5f9;
}

.nav-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #38bdf8;
}

/* Floating QR shortcut button on certificate page */
.floating-qr-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #38bdf8;
    color: #0f172a;
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    z-index: 100;
}

.floating-qr-btn:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.home-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-link-subtle {
    color: #cbd5e1;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.qr-link-subtle:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: #ffffff;
}