/**
 * Hard Refresh Confirmation Modal
 * Professional modal instead of browser alert
 */

.hard-refresh-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    animation: fadeIn 0.2s ease-out;
}

.hard-refresh-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hard-refresh-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: calc(100vh - 64px - 80px - 40px); /* viewport - header - footer - margins */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.hard-refresh-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 1.5rem;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.hard-refresh-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    animation: spinPulse 2s ease-in-out infinite;
}

@keyframes spinPulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.05);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
    }
}

.hard-refresh-icon i {
    font-size: 24px;
    color: white;
}

.hard-refresh-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.hard-refresh-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: none;
}

/* Body */
.hard-refresh-body {
    padding: 1.5rem 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
}

.refresh-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
}

.refresh-steps {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.refresh-steps-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-steps-title i {
    color: #667eea;
}

.refresh-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #4a5568;
}

.refresh-step i {
    color: #48bb78;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.refresh-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.refresh-warning i {
    color: #f59e0b;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.refresh-warning-text {
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* Actions */
.hard-refresh-actions {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1rem;
    flex-shrink: 0;
}

.refresh-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.refresh-btn-cancel {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.refresh-btn-cancel:hover {
    background: #edf2f7;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.refresh-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.refresh-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.refresh-btn-confirm:active {
    transform: translateY(0);
}

.refresh-btn i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hard-refresh-content {
        width: 95%;
        max-width: 400px;
    }
    
    .hard-refresh-header {
        padding: 1rem 1rem;
    }
    
    .hard-refresh-icon {
        width: 40px;
        height: 40px;
    }
    
    .hard-refresh-icon i {
        font-size: 20px;
    }
    
    .hard-refresh-title {
        font-size: 1rem;
    }
    
    .hard-refresh-subtitle {
        font-size: 0.85rem;
    }
    
    .hard-refresh-body {
        padding: 1rem 1rem;
    }
    
    .refresh-steps {
        padding: 0.75rem;
    }
    
    .hard-refresh-actions {
        padding: 0 1rem 1rem;
    }
}


