.certificate-verification-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.verification-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 40px auto;
    backdrop-filter: blur(10px);
}

.verification-header {
    background: linear-gradient(135deg, #0076ba 0%, #0d2131 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.verification-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><path d="M500 50Q550 0 600 50T700 50T800 50T900 50T1000 50V100H0V50Q100 50 200 50T300 50T400 50T500 50Z"/></svg>');
    background-size: cover;
}

.verification-header h1 {
    margin: 0 0 20px 0;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: -1px;
    position: relative;
	color:white;
}

.verification-header p {
    margin: 0;
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

.verification-card {
    padding: 80px 40px;
    background: white;
    position: relative;
}

.verification-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 40px;
}

.input-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 20px 25px;
    border: 3px solid #e2e8f0;
    border-radius: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 500;
}

.input-group input:focus {
    border-color: #3b82f6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.input-hint {
    font-size: 1em;
    color: #64748b;
    margin-top: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.verify-button {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verify-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.verify-button:hover::before {
    left: 100%;
}

.verify-button:hover {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 41, 59, 0.3);
}

.verify-button:active {
    transform: translateY(-1px);
}

.verify-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner-small {
    width: 22px;
    height: 22px;
    border: 3px solid transparent;
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-state {
    text-align: center;
    padding: 100px 40px;
    background: white;
}

.loading-animation {
    margin-bottom: 40px;
}

.loading-animation .spinner {
    width: 80px;
    height: 80px;
    border: 5px solid #f1f5f9;
    border-top: 5px solid #1e293b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-state h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.loading-state p {
    color: #64748b;
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

.result-container {
    padding: 0;
}

.certificate-result.verified {
    background: white;
}

.result-header {
    padding: 60px 40px;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.result-header.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.result-header.success::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    opacity: 0.1;
    font-weight: bold;
}

.result-header h2 {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
	color:white
}

.result-header p {
    margin: 0;
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
}

.certificate-table-container {
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.certificate-details-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.certificate-details-table:hover {
    transform: translateY(-5px);
}

.table-section-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    padding: 25px 30px;
    text-align: left;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.certificate-details-table tbody tr {
    border-bottom: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.certificate-details-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.01);
}

.certificate-details-table tbody tr:last-child {
    border-bottom: none;
}

.field-label {
    padding: 22px 25px;
    font-weight: 700;
    color: #374151;
    background: #f8fafc;
    border-right: 3px solid #e5e7eb;
    width: 35%;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    vertical-align: top;
}

.field-value {
    padding: 22px 25px;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.6;
    vertical-align: top;
}

.certificate-id {
    color: #3b82f6;
    font-weight: 800;
    font-size: 1.2em;
    background: #eff6ff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
     margin: 10px;
}

.student-photo-container {
    display: flex;
	border-radius:10px;
    align-items: center;
    gap: 20px;
}

.student-photo-table {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.student-photo-table:hover {
    transform: scale(1.05);
    border-color: #3b82f6;
}

.photo-placeholder-table {
    display: inline-flex;
    align-items: center;
    padding: 15px 25px;
    background: #f3f4f6;
    border: 3px dashed #d1d5db;
    border-radius: 10px;
    color: #6b7280;
    font-size: 1em;
    font-weight: 600;
    gap: 10px;
}

.photo-placeholder-table::before {
    content: '📷';
    font-size: 1.2em;
}

.grade-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.date-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #fbbf24;
    color: #78350f;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95em;
    margin: 2px;
}

.verification-footer {
    margin-top: 50px;
    padding: 40px;
    border-top: 3px solid #f1f5f9;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.verification-stamp {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 4px solid #10b981;
    border-radius: 15px;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.verification-stamp::before {
    content: 'VERIFIED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 40px;
    font-weight: 900;
    color: #10b981;
    opacity: 0.1;
    letter-spacing: 5px;
}

.stamp-text {
    text-align: center;
    position: relative;
}

.stamp-text strong {
    display: block;
    color: #065f46;
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 5px;
}

.stamp-text span {
    color: #059669;
    font-size: 1.1em;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.certificate-result.verified {
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .certificate-table-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .certificate-verification-form {
        padding: 15px;
    }
    
    .verification-container {
        margin: 20px auto;
        border-radius: 12px;
    }
    
    .verification-header {
        padding: 40px 25px;
    }
    
    .verification-header h1 {
        font-size: 2.2em;
    }
    
    .verification-header p {
        font-size: 1.1em;
    }
    
    .verification-card {
        padding: 50px 25px;
    }
    
    .input-group input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .verify-button {
        padding: 20px;
        font-size: 1.1em;
    }
    
    .certificate-table-container {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .certificate-details-table {
        border-radius: 15px;
    }
    
    .table-section-header {
        font-size: 1.2em;
        padding: 20px 25px;
    }
    
    .field-label,
    .field-value {
        padding: 18px 20px;
        font-size: 0.95em;
    }
    
    .field-label {
        width: 40%;
        font-size: 0.9em;
    }
    
    .result-header {
        padding: 40px 25px;
    }
    
    .result-header h2 {
        font-size: 2em;
    }
    
    .result-header.success::before {
        font-size: 120px;
    }
    
    .student-photo-table {
        width: 80px;
        height: 80px;
    }
    
    .verification-footer {
        padding: 30px 25px;
    }
    
    .verification-stamp {
        padding: 20px 25px;
    }
    
    .verification-stamp::before {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .verification-header {
        padding: 30px 20px;
    }
    
    .verification-header h1 {
        font-size: 1.8em;
    }
    
    .verification-header p {
        font-size: 1em;
    }
    
    .verification-card {
        padding: 40px 20px;
    }
    
    .verification-form {
        max-width: 100%;
    }
    
    .input-group {
        margin-bottom: 30px;
    }
    
    .input-group label {
        font-size: 1.1em;
    }
    
    .input-group input {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .certificate-table-container {
        padding: 25px 15px;
        gap: 20px;
    }
    
    .certificate-details-table {
        font-size: 0.9em;
        border-radius: 12px;
    }
    
    .field-label,
    .field-value {
        padding: 15px;
        display: block;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #f1f5f9;
        text-align: left;
    }
    
    .field-label {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        font-weight: 700;
        border-bottom: none;
        padding-bottom: 10px;
    }
    
    .field-value {
        background: white;
        padding-top: 10px;
    }
    
    .certificate-details-table tbody tr {
        display: block;
        margin-bottom: 0;
        border-bottom: 3px solid #e5e7eb;
        padding: 0;
    }
    
    .certificate-details-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .table-section-header {
        text-align: center;
        padding: 18px 20px;
        font-size: 1.1em;
    }
    
    .student-photo-container {
        justify-content: center;
        text-align: center;
	    border-radius:5px;
    }
    
    .student-photo-table {
        width: 100px;
        height: 100px;
    }
    
    .loading-state {
        padding: 60px 20px;
    }
    
    .loading-animation .spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading-state h3 {
        font-size: 1.4em;
    }
    
    .verification-stamp {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .stamp-text {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .certificate-verification-form {
        background: white !important;
        padding: 0 !important;
    }
    
    .verification-container {
        box-shadow: none !important;
        margin: 0 !important;
    }
    
    .verify-button,
    .verification-header p,
    .input-hint {
        display: none !important;
    }
    
    .certificate-result.verified {
        break-inside: avoid;
    }
}