/* Entrance Admit Card - Premium Styling */

.admit-card-search-section {
    padding: 60px 0;
    background-color: #f8fafc;
    min-height: 500px;
}

.search-card-container {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-box-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 2.5rem;
}

.search-box-card h4 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.search-box-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.search-input-group {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.search-input-group .form-control {
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #f8fafc;
}

.search-input-group .form-control:focus {
    box-shadow: none;
    background-color: #ffffff;
}

.btn-search-submit {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-search-submit:hover {
    background-color: #0369a1;
    color: #ffffff;
}

/* Admit Card Certificate Card */
.admit-card-container {
    max-width: 800px;
    margin: 0 auto;
}

.admit-card-certificate {
    background-color: #ffffff;
    border: 2px solid #0f172a;
    padding: 30px;
    font-family: Arial, sans-serif;
    color: #000000;
    line-height: 1.4;
    position: relative;
    box-sizing: border-box;
}

.admit-card-header {
    text-align: center;
    border-bottom: 1px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.admit-card-header h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admit-card-header h3 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.admit-card-header h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admit-card-roll {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Flex Row for Details and Photo */
.admit-card-body-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.admit-card-details {
    flex-grow: 1;
    padding-right: 20px;
}

.admit-card-details-table {
    width: 100%;
    border-collapse: collapse;
}

.admit-card-details-table td {
    padding: 6px 0;
    vertical-align: top;
    font-size: 13px;
}

.admit-card-details-table td.label-cell {
    width: 180px;
    font-weight: 800;
    text-transform: uppercase;
}

.admit-card-details-table td.separator-cell {
    width: 20px;
    font-weight: 800;
}

.admit-card-details-table td.value-cell {
    font-weight: 500;
}

.admit-card-photo-box {
    width: 130px;
    height: 160px;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    flex-shrink: 0;
    background-color: #ffffff;
    box-sizing: border-box;
}

.admit-card-photo-box span {
    font-size: 11px;
    color: #555555;
    font-style: italic;
}

/* Shaded Exam Box */
.admit-card-exam-info {
    background-color: #f1f5f9;
    border: 1px solid #000000;
    padding: 15px;
    margin-bottom: 25px;
}

.exam-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.exam-info-item {
    font-size: 13px;
}

.exam-info-item span.label {
    font-weight: 800;
    text-transform: uppercase;
}

.exam-info-item span.value {
    font-weight: 500;
}

.exam-centre-block {
    font-size: 13px;
}

.exam-centre-block span.label {
    font-weight: 800;
    text-transform: uppercase;
}

.exam-centre-block span.value {
    font-weight: 500;
}

/* Instructions */
.admit-card-instructions {
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 15px 0;
    margin-bottom: 20px;
}

.admit-card-instructions h5 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.admit-card-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.admit-card-instructions ol li {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Note */
.admit-card-note {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 45px;
    line-height: 1.4;
}

/* Signatures section */
.admit-card-signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
}

.signature-block {
    width: 220px;
    text-align: center;
}

.signature-space {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.signature-space img {
    max-height: 45px;
    max-width: 150px;
}

.signature-line {
    border-top: 1px solid #000000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding-top: 5px;
}

/* Print/Download Button */
.print-actions-container {
    text-align: center;
    margin-top: 30px;
}

.btn-print-admit-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-print-admit-card:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
}

.not-found-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.not-found-card .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem auto;
}

.not-found-card h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.not-found-card p {
    color: #64748b;
    margin-bottom: 0;
}

/* Print Specific Stylesheet */
@media print {
    /* Hide layout wrapper and normal elements */
    body * {
        visibility: hidden;
    }
    
    /* Show only the print area and its contents */
    #print-area, #print-area * {
        visibility: visible;
    }
    
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 2px solid #000000;
        padding: 30px;
        box-sizing: border-box;
    }
    
    .admit-card-exam-info {
        background-color: #f1f5f9 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Remove headers/footers default page layout margins */
    @page {
        margin: 20px;
    }
    
    /* Disable box shadow and other elements */
    .btn-print-admit-card, 
    .site-header, 
    .top-bar, 
    .dez-bnr-inr, 
    .breadcrumb-row, 
    .search-card-container, 
    .footer, 
    .print-actions-container {
        display: none !important;
    }
}
