<style >
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    /* OFFICIAL GOVERNMENT BACKGROUND */
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 25%, #1976d2 50%, #1565c0 75%, #0d47a1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

    /* Government watermark pattern */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 2px, transparent 2px), radial-gradient(circle at 75% 75%, rgba(255,255,255,0.04) 1px, transparent 1px);
        background-size: 60px 60px;
        pointer-events: none;
        z-index: 0;
    }

    /* Official seal background pattern */
    body::after {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 250px;
        height: 250px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/><circle cx="50" cy="50" r="35" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/><text x="50" y="45" text-anchor="middle" fill="rgba(255,255,255,0.02)" font-size="8" font-family="serif">STHAPATYA</text><text x="50" y="55" text-anchor="middle" fill="rgba(255,255,255,0.02)" font-size="6" font-family="serif">CONSULTANTS</text></svg>') center/contain no-repeat;
        pointer-events: none;
        z-index: 0;
    }

.verification-card {
    background: white;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    overflow: hidden;
    border: 4px solid #0d47a1;
    position: relative;
    z-index: 1;
}

.header {
    /* OFFICIAL GOVERNMENT HEADER */
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 20%, #1976d2 40%, #2196f3 60%, #1565c0 80%, #0d47a1 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    /* Government authority stripe */
    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: linear-gradient(90deg, #ff9800 0%, #ffffff 25%, #4caf50 50%, #ffffff 75%, #ff9800 100%);
    }

    /* Official seal overlay */
    .header::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 70px;
        height: 70px;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="48" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="2"/><circle cx="50" cy="50" r="35" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/><text x="50" y="40" text-anchor="middle" fill="rgba(255,255,255,0.15)" font-size="10" font-family="serif">GOVT</text><text x="50" y="52" text-anchor="middle" fill="rgba(255,255,255,0.15)" font-size="10" font-family="serif">AUTH</text><text x="50" y="64" text-anchor="middle" fill="rgba(255,255,255,0.15)" font-size="6" font-family="serif">2001</text></svg>') center/contain no-repeat;
        opacity: 0.4;
    }

.company-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #0d47a1;
    font-size: 22px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.6);
    border: 4px solid rgba(255,255,255,0.25);
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.header h2 {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.header h3 {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 15px;
    font-style: italic;
}

.verification-badge {
    background: rgba(255,255,255,0.18);
    padding: 12px 25px;
    border-radius: 30px;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    border: 3px solid rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.content-area {
    padding: 35px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.employee-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 8px solid #0d47a1;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border: 2px solid rgba(13, 71, 161, 0.1);
}

.photo-container {
    flex-shrink: 0;
    position: relative;
}

.employee-photo {
    width: 140px;
    height: 170px;
    border-radius: 15px;
    border: 5px solid #0d47a1;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.photo-placeholder {
    width: 140px;
    height: 170px;
    border-radius: 15px;
    border: 5px dashed #90a4ae;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f5f5f5, #eeeeee);
    color: #546e7a;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.photo-verified {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 5px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.employee-details {
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 2px solid rgba(13, 71, 161, 0.1);
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 700;
    color: #0d47a1;
    min-width: 150px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    color: #1a237e;
    font-weight: 600;
    flex: 1;
    text-align: right;
    font-size: 16px;
}

.status-section {
    text-align: center;
    margin: 30px 0;
}

.status-box {
    padding: 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    border: 4px solid;
}

    .status-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s;
    }

.status-valid {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border-color: #388e3c;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4);
}

.status-expired {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: white;
    border-color: #d32f2f;
    box-shadow: 0 8px 30px rgba(244, 67, 54, 0.4);
}

.status-loading {
    background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
    color: white;
    border-color: #455a64;
    box-shadow: 0 8px 30px rgba(96, 125, 139, 0.4);
}

.footer-info {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
    padding: 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}

    .footer-info strong {
        color: #64b5f6;
    }

.qr-info {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.08) 0%, rgba(21, 101, 192, 0.05) 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 6px solid #0d47a1;
    border-right: 2px solid rgba(13, 71, 161, 0.1);
}

    .qr-info small {
        color: #37474f;
        font-size: 12px;
        line-height: 1.7;
    }

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #0d47a1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 0.7s ease-in-out;
}

@media (max-width: 650px) {
    body {
        padding: 15px;
    }

    .verification-card {
        border-radius: 12px;
        border-width: 3px;
    }

    .employee-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }

    .detail-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 0;
    }

    .detail-value {
        text-align: center;
    }

    .header h1 {
        font-size: 24px;
    }

    .company-logo {
        width: 70px;
        height: 70px;
        font-size: 20px;
    }

    .status-box {
        font-size: 16px;
        padding: 25px;
    }
}

</style >
