/* -------- Base typography & layout -------- */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* Focus styles (from default template) */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;

}
.form-control {
    border: 1px solid #000 !important;
}
.form-label {
    font-weight: 600;
}
/* Floating label tweaks */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* -------- Government look & feel -------- */

/* Top bar + tricolour strip */
.gov-top-bar {
    background-color: #004a8f;
}

.gov-tricolour {
    height: 4px;
    background: linear-gradient( to right, #ff9933 33%, #ffffff 33% 66%, #138808 66% );
}

.gov-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* -------- Hero section (landing) -------- */

.hero-banner,
.sccp-hero {
    background: linear-gradient(90deg, #0f6cbf, #138808);
    color: #fff;
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .hero-banner::after,
    .sccp-hero::after {
        content: "";
        position: absolute;
        right: -60px;
        top: 20px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.12);
    }

/* extra overlay used in React-style design */
.sccp-hero-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.15), transparent 60%), radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.sccp-emblem {
    max-height: 3rem;
}

/* -------- Small stat cards (MyGov style) -------- */

.stat-card,
.sccp-stat-card {
    border-left: 4px solid #0f6cbf;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.stat-number,
.sccp-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
}

/* -------- Benefit & documents sections -------- */

.sccp-benefits-bg {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.sccp-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: background-color 0.15s ease-in-out;
}

    .sccp-doc-item:hover {
        background: #f1f5f9;
    }

.sccp-doc-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.75rem;
}

/* -------- Status badges -------- */

.badge-status-submitted {
    background-color: #0d6efd;
}

.badge-status-admin {
    background-color: #ffc107;
    color: #000;
}

.badge-status-super {
    background-color: #28a745;
}

.badge-status-rejected {
    background-color: #dc3545;
}

.badge-status-reverted {
    background-color: #0dcaf0;
}

/* -------- Tables -------- */

.table-hover tbody tr:hover {
    background-color: #f5f8ff;
}
/* We already have .print-area as a flex row => single frame for front+back */

/* Remove inline size from photo: control here */
.photo {
    width: 130px;
    height: 160px;
    border-radius: 10px;
    background: #e6e9ee;
    overflow: hidden;
    border: 6px solid #f7f7f7;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06) inset;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* NEW: back layout – left address, right QR */
.back-main {
    display: flex;
    padding: 18px;
    gap: 18px;
    align-items: flex-start;
}

.back-address {
    flex: 1;
    font-size: 12px;
    line-height: 1.6;
}

.addr-row {
    margin-bottom: 8px;
}

.addr-row strong {
    display: block;
    margin-bottom: 2px;
}

.back-qr-block {
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.back-qr-block .qr {
    width: 140px;
    height: 140px;
    background: #fff;
    border: 8px solid #f7f7f7;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04) inset;
}

.qr-caption {
    font-size: 10px;
    text-align: center;
}

/* Bottom verification note */
.back-footer-note {
    padding: 4px 20px 10px 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}
