/* Estilos para o guia de instalação no iOS */
#ios-pwa-install-guide {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 99999;
    padding: 15px;
    display: none;
}

.ios-guide-container {
    background-color: #fff;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.ios-guide-header {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios-guide-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

#close-ios-guide {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.ios-guide-content {
    padding: 15px;
    position: relative;
}

.ios-guide-content p {
    margin-top: 0;
    font-size: 14px;
}

.ios-guide-content ol {
    margin-bottom: 10px;
    padding-left: 20px;
}

.ios-guide-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

.ios-share-icon {
    display: inline-block;
    background-color: #007aff;
    color: white;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    border-radius: 4px;
    font-size: 12px;
}

/* Botão personalizado de instalação */
#pwa-install-btn, #pwa-install-btn-ios {
    transition: transform 0.2s ease;
}

#pwa-install-btn:hover, #pwa-install-btn-ios:hover {
    transform: scale(1.05);
}

#pwa-install-btn:active, #pwa-install-btn-ios:active {
    transform: scale(0.98);
}

/* Ajuste para botão centralizado */
#pwa-install-btn.centered, #pwa-install-btn-ios.centered {
    transform: translateX(-50%);
}

#pwa-install-btn.centered:hover, #pwa-install-btn-ios.centered:hover {
    transform: translateX(-50%) scale(1.05);
}

#pwa-install-btn.centered:active, #pwa-install-btn-ios.centered:active {
    transform: translateX(-50%) scale(0.98);
}

/* Admin panel */
.icon-preview-wrapper {
    margin-bottom: 10px;
}

.icon-preview-wrapper img {
    border: 1px solid #ddd;
    padding: 5px;
    background: #f7f7f7;
}

.icon-size-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

/* Estilos para seção de notificações */
.notification-test-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
}

.notification-test-section h3 {
    margin-top: 0;
    color: #495057;
}

.notification-field {
    margin-bottom: 15px;
}

.notification-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-field input[type="text"],
.notification-field textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.notification-field textarea {
    height: 80px;
    resize: vertical;
}

.notification-checkbox {
    margin: 15px 0;
}

.notification-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.notification-status {
    display: none;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
}

.notification-status.sending {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification-stats {
    background: #e7f1ff;
    border: 1px solid #b4d7ff;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

@media (max-width: 480px) {
    .ios-guide-container {
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}