/**
 * DeMV Platform - Document Processing Effects
 * Cyberpunk-style animations and effects for blockchain processing
 */

/* Blockchain Processing Overlay */
.blockchain-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* Animation removed to reduce CPU usage */
    backdrop-filter: blur(5px);
}

.blockchain-processing-overlay.hidden {
    display: none;
}

.processing-container {
    background: linear-gradient(135deg, rgba(20, 21, 35, 0.95) 0%, rgba(40, 41, 55, 0.95) 100%);
    border: 1px solid #00eeff;
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.5), inset 0 0 15px rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.processing-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    /* Use rgba instead of opacity for better performance */
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.7), transparent);
}

.processing-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    /* Use rgba instead of opacity for better performance */
    background: linear-gradient(90deg, transparent, rgba(115, 77, 255, 0.7), transparent);
}

.processing-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.processing-icon i {
    font-size: 3rem;
    color: #00eeff;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.8), 0 0 20px rgba(0, 238, 255, 0.5);
}

.processing-icon i.verified {
    color: #00ff88;
}

.processing-text {
    text-align: center;
    margin-bottom: 20px;
}

.processing-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.processing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #00eeff;
}

.status-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    /* Use rgba instead of opacity for better performance */
    background-color: rgba(0, 238, 255, 0.5);
    border-radius: 50%;
}

.dot1 {
    /* Use rgba instead of opacity for better performance */
    background-color: rgba(0, 238, 255, 0.8);
}

.dot2 {
    /* Use rgba instead of opacity for better performance */
    background-color: rgba(0, 238, 255, 0.8);
}

.dot3 {
    /* Use rgba instead of opacity for better performance */
    background-color: rgba(0, 238, 255, 0.8);
}

.processing-progress {
    height: 6px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00eeff, #734dff);
    border-radius: 3px;
    position: relative;
    /* Transition removed to reduce CPU usage */
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    /* Animation removed to reduce CPU usage */
}

.processing-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.9rem;
    color: #00eeff;
    font-family: monospace;
}

/* Document View Modal */
.document-view-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

.document-view-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 238, 255, 0.2);
}

.document-view-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
}

.document-view-title i {
    color: #00eeff;
    font-size: 1.4rem;
}

.document-view-meta {
    display: flex;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.meta-item i {
    color: #00eeff;
}

.document-preview {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.preview-container i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.preview-file-name {
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
}

.preview-file-size {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.blockchain-verification-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #00eeff;
    font-weight: bold;
}

.verification-header i {
    font-size: 1.2rem;
    animation: shieldRotate 4s infinite linear;
}

.verification-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.verification-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.item-value {
    font-size: 0.9rem;
    color: #fff;
    word-break: break-all;
}

.item-value.verified {
    color: #00eeff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-value.verified:before {
    content: '✓';
    color: #00ff88;
}

.document-view-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Verification Details Modal */
.verification-details-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

.verification-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.verification-details-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 238, 255, 0.2);
}

.verification-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.verification-icon i {
    font-size: 1.5rem;
    color: #00eeff;
    /* Animation removed to reduce CPU usage */
}

.verification-title h4 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 5px 0;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.verification-status.verified {
    color: #00ff88;
}

.verification-status i {
    font-size: 1rem;
}

.verification-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
}

.details-section h5 {
    margin: 0 0 15px 0;
    color: #00eeff;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 238, 255, 0.2);
    padding-bottom: 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-value.hash {
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 3px;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.blockchain-visualization {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
}

.visualization-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #00eeff;
    font-weight: bold;
}

.visualization-header i {
    font-size: 1.2rem;
}

.blockchain-blocks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    min-width: 120px;
    text-align: center;
}

.block.previous {
    /* Use color/border changes instead of opacity for better performance */
    border-color: rgba(115, 77, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(18, 18, 30, 0.7);
}

.block.current {
    border-color: rgba(0, 238, 255, 0.5);
    background: rgba(0, 238, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.2);
    position: relative;
    z-index: 2;
}

.block.next {
    /* Use color/border changes instead of opacity for better performance */
    border-color: rgba(115, 77, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(18, 18, 30, 0.7);
}

.block-header {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.block-hash {
    font-family: monospace;
    font-size: 0.9rem;
    color: #00eeff;
    margin-bottom: 10px;
}

.block-data {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 8px;
    margin-top: 10px;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #fff;
}

.data-item i {
    color: #00eeff;
}

.block-connector {
    display: flex;
    align-items: center;
    color: rgba(0, 238, 255, 0.5);
}

.verification-details-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .verification-content,
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .blockchain-blocks {
        flex-direction: column;
        gap: 15px;
    }
    
    .block {
        width: 100%;
    }
    
    .block-connector {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .processing-details {
        grid-template-columns: 1fr;
    }
    
    .document-view-actions {
        flex-direction: column;
    }
}
