/* PWA Install Banner Styles */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #111827;
    color: #ffffff;
    padding: 1.5rem;
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

.pwa-install-banner.show {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pwa-install-message {
    flex-grow: 1;
    margin-right: 1.5rem;
}

.pwa-install-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.pwa-install-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.pwa-install-features li:before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2315B8A6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
}

.pwa-install-button {
    background-color: #15B8A6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.pwa-install-button:hover {
    background-color: #0D9488;
}

.pwa-install-close {
    background: none;
    border: none;
    color: #9CA3AF;
    padding: 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.pwa-install-close:hover {
    color: #ffffff;
}

/* Mobile-specific styles */
@media (max-width: 640px) {
    .pwa-install-banner {
        padding: 1rem;
    }

    .pwa-install-message {
        font-size: 0.875rem;
        margin-right: 1rem;
    }

    .pwa-install-features {
        font-size: 0.75rem;
    }

    .pwa-install-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Loading Spinner Styles - Adicionado para formulários de cadastro */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #15B8A6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* Botão desabilitado durante loading */
.btn-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsividade para mobile */
@media (max-width: 640px) {
    .loading-spinner {
        padding: 1.5rem;
    }
    
    .spinner {
        width: 35px;
        height: 35px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}