/* Kraken Mirror - Clearnet Frontend Styles */

/* Transition overlay */
.kr-transition-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.kr-transition-overlay.active {
    display: flex;
}

.kr-transition-overlay .kr-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: kr-spin 0.8s linear infinite;
}

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

/* Error panel enhancements */
.kr-error-close {
    float: right;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 4px;
    color: inherit;
    opacity: 0.7;
}

.kr-error-close:hover {
    opacity: 1;
}

/* Connection status indicator */
.kr-connection-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.7);
    color: #0f0;
    pointer-events: none;
}

.kr-connection-status.error {
    color: #f00;
}

/* Loading overlay for AJAX */
.kr-loading {
    position: relative;
}

.kr-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: kr-spin 0.8s linear infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .kr-connection-status {
        bottom: 5px;
        right: 5px;
        font-size: 9px;
        padding: 2px 6px;
    }
}
