/* ============================================
   TOAST NOTIFICATIONS - MINIMAL PROFESSIONAL
   ICT Analyzer Pro V29.5
============================================ */

/* Minimal Toast Container - Bottom Right - V28.0: Use z-index variable */
.toast-container-minimal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--z-toast, 9999);
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
}

/* Minimal Toast - iOS Style */
.toast-minimal {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(var(--bg-primary-rgb, 11, 14, 17), 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 280px;
}

.toast-minimal.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-minimal-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.toast-minimal.success .toast-minimal-icon {
    background: var(--buy-green);
    color: white;
}

.toast-minimal.error .toast-minimal-icon {
    background: var(--sell-red);
    color: white;
}

.toast-minimal.warning .toast-minimal-icon {
    background: var(--accent-yellow);
    color: var(--bg-primary);
}

.toast-minimal.info .toast-minimal-icon {
    background: var(--accent-blue);
    color: white;
}

.toast-minimal-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   NOTIFICATION BELL BUTTON
============================================ */

.notification-bell-container {
    position: relative;
}

.notification-bell {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
}

.notification-bell:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--sell-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   NOTIFICATION PANEL
============================================ */

.notification-panel {
    position: fixed;
    top: 50px;
    right: 10px;
    width: 320px;
    max-height: 450px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-panel.active {
    display: flex;
    animation: notificationSlideIn 0.25s ease;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.notification-panel-header > span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-panel-actions {
    display: flex;
    gap: 0.25rem;
}

.notification-panel-actions button {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.notification-panel-actions button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.notification-empty p {
    font-size: 0.85rem;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.notification-item.success .notification-item-icon {
    background: rgba(14, 203, 129, 0.2);
    color: var(--buy-green);
}

.notification-item.error .notification-item-icon {
    background: rgba(246, 70, 93, 0.2);
    color: var(--sell-red);
}

.notification-item.warning .notification-item-icon {
    background: rgba(240, 185, 11, 0.2);
    color: var(--accent-yellow);
}

.notification-item.info .notification-item-icon {
    background: rgba(33, 150, 243, 0.2);
    color: var(--accent-blue);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Legacy Toast Styles (kept for compatibility) */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px;
    animation: slideIn 0.3s ease;
}

/* V29.15: @keyframes slideIn, slideOut moved to base.css */
