/**
 * Digital Chhattisgarh - Push Notification Popup Styles
 */

/* Backdrop Overlay */
.dc-push-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dc-push-backdrop.dc-push-visible {
    opacity: 1;
    visibility: visible;
}

.dc-push-backdrop.dc-push-fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Modal Dialog */
.dc-push-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 28px 24px 22px 24px;
    text-align: center;
    transform: scale(0.92) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dc-push-backdrop.dc-push-visible .dc-push-dialog {
    transform: scale(1) translateY(0);
}

/* Dark Mode Support */
[data-bs-theme="dark"] .dc-push-dialog {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

/* Close Button */
.dc-push-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.dc-push-close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

[data-bs-theme="dark"] .dc-push-close:hover {
    color: #f8fafc;
    background-color: #334155;
}

/* Icon Wrap & Pulse */
.dc-push-icon-wrap {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.dc-push-bell-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 20px -5px rgba(217, 119, 6, 0.45);
    animation: dcBellRing 2.4s ease-in-out infinite;
}

@keyframes dcBellRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(4deg); }
    60% { transform: rotate(0); }
}

/* Title & Description */
.dc-push-title {
    font-size: 1.28rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

[data-bs-theme="dark"] .dc-push-title {
    color: #f8fafc;
}

.dc-push-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 22px 0;
}

[data-bs-theme="dark"] .dc-push-desc {
    color: #cbd5e1;
}

/* Action Buttons Container */
.dc-push-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Big "Allow" Button */
.dc-push-btn-allow {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.38);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.dc-push-btn-allow:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.48);
}

.dc-push-btn-allow:active {
    transform: translateY(0);
}

.dc-push-btn-allow:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Small "Later" Button */
.dc-push-btn-later {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dc-push-btn-later:hover {
    color: #334155;
    text-decoration: underline;
}

[data-bs-theme="dark"] .dc-push-btn-later {
    color: #94a3b8;
}

[data-bs-theme="dark"] .dc-push-btn-later:hover {
    color: #e2e8f0;
}

/* Success State Message */
.dc-push-success-msg {
    padding: 16px 0;
}

.dc-push-success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px auto;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

/* Spinner */
.dc-push-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: dcPushSpin 0.7s linear infinite;
    margin-right: 6px;
}

@keyframes dcPushSpin {
    to { transform: rotate(360deg); }
}
