/* Share Certificate Verification Styles */

.qr-scanner-container {
    margin: 20px 0;
    text-align: center;
}

#qr-reader {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#qr-reader video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#verificationResults {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.certificate-valid {
    background: rgba(135, 206, 250, 0.1);
    border: 2px solid rgba(135, 206, 250, 0.3);
    color: #87CEEB;
}

.certificate-invalid {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.certificate-info {
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #87CEEB;
}

.certificate-info h4 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.2em;
}

.certificate-info p {
    margin: 5px 0;
    color: #36454F;
    font-size: 0.9em;
}

.certificate-info strong {
    color: #36454F;
    font-weight: bold;
}

.qr-code-display {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qr-code-display canvas {
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.scanner-content h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.scanner-content p {
    color: #cccccc;
    margin-bottom: 20px;
}

.scanner-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 0, 0, 0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.scanner-close:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .qr-scanner-container {
        margin: 15px 0;
    }
    
    #qr-reader {
        max-width: 300px;
    }
    
    .certificate-info {
        padding: 8px;
    }
    
    .certificate-info h4 {
        font-size: 1.1em;
    }
    
    .certificate-info p {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .qr-scanner-container {
        margin: 10px 0;
    }
    
    #qr-reader {
        max-width: 250px;
    }
    
    .scanner-content {
        padding: 20px;
        width: 95%;
    }
}

/* Animation for verification results */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#verificationResults {
    animation: slideIn 0.5s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Certificate status indicators */
.status-valid::before {
    content: "✅ ";
    color: #00ff00;
    font-weight: bold;
}

.status-invalid::before {
    content: "❌ ";
    color: #ff0000;
    font-weight: bold;
}

.status-pending::before {
    content: "⏳ ";
    color: #ffaa00;
    font-weight: bold;
}
