/* Стили для уведомлений */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 40px); /* Ограничиваем максимальную ширину */
    box-sizing: border-box;
}

.notification {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: white;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    opacity: 1;
    animation: slide-in 0.3s ease forwards;
    box-sizing: border-box;
    width: 100%; /* Гарантируем, что ширина будет адаптивной */
    position: relative;
}

/* Темная тема для уведомлений */
html[data-theme="dark"] .notification {
    background-color: #2a2f36;
    color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.hiding {
    animation: slide-out 0.3s ease forwards;
}

.notification-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.notification-content {
    flex: 1;
    margin-right: 24px;
}

.notification-message {
    margin: 0;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

html[data-theme="dark"] .notification-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Типы уведомлений */
.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.success .notification-icon {
    stroke: #4CAF50;
}

.notification.error {
    border-left: 4px solid #F44336;
}

.notification.error .notification-icon {
    stroke: #F44336;
}

.notification.info {
    border-left: 4px solid #2196F3;
}

.notification.info .notification-icon {
    stroke: #2196F3;
}

.notification.warning {
    border-left: 4px solid #FF9800;
}

.notification.warning .notification-icon {
    stroke: #FF9800;
}

/* Стили для уведомления с подтверждением */
.notification.confirm {
    border-left: 4px solid #FF9800;
}

.notification.confirm .notification-message {
    margin-bottom: 12px;
}

.notification-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.notification-buttons button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-buttons .confirm-btn {
    background-color: #FF9800;
    color: white;
}

.notification-buttons .confirm-btn:hover {
    background-color: #F57C00;
}

.notification-buttons .cancel-btn {
    background-color: #E0E0E0;
    color: #333;
}

html[data-theme="dark"] .notification-buttons .cancel-btn {
    background-color: #3a3f48;
    color: #e9ecef;
}

.notification-buttons .cancel-btn:hover {
    background-color: #BDBDBD;
}

html[data-theme="dark"] .notification-buttons .cancel-btn:hover {
    background-color: #4d5259;
}

/* Анимации для уведомлений */
@keyframes slide-in {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(30px); opacity: 0; }
} 