html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* main content grow kare */
main {
    flex: 1;
}

/* footer */
.app-footer {
    background-color: #212529;
    color: #ccc;
    padding: 18px 0;
    font-size: 14px;
}
.pan-card {
    max-width: 100%;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.pan-header {
    background: linear-gradient(135deg, #5147a3, #6a5acd);
    color: #fff;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pan-icon {
    font-size: 22px;
}

.pan-body {
    padding: 18px;
}

.pan-table {
    width: 100%;
    border-collapse: collapse;
}

    .pan-table tr {
        border-bottom: 1px dashed #e5e5e5;
    }

        .pan-table tr:last-child {
            border-bottom: none;
        }

.pan-label {
    width: 40%;
    padding: 10px 8px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.pan-value {
    width: 60%;
    padding: 10px 8px;
    color: #111;
    font-weight: 500;
    font-size: 15px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e6f7ef;
    color: #1f8f5f;
    font-weight: 600;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .pan-card {
        margin: 10px;
    }

    .pan-table tr {
        display: block;
        margin-bottom: 14px;
        border-bottom: none;
    }

    .pan-label {
        display: block;
        width: 100%;
        padding-bottom: 2px;
        font-size: 13px;
        color: #888;
    }

    .pan-value {
        display: block;
        width: 100%;
        font-size: 15px;
    }
}

.pan-card {
    max-width: 100%;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

    .card-header h4 {
        margin: 0;
        color: #5147a3;
    }

.btn-print {
    background: #5147a3;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

    .btn-print:hover {
        background: #3f3790;
    }

.pan-table {
    width: 100%;
    border-collapse: collapse;
}

    .pan-table tr {
        border-bottom: 1px solid #f0f0f0;
    }

    .pan-table td {
        padding: 10px;
        font-size: 14px;
    }

        .pan-table td:first-child {
            font-weight: 600;
            color: #555;
            width: 40%;
        }

        .pan-table td:last-child {
            color: #000;
        }

/* Responsive */
@media (max-width: 600px) {
    .pan-table td {
        display: block;
        width: 100%;
    }

        .pan-table td:first-child {
            background: #f7f7f7;
        }
}

/* Print only PAN card */
@media print {
    body * {
        visibility: hidden;
    }

    #panResultCard, #panResultCard * {
        visibility: visible;
    }

    #panResultCard {
        position: absolute;
        left: 0;
        top: 0;
        box-shadow: none;
    }

    .btn-print {
        display: none;
    }
}
