﻿body {
}
/* ====================================
   ESTILOS PARA GEOLOCALIZAÇÃO PDV
   ================================== */

/* Container principal para mensagens */
.message-container {
    margin-bottom: 1rem;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Spinner customizado */
.spinner-custom {
    animation: pulse 1.5s infinite;
}

/* Estilos base para mensagens de geolocalização */
.geolocation-message {
    border: none !important;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .geolocation-message:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

/* Mensagem de Loading */
#geolocation-loading {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border: 1px solid #90caf9 !important;
}

    #geolocation-loading .spinner-border {
        width: 1.2rem;
        height: 1.2rem;
        border-width: 2px;
    }

/* Mensagem de Erro */
#geolocation-error {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
    border: 1px solid #ffcc02 !important;
}

/* Mensagem de Sucesso */
#geolocation-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
    border: 1px solid #4caf50 !important;
}

/* Ícones nas mensagens */
.geolocation-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 12px;
}

    .geolocation-icon.loading {
        color: #1976d2;
    }

    .geolocation-icon.error {
        color: #f57f17;
    }

    .geolocation-icon.success {
        color: #388e3c;
    }

/* Conteúdo das mensagens */
.geolocation-content {
    flex-grow: 1;
}

.geolocation-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.geolocation-description {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.geolocation-tip {
    font-size: 0.8rem;
    line-height: 1.3;
    margin: 0;
}

/* Botão de fechar */
.geolocation-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

    .geolocation-close:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .geolocation-close:focus {
        outline: 2px solid #007bff;
        outline-offset: 2px;
    }

/* Responsividade */
@media (max-width: 576px) {
    .geolocation-message {
        padding: 12px;
        margin: 6px 0;
        border-radius: 8px;
    }

    .geolocation-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .geolocation-title {
        font-size: 0.9rem;
    }

    .geolocation-description {
        font-size: 0.85rem;
    }

    .geolocation-tip {
        font-size: 0.75rem;
    }
}

/* Estados especiais */
.geolocation-message.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
    #geolocation-loading {
        background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
        border-color: #3f51b5 !important;
        color: #e3f2fd;
    }

    #geolocation-error {
        background: linear-gradient(135deg, #e65100 0%, #ff9800 100%) !important;
        border-color: #ffab40 !important;
        color: #fff8e1;
    }

    #geolocation-success {
        background: linear-gradient(135deg, #1b5e20 0%, #4caf50 100%) !important;
        border-color: #66bb6a !important;
        color: #e8f5e8;
    }

    .geolocation-close:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Acessibilidade */
.geolocation-message[role="alert"] {
    /* Garante que leitores de tela anunciem a mensagem */
}

@media (prefers-reduced-motion: reduce) {
    .geolocation-message,
    .spinner-custom,
    .geolocation-close {
        animation: none !important;
        transition: none !important;
    }
}

/* Utilitários */
.geolocation-flex {
    display: flex;
    align-items: flex-start;
}

.geolocation-flex-center {
    display: flex;
    align-items: center;
}

.geolocation-text-primary {
    color: #1976d2 !important;
}

.geolocation-text-warning {
    color: #f57f17 !important;
}

.geolocation-text-success {
    color: #388e3c !important;
}

.geolocation-text-muted {
    color: #6c757d !important;
}