﻿ 
 
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .form-section h2 {
        color: #2c5282;
        margin-bottom: 25px;
        text-align: center;
        font-size: 24px;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        color: #2d3748;
        font-weight: bold;
    }

    .form-group input, .form-group select {
        width: 100%;
        padding: 12px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 16px;
        transition: border-color 0.3s;
    }

        .form-group input:focus, .form-group select:focus {
            outline: none;
            border-color: #3182ce;
        }

.photo-upload {
    border: 2px dashed #cbd5e0;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

    .photo-upload:hover {
        border-color: #3182ce;
    }

    .photo-upload input[type="file"] {
        display: none;
    }

.id-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.id-card {
    width: 350px;
    height: 550px;
    background: linear-gradient(to bottom, #3182ce 0%, #3182ce 15%, #ffffff 15%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

    .id-card:hover {
        transform: perspective(1000px) rotateY(0deg);
    }

.card-header {
    background: #3182ce;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.university-logo {
    width: 50px;
    height: 50px;
    background: #ffd700;
    border-radius: 50%;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2c5282;
    font-size: 14px;
}

.university-name {
    font-size: 18px;
    font-weight: bold;
    margin-left: 60px;
}

.university-address {
    font-size: 12px;
    margin-left: 60px;
    margin-top: 5px;
    opacity: 0.9;
}

.scholar-banner {
    background: #2c5282;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-body {
    padding: 0px 20px 0px 20px;
    text-align: center;
}

.barcode-container {
    margin: 10px 0 0 90px;
    text-align:center !important;
}

    .barcode-container svg {
        max-width: 100%;
        height: 50px;
    }

.photo-section {
    margin: 10px 0;
    position: relative;
}

.photo-frame {
    width: 120px;
    height: 140px;
    border: 3px solid #3182ce;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.crop-mark {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid #3182ce;
}

    .crop-mark.tl {
        top: -4px;
        left: -4px;
        border-right: none;
        border-bottom: none;
    }

    .crop-mark.tr {
        top: -4px;
        right: -4px;
        border-left: none;
        border-bottom: none;
    }

    .crop-mark.bl {
        bottom: -4px;
        left: -4px;
        border-right: none;
        border-top: none;
    }

    .crop-mark.br {
        bottom: -4px;
        right: -4px;
        border-left: none;
        border-top: none;
    }

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-photo {
    color: #a0aec0;
    font-size: 12px;
    text-align: center;
}

.student-id {
    font-size: 18px;
    font-weight: bold;
    color: #2c5282;
    margin: 15px 0;
}

.student-details {
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: bold;
    color: #2d3748;
    width: 100px;
    flex-shrink: 0;
}

.detail-value {
    color: #4a5568;
    flex: 1;
}

.generate-btn {
    background: linear-gradient(45deg, #3182ce, #2c5282);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
    margin-top: 20px;
}

    .generate-btn:hover {
        transform: translateY(-2px);
    }

.print-btn {
    background: linear-gradient(45deg, #38a169, #2f855a);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
    margin-left: 15px;
}

    .print-btn:hover {
        transform: translateY(-2px);
    }

.button-group {
    text-align: center;
    margin-top: 20px;
}

/* Print Styles */
@page {
    margin: 0.5in;
    size: A4;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden !important;
    }

    .id-card-container,
    .id-card-container * {
        visibility: visible !important;
    }

    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .form-section {
        display: none !important;
        visibility: hidden !important;
    }

    .container {
        display: block !important;
        grid-template-columns: none !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .id-card-container {
        position: absolute !important;
        top: 50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: block !important;
        page-break-inside: avoid !important;
        width: 100% !important;
        text-align: center !important;
    }

    .id-card {
        width: 400px !important;
        height: 600px !important;
        margin: 0 auto !important;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        border: 3px solid #2c5282 !important;
        page-break-inside: avoid !important;
        background: white !important;
        display: block !important;
    }

    .card-header {
        background: #3182ce !important;
        color: white !important;
    }

    .university-logo {
        background: #ffd700 !important;
        color: #2c5282 !important;
    }

    .scholar-banner {
        background: #2c5282 !important;
        color: white !important;
    }

    .photo-frame {
        border: 3px solid #3182ce !important;
    }

    .crop-mark {
        border-color: #3182ce !important;
    }

    .student-id {
        color: #2c5282 !important;
        font-weight: bold !important;
    }

    .detail-label {
        color: #2d3748 !important;
        font-weight: bold !important;
    }

    .detail-value {
        color: #4a5568 !important;
    }

    .student-details {
        display: block !important;
    }

    .detail-row {
        display: flex !important;
        margin-bottom: 8px !important;
    }

    .barcode-container svg {
        display: block !important;
    }

    /* Hide all other elements */
    .form-section,
    .button-group,
    .generate-btn,
    .print-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .print-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

 
