/* ===================================================
   PULL TO REFRESH STYLES
   =================================================== */

/* Prevent browser-native pull-to-refresh from stealing normal scroll */
html,
body {
    overscroll-behavior-y: contain;
}

.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.pull-refresh-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pull-refresh-spinner {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-center;
    color: #6366f1;
    transition: transform 0.2s ease;
}

.pull-refresh-text {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
}

.pull-to-refresh-indicator.ready .pull-refresh-spinner {
    color: #10b981;
}

.pull-to-refresh-indicator.ready .pull-refresh-text {
    color: #10b981;
}

.pull-to-refresh-indicator.refreshing .pull-refresh-spinner {
    animation: spin 1s linear infinite;
    color: #6366f1;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Light theme */
html.light .pull-refresh-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html.light .pull-refresh-text {
    color: #1e293b;
}
