/* PWA Install Prompt Styles */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 300px;
    animation: slideInUp 0.3s ease-out;
}

.pwa-install-prompt.hidden {
    display: none;
}

.pwa-install-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.pwa-install-title {
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.pwa-install-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.pwa-install-buttons {
    display: flex;
    gap: 10px;
}

.pwa-install-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pwa-install-btn.primary {
    background: #3b82f6;
    color: white;
}

.pwa-install-btn.primary:hover {
    background: #2563eb;
}

.pwa-install-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.pwa-install-btn.secondary:hover {
    background: #e5e7eb;
}

.pwa-dismiss-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Offline Page Styles */
.offline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.offline-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    opacity: 0.9;
}

.offline-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.offline-message {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.5;
}

.offline-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.offline-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Offline Indicator */
#offlineIndicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fef3c7;
    color: #92400e;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #f59e0b;
    z-index: 9999;
}

/* Online/Offline States */
body.offline {
    opacity: 0.9;
}

/* PWA Notification */
.pwa-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

.pwa-notification.warning {
    background: #f59e0b;
}

.pwa-notification.error {
    background: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}