/* Stock Notifications - Bell Icon & Modal */
.sn-bell-btn {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    border: none;
    cursor: pointer;
    padding: 7px 11px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0,82,204,0.3);
}

.sn-bell-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,82,204,0.4);
}

.sn-bell-btn.sn-subscribed {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 2px 6px rgba(40,167,69,0.3);
}

.sn-bell-btn i {
    font-size: 15px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sn-bell-btn.sn-bell-pulse i {
    animation: sn-bell-ring 0.5s ease;
}

@keyframes sn-bell-ring {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-5deg); }
}

/* Modal */
.sn-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: sn-fade-in 0.2s ease;
}

.sn-modal-overlay.sn-show {
    display: flex;
}

@keyframes sn-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sn-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 460px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: sn-slide-up 0.3s ease;
}

@keyframes sn-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sn-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.sn-modal-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sn-modal-header h5 i {
    color: var(--primary, #007bff);
}

.sn-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.sn-modal-close:hover {
    color: #333;
}

.sn-modal-body {
    padding: 20px 24px;
}

.sn-modal-body .form-group {
    margin-bottom: 16px;
}

.sn-modal-body label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.sn-modal-body label .sn-optional {
    font-weight: 400;
    font-size: 0.72rem;
    color: #999;
}

.sn-modal-body input,
.sn-modal-body select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 0.88rem;
    width: 100%;
    transition: border-color 0.2s;
}

.sn-modal-body input:focus,
.sn-modal-body select:focus {
    border-color: var(--primary, #007bff);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.sn-modal-body .sn-hint {
    font-size: 0.72rem;
    color: #999;
    margin-top: 4px;
}

.sn-modal-body .sn-config-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.sn-modal-body .sn-config-summary strong {
    color: var(--heading-color, #333);
}

.sn-config-row {
    display: flex;
    gap: 12px;
}

.sn-config-col {
    flex: 1;
    min-width: 0;
}

.sn-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.sn-stepper-btn {
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: var(--primary, #007bff);
    transition: background 0.2s;
    line-height: 1;
}

.sn-stepper-btn:hover {
    background: #e9ecef;
}

.sn-stepper-btn:active {
    background: #dee2e6;
}

.sn-stepper-value {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading-color, #333);
    min-width: 40px;
    text-align: center;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.sn-modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.sn-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 32px;
    border-radius: 8px;
    background: var(--primary, #007bff);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sn-submit-btn:hover {
    opacity: 0.9;
}

.sn-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sn-alert {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 16px;
    display: none;
}

.sn-alert.sn-show {
    display: block;
}

.sn-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sn-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sn-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.sn-loading i {
    animation: sn-spin 1s linear infinite;
}

@keyframes sn-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bell positioned on card */
.sn-bell-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}
