/* Verification Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark-color);
    margin: 5% auto;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.2);
    animation: modalFadeIn 0.3s;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.modal-header h2 i {
    margin-right: 12px;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Verification Steps */
.verification-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.verification-step:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
}

.verification-step.active .step-icon {
    background-color: rgba(0, 240, 255, 0.2);
}

.verification-step.active .step-icon i {
    color: var(--secondary-color);
}

/* Fallback styles for missing Font Awesome icons */
.fas {
    display: inline-block;
    text-align: center;
    min-width: 1em;
}

.fas[style*="none"] {
    display: none;
}

/* Ensure the modal has proper z-index and is visible */
.modal {
    z-index: 9999;
}

.verification-step.completed .step-icon {
    background-color: rgba(0, 255, 157, 0.2);
}

.verification-step.completed .step-icon i {
    color: var(--primary-color);
}

.verification-step.failed .step-icon {
    background-color: rgba(231, 76, 60, 0.2);
}

.verification-step.failed .step-icon i {
    color: #e74c3c;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--light-text);
}

.step-status {
    display: flex;
    align-items: center;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    margin-right: 10px;
    animation: spin 1s linear infinite;
    display: none;
    opacity: 1;
    visibility: visible;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.verification-step.active .loading-spinner {
    display: block !important;
}

.status-text {
    color: var(--text-color);
    font-size: 14px;
}

.verification-step.completed .status-text {
    color: var(--primary-color);
    font-weight: 500;
}

.verification-step.failed .status-text {
    color: #e74c3c;
    font-weight: 500;
}

/* Verification Results */
#verification-result {
    text-align: center;
    padding: 25px 0;
}

.result-icon {
    font-size: 70px;
    margin-bottom: 20px;
}

.success-icon {
    color: var(--primary-color);
}

.error-icon {
    color: #e74c3c;
}

.result-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.result-message {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 30px;
}

.credential-details {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 18px;
}

.credential-item {
    display: flex;
    margin-bottom: 12px;
}

.credential-label {
    min-width: 170px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
}

.credential-value {
    flex: 1;
    color: var(--light-text);
}

.credential-value.valid {
    color: var(--primary-color);
    font-weight: 500;
}

.credential-value.invalid {
    color: #e74c3c;
    font-weight: 500;
}

/* QR Code Scan Instructions */
.scan-instructions {
    text-align: center;
    font-size: 12px;
    color: var(--text-color);
    margin-top: 5px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}