/* ========== Блок уведомлений ========== */
#eo-notification-block {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-header, #4CAF50);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: all 0.3s ease;
    user-select: none;
    color: white;
}

#eo-notification-block:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.eo-notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
}

.eo-notification-count:empty {
    display: none;
}

/* ========== Окно уведомлений ========== */
.eo-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: var(--bg-window, #f8f9fa);
}

.eo-notifications-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--eo-font-color, #333);
}

.eo-notifications-actions {
    display: flex;
    gap: 8px;
}

.eo-notifications-actions button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eo-notifications-actions button:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.eo-notifications-container {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* ========== Элементы уведомлений ========== */
.eo-notification-item {
    background: var(--bg-window, #ffffff);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eo-notification-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.eo-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.eo-notification-title {
    font: var(--eo-font, inherit);
    font-weight: 600;
    color: var(--eo-font-color, #1a1a1a);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eo-notification-title svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.eo-notification-time {
    font: var(--eo-font, inherit);
    color: #8b8b8b;
    font-size: 13px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
}

.eo-notification-content {
    font: var(--eo-font, inherit);
    color: var(--eo-font-color, #4a4a4a);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 8px;
}

.eo-notification-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.eo-notification-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font: var(--eo-font, inherit);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eo-notification-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eo-notification-btn.primary {
    background: var(--color-header, #4CAF50);
    color: white;
    border-color: var(--color-header, #4CAF50);
}

.eo-notification-btn.primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* ========== Пустое состояние ========== */
.eo-notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #969ca3;
    font: var(--eo-font, inherit);
    font-size: 14px;
    display: none;
}

.eo-notification-empty svg {
    opacity: 0.5;
    margin-bottom: 16px;
}

.eo-notification-empty div {
    font-size: 16px;
    color: #666;
}

/* ========== Toast уведомления ========== */
#eo-toast-container {
    position: fixed;
    top: 3.5rem;
    right: 1.8rem;
    z-index: 18000;
    pointer-events: none;
}

.eo-toast-notification {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-window);
    max-width: 26rem;
    min-width: 18rem;
    min-height: 4rem;
    pointer-events: auto;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font: var(--eo-font, inherit);
    position: relative;
    margin-bottom: 0.5rem;
    opacity: 0;
    overflow: hidden;
}

.eo-toast-content {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: stretch;
    min-height: 2rem;
    max-height: 10rem;
}

.eo-toast-icon-container {
    flex-shrink: 0;
    position: relative;
    padding: 0.75rem;
}

.eo-toast-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.eo-toast-icon svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.eo-toast-icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.eo-toast-text-container {
    flex: 1;
    padding: 0.9rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 1rem;
}

.eo-toast-title {
    margin-bottom: 0.6rem;
    font: 600 0.9rem / 1 'Noto Sans', sans-serif;
    cursor: grab;
    color: var(--eo-font-color);
}

.eo-toast-message {
    color: #6b7280;
    line-height: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Кнопка закрытия убрана из toast уведомлений - они исчезают автоматически */

.eo-toast-time {
    font: var(--eo-font);
    display: flex;
    font-size: 0.8rem;
    padding: 0.8rem;
    color: #9ca3af;
    justify-content: center;
}

.eo-toast-success { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 4px solid #10B981;
}

.eo-toast-success .eo-toast-icon {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.eo-toast-success .eo-toast-icon-bg {
    background: linear-gradient(135deg, #10B981, #059669);
}

.eo-toast-error { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 4px solid #EF4444;
}

.eo-toast-error .eo-toast-icon {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.eo-toast-error .eo-toast-icon-bg {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.eo-toast-warning { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 4px solid #F59E0B;
}

.eo-toast-warning .eo-toast-icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.eo-toast-warning .eo-toast-icon-bg {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.eo-toast-info { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 4px solid #3B82F6;
}

.eo-toast-info .eo-toast-icon {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.eo-toast-info .eo-toast-icon-bg {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* Дополнительные эффекты */
.eo-toast-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.eo-toast-notification:hover {
    transform: translateX(0) translateY(var(--y-offset, 0)) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.eo-toast-notification.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.eo-toast-notification.removing {
    transform: translateX(100%) !important;
    opacity: 0 !important;
}

.eo-toast-notification.moving-up {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}