/* Agromind Push Frontend Styling */

/* Floating Bell Icon */
.agromind-push-bell {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: var(--agromind-bell-size, 56px);
    height: var(--agromind-bell-size, 56px);
    border-radius: 50%;
    background-color: var(--agromind-bell-color, #16a34a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999990;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    outline: none;
}

.agromind-push-bell.bell-bottom-left {
    right: auto;
    left: 24px;
}

.agromind-push-bell:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.agromind-push-bell svg {
    width: var(--agromind-bell-icon-size, 26px);
    height: var(--agromind-bell-icon-size, 26px);
    fill: #ffffff;
    transition: transform 0.2s ease;
}

.agromind-push-bell:not(.subscribed)::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.agromind-push-bell.subscribed::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

/* Slide-in Soft Permission Prompt */
.agromind-push-slide-prompt {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 460px;
    width: calc(100% - 32px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 18px 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
}

.agromind-push-slide-prompt.agromind-show {
    top: 24px;
}

.agromind-prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.agromind-prompt-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.agromind-prompt-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.agromind-prompt-body {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}

.agromind-prompt-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.agromind-btn-allow {
    background-color: var(--agromind-bell-color, #16a34a);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.agromind-btn-allow:hover {
    opacity: 0.9;
}

.agromind-btn-cancel {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.agromind-btn-cancel:hover {
    background-color: #e5e7eb;
}
