/* Verification Page Styles */
.verification-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Site Logo */
.verification-logo {
    text-align: center;
    margin-bottom: 30px;
}

.verification-logo img {
    max-height: 60px;
    width: auto;
}

/* Tabs */
.proveit-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
}

.proveit-tab-link {
    padding: 12px 24px;
    margin: 0 5px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.proveit-tab-link:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2271b1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.proveit-tab-link.active {
    color: #2271b1;
}

.proveit-tab-link.active:after {
    transform: scaleX(1);
}

/* Tab Content */
.proveit-tab-content {
    display: none;
    padding: 20px 0;
}

.proveit-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Form Elements */
#proveit-check-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.1);
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 14px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #135e96;
}

/* QR Scanner */
#qr-reader {
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
}

#qr-reader__status_span {
    background: #f8f9fa;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

/* Verification Result */
.verification-result {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.verification-result.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.verification-result.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.product-details {
    margin-top: 15px;
    text-align: center;
}

.product-details img {
    max-width: 200px;
    margin-bottom: 10px;
}

.product-details h3 {
    margin: 10px 0;
    color: #333;
}

.verification-timestamp {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

.loading:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .verification-container {
        margin: 20px;
        padding: 20px;
    }

    .proveit-tabs {
        flex-direction: column;
        align-items: center;
    }

    .proveit-tab-link {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .product-image img {
        max-width: 100%;
    }
}