/* OraCore AI Modal Theme */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 72, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.processing-content {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(37, 72, 255, 0.2);
    box-shadow: 0 20px 40px rgba(37, 72, 255, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 320px;
    max-width: 90vw;
}

.modal-title {
    color: #2548ff;
    font-size: 20px;
    font-weight: 600;
    /*margin-bottom: 8px;*/
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-message {
    color: #6c757d;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 100px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .modal-button.primary {
        background: #2548ff;
        color: white;
    }

        .modal-button.primary:hover {
            background: #1a3ccc;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 72, 255, 0.3);
        }

    .modal-button.secondary {
        background: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

        .modal-button.secondary:hover {
            background: #e9ecef;
            color: #495057;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

    .modal-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

/* Processing state styles */
.processing-state .modal-title {
    margin-bottom: 20px;
}

.processing-state .modal-message {
    margin-bottom: 30px;
}

.processing-state .modal-buttons {
    margin-top: 30px;
}

/* OraCore AI themed animation */
.tech-animation {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2548ff, #4d6bff, #6b7fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(37, 72, 255, 0.3), inset 0 2px 8px rgba(255, 255, 255, 0.2);
    animation: containerPulse 3s ease-in-out infinite;
    margin: 0 auto;
    position: relative;
    border: 3px solid rgba(37, 72, 255, 0.2);
}

    .tech-animation::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(45deg, #2548ff, #6b7fff, #2548ff);
        border-radius: 50%;
        z-index: -1;
        animation: borderRotate 4s linear infinite;
        opacity: 0.6;
    }

.inner-circle {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: relative;
    animation: rotate 6s linear infinite;
    background: rgba(255, 255, 255, 0.1);
}

    .inner-circle::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        width: 12px;
        height: 12px;
        background: #ffffff;
        border-radius: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
        animation: orbit 2s linear infinite;
    }

    .inner-circle::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 8px;
        height: 8px;
        background: #ffffff;
        border-radius: 50%;
        transform: translateX(-50%);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        animation: orbit 2.5s linear infinite reverse;
    }

.center-core {
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ffffff, #e8efff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: corePulse 2s ease-in-out infinite;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.8), inset 0 1px 4px rgba(37, 72, 255, 0.2);
}

    .center-core::before {
        content: '';
        width: 12px;
        height: 12px;
        background: linear-gradient(45deg, #2548ff, #ffffff);
        border-radius: 50%;
        animation: innerSpin 1.5s linear infinite;
    }

.scanning-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: scan 2.5s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 12px 12px;
    border-radius: 50%;
    animation: gridShift 3s ease-in-out infinite;
    opacity: 0.3;
}

/* Animations */
@keyframes containerPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

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

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

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

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

@keyframes orbit {
    0% {
        transform: translateX(-50%) rotate(0deg) translateY(-30px) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg) translateY(-30px) rotate(-360deg);
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

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

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

@keyframes scan {
    0% {
        top: 0%;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes gridShift {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(2px, 2px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px #00ffff;
    }

    50% {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

/* Demo content */
.demo-content {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
}

.demo-button {
    background: #2548ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 10px;
    transition: all 0.2s ease;
}

    .demo-button:hover {
        background: #1a3ccc;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 72, 255, 0.3);
    }

/* Hidden by default */
.hidden {
    display: none !important;
}
