body {
    padding-top: 0;
    padding-bottom: 20px;
}

.hero-section {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f1ff 100%);
    border-radius: 1rem;
}

/* Nicaragua MINT verification portal */
.mint-body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-size: cover;
    min-height: 100vh;
}

.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 47, 97, 0.95);
    color: #fff;
    border-bottom: 3px solid #c9a227;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-custom-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-custom-brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.navbar-custom-brand:hover {
    color: #fff;
    opacity: 0.9;
}

.mint-verify-content {
    padding-top: 4.5rem;
}

.mint-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mint-header {
    background: linear-gradient(180deg, #0b3d7a 0%, #082f61 100%);
    color: #fff;
    padding: 1.5rem 1rem;
    border-bottom: 4px solid #c9a227;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mint-header-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.mint-emblem-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #c9a227;
    background: #fff;
    color: #0b3d7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.mint-country {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.mint-ministry {
    margin: 0.15rem 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.mint-department {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

.mint-main {
    flex: 1;
    padding: 2rem 1rem;
}

.mint-panel {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mint-panel-title {
    background: #f4f7fb;
    border-bottom: 1px solid #dde5ee;
    padding: 1.25rem 1.5rem;
}

.mint-panel-title h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #0b3d7a;
    font-weight: 700;
}

.mint-panel-title p {
    margin: 0;
    color: #5c6b7a;
    font-size: 0.95rem;
}

.mint-search-box {
    padding: 1.5rem;
    border-bottom: 1px solid #eef2f6;
}

.mint-field-label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.mint-search-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mint-input {
    flex: 1;
    min-width: 220px;
    border: 1px solid #b8c5d6;
    border-radius: 3px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.mint-btn-search {
    background: #0b3d7a;
    color: #fff;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 3px;
    font-weight: 600;
}

.mint-btn-search:hover {
    background: #082f61;
    color: #fff;
}

.mint-actions {
    padding: 1rem 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mint-btn-print {
    background: #198754;
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-weight: 600;
}

.mint-btn-print:hover {
    background: #157347;
    color: #fff;
}

.mint-btn-secondary {
    background: #fff;
    color: #0b3d7a;
    border: 1px solid #0b3d7a;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    font-weight: 600;
    text-decoration: none;
}

.mint-btn-secondary:hover {
    background: #f4f7fb;
    color: #0b3d7a;
}

.mint-visa-result {
    padding: 1.5rem;
}

.mint-result-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    border-radius: 3px;
}

.mint-result-valid {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.mint-result-invalid {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffe08a;
}

.mint-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: 0.85rem;
}

.mint-result-valid .mint-result-icon {
    background: #198754;
}

.mint-reference-box {
    text-align: center;
    background: #f8fafc;
    border: 2px dashed #0b3d7a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 3px;
}

.mint-reference-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.mint-reference-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0b3d7a;
    letter-spacing: 0.06em;
}

.mint-cert-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    border: 1px solid #dde5ee;
    border-radius: 3px;
    padding: 1.25rem;
    background: #fff;
}

.mint-photo-frame {
    width: 150px;
    height: 180px;
    border: 2px solid #94a3b8;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.mint-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #64748b;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
}

.mint-photo-caption,
.mint-qr-caption {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.mint-qr-wrap {
    margin-top: 1rem;
    text-align: center;
}

.mint-qr-image {
    border: 1px solid #dde5ee;
    padding: 4px;
    background: #fff;
}

.mint-details-table {
    width: 100%;
    border-collapse: collapse;
}

.mint-details-table th,
.mint-details-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #eef2f6;
    vertical-align: top;
    font-size: 0.92rem;
}

.mint-details-table th {
    width: 42%;
    color: #475569;
    font-weight: 600;
    background: #f8fafc;
}

.mint-details-table td {
    color: #1e293b;
    font-weight: 500;
}

.mint-text-valid {
    color: #198754;
}

.mint-text-invalid {
    color: #b45309;
}

.mint-cert-footer {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f4f7fb;
    border-top: 1px solid #dde5ee;
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
}

.mint-footer {
    text-align: center;
    padding: 1.25rem;
    color: #64748b;
    font-size: 0.85rem;
}

.mint-footer p {
    margin-bottom: 0.35rem;
}

.mint-footer-link {
    color: #0b3d7a;
    text-decoration: none;
    font-weight: 600;
}

.mint-alert {
    border-radius: 3px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .mint-cert-grid {
        grid-template-columns: 1fr;
    }

    .mint-ministry {
        font-size: 1.25rem;
    }

    .mint-header-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media print {
    .no-print,
    .mint-header,
    .mint-footer,
    .mint-search-box,
    .mint-actions,
    .mint-panel-title,
    header,
    footer,
    .navbar,
    hr {
        display: none !important;
    }

    .mint-body {
        background: #fff;
    }

    .mint-panel {
        border: none;
        box-shadow: none;
    }

    .mint-visa-result {
        padding: 0;
    }

    .mint-cert-grid {
        border-width: 1px;
    }
}

/* Legacy staff views */
.visa-document {
    border: 2px solid #0d6efd;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

.visa-document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    color: #fff;
}

.visa-document-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.visa-document-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.visa-document-body {
    padding: 2rem;
}

.visa-detail-list dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.15rem;
}

.visa-detail-list dd {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.visa-document-footer {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

.photo-preview-wrap {
    margin-top: 0;
}

.photo-preview,
.photo-preview-placeholder {
    width: 100%;
    max-width: 160px;
    height: 200px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
}

.photo-preview {
    object-fit: cover;
    display: block;
}

.photo-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}
