/* Web Push Notification & Signup styling system */

/* Profile Picture Upload styling */
.csru-profile-pic-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.csru-profile-pic-container:hover {
    border-color: #2D8B47;
    background-color: #f1f5f9;
}
.csru-profile-preview-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.csru-avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.csru-remove-avatar {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease;
}
.csru-remove-avatar:hover {
    background: #dc2626;
}
.csru-upload-controls {
    flex-grow: 1;
}

/* Pre-Permission Floating Banner */
.csru-push-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.csru-push-backdrop.show {
    opacity: 1;
}
.csru-push-prompt-card {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 350px;
    max-width: calc(100vw - 48px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 1px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
    padding: 16px;
    z-index: 99999;
    font-family: 'Roboto', 'Inter', sans-serif;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.csru-push-prompt-card.show {
    transform: translateY(0);
    opacity: 1;
}
.csru-push-prompt-content {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.csru-push-prompt-icon {
    background: #f0fdf4;
    color: #2D8B47;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 0 rgba(45, 139, 71, 0.1);
}
.csru-push-prompt-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.csru-push-prompt-text p {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
}
.csru-push-prompt-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.csru-push-btn {
    padding: 8px 14px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
}
.csru-push-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}
.csru-push-btn-allow {
    background: #2D8B47;
    color: #ffffff;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(45, 139, 71, 0.25);
}
.csru-push-btn-allow:hover {
    background: #226f36;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(45, 139, 71, 0.35);
}
.csru-push-btn-never {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}
.csru-push-btn-never:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #f87171;
}

/* Push Preferences Center option list */
.csru-pref-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.csru-pref-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
    color: #334155;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.2s ease;
}
.csru-pref-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.csru-pref-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2D8B47;
    cursor: pointer;
    flex-shrink: 0;
}
.bg-green-gradient {
    background: linear-gradient(135deg, #2D8B47 0%, #1e5e30 100%) !important;
}

/* Animations */
@keyframes csruPushSlideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 576px) {
    .csru-push-prompt-card {
        /* Center exactly on screen, above bottom nav */
        position: fixed;
        top: 50%;
        left: 50%;
        bottom: auto;
        width: calc(100vw - 32px);
        max-width: 340px;
        transform: translate(-50%, -40%) scale(0.95);
        opacity: 0;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    }
    .csru-push-prompt-card.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    .csru-push-prompt-content {
        align-items: flex-start;
    }
}
