:root {
    --card-bg: #fdf6d0;
    --card-accent: #008000;
    --card-header-bg: #166534;
    --card-text: #1f2937;
    --label-color: #6b7280;
}

.id-card-container {
    display: flex;
    width: 400px;
    height: 250px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
    color: var(--card-text);
}

/* Left Section - Student Photo & QR Code */
.photo-section {
    width: 35%;
    height: 100%;
    background: #ffffff;
    border-right: 2px solid var(--card-accent);
    position: relative;
    display: flex;
    flex-direction: column;
}

.photo-container {
    width: 100%;
    height: 60%;
    position: relative;
    background: #e5e7eb;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signature-overlay {
    position: absolute;
    bottom: 5px;
    left: 5px;
    max-height: 30px;
    max-width: 90%;
    pointer-events: none;
    z-index: 10;
}

.qr-container {
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 6px;
    box-sizing: border-box;
    border-top: 1px solid #e5e7eb;
}

.qr-code {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Right Section - Student Information */
.info-section {
    width: 65%;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    position: relative;
}

.card-header-strip {
    background-color: var(--card-accent);
    color: white;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-body {
    flex: 1;
    padding: 10px 15px;
    position: relative;
    z-index: 2;
}

.school-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.school-logo-small {
    height: 30px;
    width: auto;
}

.school-name-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--card-accent);
    line-height: 1;
}

.card-type-label {
    font-size: 0.55rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.year-badge-pill {
    background: var(--card-accent);
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-size: 0.5rem;
}

.data-row {
    display: flex;
    margin-bottom: 3px;
    font-size: 0.65rem;
}

.data-label {
    width: 65px;
    color: var(--label-color);
    font-weight: 500;
}

.data-value {
    font-weight: 800;
    color: #111;
}

.data-value.id-highlight {
    color: var(--card-accent);
}

.barcode-area {
    margin-top: auto;
}

.barcode-static {
    height: 25px;
    width: 100%;
    background-color: #111;
    background-image: linear-gradient(90deg, #111 50%, transparent 50%);
    background-size: 3px 100%;
    opacity: 0.8;
}

.barcode-text {
    font-size: 0.5rem;
    text-align: center;
    margin-top: 1px;
    font-weight: 700;
}

.card-footer-strip {
    background-color: var(--card-accent);
    color: white;
    padding: 3px;
    text-align: center;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Watermark Effect */
.watermark-container {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.watermark-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
}

@@media print, .pdf-export-active-context {
    .print-grid, &.print-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10mm !important;
        padding: 5mm !important;
        width: 100% !important;
        background: white !important;
    }

    .id-card-container {
        width: 85.6mm !important;
        height: 54mm !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .info-body { padding: 2mm 3mm !important; }
    .school-name-text { font-size: 0.9rem !important; }
    .data-row { margin-bottom: 0.5mm !important; font-size: 0.55rem !important; }
    .data-label { width: 14mm !important; }
    .barcode-static { height: 6mm !important; }
}

@@media print {
    .d-print-inline { display: inline !important; }
    .mt-5-print { margin-top: 3rem !important; }

    @@page {
        size: A4;
        margin: 0;
    }
}
