/**
 * PWA Status CSS - ClubManager v1.4.5.2
 */

body.offline::before {
    content: '⚠️ Offline - funcționalitate limitată';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.offline {
    padding-top: 40px !important;
}

body.offline form button[type="submit"],
body.offline form input[type="submit"] {
    opacity: 0.5;
    cursor: not-allowed;
}

body.form-dirty form {
    border-left: 3px solid #f59e0b;
}

#pwaUpdateBanner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9998;
    font-size: 14px;
}

#pwaUpdateBanner.hidden {
    display: none;
}

#pwaUpdateBanner button {
    background: white;
    color: #2563eb;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#pwa-toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pwa-toast {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 320px;
}

.pwa-toast-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.pwa-toast-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.pwa-toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.pwa-toast-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }

@media (max-width: 640px) {
    body.offline::before { font-size: 12px; padding: 6px 12px; }
    body.offline { padding-top: 32px !important; }
    #pwaUpdateBanner { left: 16px; right: 16px; transform: none; flex-direction: column; }
}
