/* Система уведомлений - CSS стили */

/* Система уведомлений - CSS стили (старый стиль) */

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid #007bff;
    min-width: 240px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(100%);
    opacity: 0;
}

.notification.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.notification.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.notification.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notification.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.notification-icon {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.notification.success .notification-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.notification.error .notification-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification.warning .notification-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notification.info .notification-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.notification-message {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    font-weight: 500;
}

.notification-close {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #374151;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Стили для кнопок в уведомлениях */
.notification-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.notification-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.notification-btn.btn-primary {
    background: #3b82f6;
    color: white;
}

.notification-btn.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.notification-btn.btn-secondary {
    background: #6b7280;
    color: white;
}

.notification-btn.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.notification-btn.btn-danger {
    background: var(--br-btn-danger, #dc2626);
    color: white;
}

.notification-btn.btn-danger:hover {
    background: var(--br-btn-danger-hover, #b91c1c);
    transform: translateY(-1px);
}

.notification-btn:active {
    transform: translateY(0);
}

/* Адаптивность для кнопок */
@media (max-width: 480px) {
    .notification-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .notification-btn {
        width: 100%;
        padding: 8px 12px;
    }
}

/* Система уведомлений - CSS стили (старый стиль) */

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification-container .notification {
    pointer-events: auto;
}

.notification {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid #007bff;
    min-width: 240px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(100%);
    opacity: 0;
}

.notification.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.notification.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.notification.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notification.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.notification-icon {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.notification.success .notification-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.notification.error .notification-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.notification.warning .notification-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.notification.info .notification-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.notification-message {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    font-weight: 500;
}

.notification-close {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    color: #374151;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Стили для кнопок в уведомлениях */
.notification-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.notification-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.notification-btn.btn-primary {
    background: #3b82f6;
    color: white;
}

.notification-btn.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.notification-btn.btn-secondary {
    background: #6b7280;
    color: white;
}

.notification-btn.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.notification-btn.btn-danger {
    background: var(--br-btn-danger, #dc2626);
    color: white;
}

.notification-btn.btn-danger:hover {
    background: var(--br-btn-danger-hover, #b91c1c);
    transform: translateY(-1px);
}

.notification-btn:active {
    transform: translateY(0);
}

/* Адаптивность для кнопок */
@media (max-width: 480px) {
    .notification-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .notification-btn {
        width: 100%;
        padding: 8px 12px;
    }
}

/* ===== Dark theme notifications ===== */
html[data-theme="dark"] .notification {
    background: linear-gradient(135deg, #2b2b2b 0%, #242424 100%) !important;
    border: 1px solid #454545 !important;
    border-left-width: 3px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    color: #f5f5f5 !important;
}

html[data-theme="dark"] .notification.success {
    border-left-color: #34d399 !important;
    background: linear-gradient(135deg, #1f3d2d 0%, #1a3226 100%) !important;
}
html[data-theme="dark"] .notification.error {
    border-left-color: #f87171 !important;
    background: linear-gradient(135deg, #3d2222 0%, #321a1a 100%) !important;
}
html[data-theme="dark"] .notification.warning {
    border-left-color: #fbbf24 !important;
    background: linear-gradient(135deg, #3d3420 0%, #322a18 100%) !important;
}
html[data-theme="dark"] .notification.info {
    border-left-color: #60a5fa !important;
    background: linear-gradient(135deg, #1f2f45 0%, #1a2838 100%) !important;
}

html[data-theme="dark"] .notification-title {
    color: #f8f8f8 !important;
}
html[data-theme="dark"] .notification-message {
    color: #d4d4d4 !important;
}
html[data-theme="dark"] .notification-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .notification.success .notification-icon {
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.15) !important;
}
html[data-theme="dark"] .notification.error .notification-icon {
    color: #f87171 !important;
    background: rgba(248, 113, 113, 0.15) !important;
}
html[data-theme="dark"] .notification.warning .notification-icon {
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.15) !important;
}
html[data-theme="dark"] .notification.info .notification-icon {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.15) !important;
}
html[data-theme="dark"] .notification-close {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cfcfcf !important;
}
html[data-theme="dark"] .notification-close:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}
html[data-theme="dark"] .notification-btn.btn-secondary {
    background: #3d3d3d !important;
    color: #f0f0f0 !important;
}

/* Согласие на cookie */
.notification.cookie-consent {
    max-width: 360px;
    min-width: 280px;
}
.notification.cookie-consent .notification-message {
    font-size: 12px;
    line-height: 1.4;
}
.notification.cookie-consent .notification-buttons {
    margin-top: 8px;
    justify-content: flex-start;
}
.notification-inline-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}
.notification-inline-link:hover {
    color: #1d4ed8;
}
html[data-theme="dark"] .notification.cookie-consent {
    border-left-color: #e95420 !important;
}
html[data-theme="dark"] .notification.cookie-consent .notification-icon {
    color: #ffa780 !important;
    background: rgba(233, 84, 32, 0.16) !important;
}
html[data-theme="dark"] .notification-inline-link {
    color: #ffa780 !important;
}
html[data-theme="dark"] .notification-inline-link:hover {
    color: #e95420 !important;
}
html[data-theme="dark"] .notification-btn.btn-primary {
    background: #e95420 !important;
    color: #fff !important;
}
html[data-theme="dark"] .notification-btn.btn-primary:hover {
    background: #ff6b35 !important;
}

/* Нижняя панель согласия на cookie */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.cookie-consent-banner--show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent-banner--hide {
    opacity: 0;
    transform: translateY(100%);
}

.cookie-consent-banner-inner {
    pointer-events: auto;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--br-border, #e5e7eb);
    background: var(--br-surface, #fff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.cookie-consent-banner-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-consent-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    color: var(--br-text, #111827);
}

.cookie-consent-banner-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--br-muted-text, #6b7280);
}

.cookie-consent-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-link:hover {
    color: #1d4ed8;
}

.cookie-consent-banner-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cookie-consent-accept {
    white-space: nowrap;
    min-width: 100px;
}

html[data-theme="dark"] .cookie-consent-banner-inner {
    background: var(--br-surface, #2d2d2d);
    border-color: var(--br-border, #4a4a4a);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cookie-consent-banner-text strong {
    color: var(--br-text, #f0f0f0);
}

html[data-theme="dark"] .cookie-consent-banner-text p {
    color: var(--br-muted-text, #a8a8a8);
}

html[data-theme="dark"] .cookie-consent-link {
    color: #ffa780;
}

html[data-theme="dark"] .cookie-consent-link:hover {
    color: #e95420;
}

@media (max-width: 640px) {
    .cookie-consent-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-consent-banner-actions {
        justify-content: stretch;
    }
    .cookie-consent-accept {
        width: 100%;
    }
}
