/**
 * DCW3 Native Web Push - Modern & Performant UI Styles
 */

#dcw3-webpush-container {
    position: fixed !important;
    z-index: 2147483647 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #1e1e1e;
    box-sizing: border-box;
}

#dcw3-webpush-container * {
    box-sizing: border-box;
}

.dcw3-pos-right {
    bottom: 24px !important;
    right: 24px !important;
}

.dcw3-pos-left {
    bottom: 24px !important;
    left: 24px !important;
}

/* Floating Bell Button */
#dcw3-webpush-bell {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    padding: 0;
}

#dcw3-webpush-bell:hover {
    transform: scale(1.08);
    background-color: #1e293b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#dcw3-webpush-bell.dcw3-subscribed {
    background-color: #059669;
}

#dcw3-webpush-bell.dcw3-subscribed:hover {
    background-color: #047857;
}

.dcw3-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Prompt Card */
.dcw3-prompt-card {
    position: absolute;
    bottom: 64px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 16px;
    animation: dcw3FadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2147483647 !important;
}

.dcw3-pos-right .dcw3-prompt-card {
    right: 0;
}

.dcw3-pos-left .dcw3-prompt-card {
    left: 0;
}

.dcw3-prompt-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

#dcw3-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dcw3-prompt-title-wrap {
    flex: 1;
}

#dcw3-prompt-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
}

#dcw3-prompt-desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

.dcw3-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.dcw3-btn {
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dcw3-btn-secondary {
    background-color: transparent;
    color: #64748b;
}

.dcw3-btn-secondary:hover {
    background-color: #f1f5f9;
    color: #334155;
}

.dcw3-btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.dcw3-btn-primary:hover {
    background-color: #1d4ed8;
}

@keyframes dcw3FadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .dcw3-pos-right, .dcw3-pos-left {
        bottom: 16px !important;
        right: 16px !important;
        left: auto !important;
    }

    .dcw3-prompt-card {
        position: fixed;
        bottom: 76px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
