/* Verify Certificate Styles */
:root {
    --primary-color: #3498db;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --text-color: #2c3e50;
    --bg-color: rgba(245, 247, 250, 0.95);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.verify-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.verify-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.verify-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.verify-section h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease-in-out infinite;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

@keyframes rainbowText {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
    }
}

.verify-form-container {
    margin-bottom: 2rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input[type="date"] {
    cursor: pointer;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    outline: none;
}

/* Customize date input calendar icon */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    filter: invert(0.5);
    transition: all 0.3s ease;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(0.7);
    transform: scale(1.1);
}

.verify-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.verify-btn::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: 0.5s;
}

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

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 2rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

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

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--error-color);
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Certificate Details */
.certificate-details {
    display: none;
    animation: fadeIn 0.3s ease;
}

.verification-result {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.verification-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('certificate-bg.png') center/cover;
    opacity: 0.05;
    pointer-events: none;
}

.verification-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.verification-header h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.verification-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 3px;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border-radius: 50px;
    font-weight: 500;
    margin-top: 1rem;
    animation: pulse 2s infinite;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.7);
}

.info-label {
    font-weight: 500;
    color: var(--text-color);
}

.info-value {
    color: var(--text-color);
    font-weight: 600;
}

.verification-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.iso-stamp-container {
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.iso-stamp-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iso-stamp {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.iso-stamp-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.iso-certification-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.iso-certification-text i {
    font-size: 1.5rem;
    color: var(--success-color);
    animation: spin 4s linear infinite;
}

.iso-certification-text p {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.iso-certification-date {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.verification-details {
    margin-top: 1rem;
    text-align: center;
}

.verification-details p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.verification-details p:last-child {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.verification-footer p {
    margin: 0.5rem 0;
    color: #666;
}

.verification-footer p:last-child {
    margin-top: 1rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 5;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .verify-container {
        padding: 1rem;
    }
    
    .verify-section {
        padding: 1.5rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.verify-description {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.verify-submit-btn {
    background: var(--gradient-primary);
    color: var(--light-text);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.verify-submit-btn i {
    font-size: 1.1rem;
}

.verification-result.verified {
    border-top: 5px solid #2ecc71;
}

.verification-result.error {
    border-top: 5px solid #e74c3c;
}

.verification-header i {
    font-size: 2rem;
}

.verification-result.verified .verification-header i {
    color: #2ecc71;
}

.verification-result.error .verification-header i {
    color: #e74c3c;
}

.certificate-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.certificate-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.certificate-header h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-color);
}

.verified {
    color: #2ecc71;
}

.not-verified {
    color: #e74c3c;
}

/* Certificate Display Styles */
.certificate-display {
    background: #fff;
    padding: 3rem;
    border: 20px solid #f8d679;
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.certificate-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('certificate-bg.png') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.certificate-header-main {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.institute-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.certificate-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-family: 'Times New Roman', serif;
}

.certificate-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.certificate-content {
    text-align: center;
    margin: 2rem 0;
    line-height: 2;
    font-size: 1.1rem;
}

.student-name {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 1rem 0;
}

.certificate-course {
    font-size: 1.4rem;
    color: #34495e;
    margin: 1rem 0;
}

.certificate-date {
    font-size: 1.1rem;
    color: #666;
    margin: 1rem 0;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
}

.signature-section {
    text-align: center;
    flex: 1;
}

.signature-line {
    width: 200px;
    height: 2px;
    background: #2c3e50;
    margin: 0.5rem auto;
}

.signature-title {
    font-size: 0.9rem;
    color: #666;
}

.certificate-stamps {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    display: flex;
    gap: 1rem;
}

.cert-stamp {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

.certificate-border {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border: 2px solid #f8d679;
    pointer-events: none;
}

.serial-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* Remove the action buttons styles */
@media print {
    .verify-form-container,
    .verify-description,
    .header,
    .footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .verify-container {
        padding: 100px 5% 3rem;
    }

    .verify-section h1 {
        font-size: 2rem;
    }

    .verify-form-container,
    .certificate-details {
        padding: 1.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .certificate-display {
        padding: 1.5rem;
        border-width: 10px;
    }

    .certificate-title {
        font-size: 2rem;
    }

    .student-name {
        font-size: 1.5rem;
    }

    .certificate-course {
        font-size: 1.2rem;
    }

    .certificate-stamps {
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .iso-stamp,
    .cert-stamp {
        width: 80px;
        height: 80px;
    }
} 