/* MELHORIAS DE UX/UI ESPECÍFICAS PARA MOBILE */

/* Correções para SweetAlert (seleção de estado/cidade) no mobile */
@media screen and (max-width: 768px) {
    
    /* Status da loja mais visível no mobile */
    .aberto {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 999 !important;
        background: #d7fdd7 !important;
        color: #077c22 !important;
        font-weight: bold !important;
        padding: 8px 15px !important;
        border-radius: 25px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid #077c22 !important;
        font-size: 14px !important;
        animation: pulse-status 2s infinite !important;
    }
    
    .fechado {
        position: fixed !important;
        top: 15px !important;
        left: 15px !important;
        z-index: 999 !important;
        background: #eed3d7 !important;
        color: #c90000 !important;
        font-weight: bold !important;
        padding: 8px 15px !important;
        border-radius: 25px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
        border: 2px solid #c90000 !important;
        font-size: 14px !important;
    }
    
    @keyframes pulse-status {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    #status-loja {
        font-weight: bold !important;
        font-size: 14px !important;
        text-shadow: none !important;
    }
}

/* Melhorias para SweetAlert selects no mobile */
.swal2-container {
    z-index: 99999 !important;
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-popup {
    width: 90% !important;
    max-width: 350px !important;
    padding: 15px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative !important;
}

.swal2-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
}

.swal2-content {
    font-size: 16px !important;
    color: #555 !important;
    margin-bottom: 20px !important;
}

/* Melhorias específicas para campos select no mobile */
.swal2-select {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    border: 2px solid #e39201 !important;
    border-radius: 10px !important;
    background: white !important;
    color: #333 !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e39201' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 20px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(227, 146, 1, 0.2) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.swal2-select:focus {
    outline: none !important;
    border-color: #077c22 !important;
    box-shadow: 0 0 0 3px rgba(7, 124, 34, 0.2) !important;
    transform: scale(1.02) !important;
}

.swal2-select:hover {
    border-color: #077c22 !important;
    box-shadow: 0 4px 12px rgba(227, 146, 1, 0.3) !important;
}

/* Melhoria no botão do SweetAlert */
.swal2-confirm {
    background: #077c22 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(7, 124, 34, 0.3) !important;
    transition: all 0.3s ease !important;
    min-width: 150px !important;
}

.swal2-confirm:hover,
.swal2-confirm:focus {
    background: #065a1a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(7, 124, 34, 0.4) !important;
}

.swal2-confirm:active {
    transform: translateY(0) !important;
}

/* Indicador visual para campos clicáveis */
.swal2-select::before {
    content: "👆 Toque para selecionar" !important;
    position: absolute !important;
    top: -25px !important;
    left: 0 !important;
    font-size: 12px !important;
    color: #e39201 !important;
    font-weight: 600 !important;
    animation: bounce-hint 2s infinite !important;
}

@keyframes bounce-hint {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Melhorias para placeholder do select */
.swal2-select option:first-child {
    color: #999 !important;
    font-style: italic !important;
}

.swal2-select:invalid {
    color: #999 !important;
}

/* Adiciona bordas mais visíveis no mobile */
@media screen and (max-width: 768px) {
    .swal2-container {
        padding: 20px !important;
    }
    
    .swal2-popup {
        border: 3px solid #e39201 !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 320px !important;
        padding: 20px !important;
        left: 0 !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        position: fixed !important;
    }
    
    /* Destaque extra para o campo de seleção ativo */
    .swal2-select {
        position: relative !important;
        width: calc(100% - 10px) !important;
        margin: 0 5px !important;
    }
    
    .swal2-select:focus::after {
        content: "📍 Escolha uma opção" !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #077c22 !important;
        color: white !important;
        padding: 5px !important;
        border-radius: 5px !important;
        font-size: 12px !important;
        text-align: center !important;
        margin-top: 5px !important;
        z-index: 1000 !important;
    }
}

/* Melhorias para o loading no mobile */
.swal2-loading {
    border-width: 4px !important;
    border-color: #e39201 transparent #e39201 transparent !important;
}

/* Melhorias para o ícone de sucesso */
.swal2-success {
    border-color: #077c22 !important;
    color: #077c22 !important;
}

.swal2-success-circular-line-left,
.swal2-success-circular-line-right {
    background-color: #077c22 !important;
}

.swal2-success-fix {
    width: 80px !important;
    height: 80px !important;
    border: 4px solid #077c22 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    position: relative !important;
    margin: 20px auto !important;
}

.swal2-success-fix::before {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 40px !important;
    color: #077c22 !important;
    font-weight: bold !important;
}

/* Correção específica para modal de sucesso no mobile */
@media screen and (max-width: 768px) {
    .swal2-success {
        width: 80px !important;
        height: 80px !important;
        margin: 20px auto !important;
        border: 4px solid #077c22 !important;
        border-radius: 50% !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .swal2-success::before {
        content: "✓" !important;
        font-size: 45px !important;
        color: #077c22 !important;
        font-weight: bold !important;
        line-height: 1 !important;
    }
    
    .swal2-success-ring {
        display: none !important;
    }
    
    .swal2-success-fix-line {
        display: none !important;
    }
}

.swal2-success-fix {
    background-color: #077c22 !important;
}

/* Melhoria no texto do timer */
.swal2-timer-progress-bar {
    background: #e39201 !important;
    height: 6px !important;
}

/* Responsividade adicional para telas muito pequenas */
@media screen and (max-width: 450px) {
    .swal2-popup {
        width: 90% !important;
        padding: 15px !important;
    }
    
    .swal2-title {
        font-size: 18px !important;
    }
    
    .swal2-content {
        font-size: 14px !important;
    }
    
    .swal2-select {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
    
    .swal2-confirm {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
}

/* Melhoria visual para indicar que é clicável */
.clickable-hint {
    position: relative !important;
}

.clickable-hint::after {
    content: "👆" !important;
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    font-size: 20px !important;
    animation: tap-hint 1.5s infinite !important;
}

@keyframes tap-hint {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(-10deg); }
} 