﻿/* Modal animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Permission modal styles */
.location-permission-modal,
.location-permission-instructions {
    animation: fadeIn 0.3s ease-out;
}

    .location-permission-modal .modal-content,
    .location-permission-instructions .instructions-content {
        animation: slideIn 0.3s ease-out;
    }

/* Responsive modal styles */
@media (max-width: 480px) {
    .location-permission-modal .modal-content,
    .location-permission-instructions .instructions-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .location-permission-modal .modal-footer,
    .location-permission-instructions .instructions-footer {
        flex-direction: column;
    }

    .location-permission-modal .btn,
    .location-permission-instructions .btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Loading animations */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Timeout warning */
.status-timeout {
    border-left: 6px solid #ff9800;
    background: linear-gradient(135deg, #fff3e0, #ffffff);
}

    .status-timeout .status-icon {
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}