/* Стили для уведомлений */
.notification {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    height: 0;
}

/* Иконка */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контент */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    word-wrap: break-word;
}

/* Кнопка закрытия */
.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* Полоса прогресса */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgb(50, 99, 249);
    transition: width linear;
    border-radius: 0 0 12px 12px;
}

/* Типы уведомлений */
.notification.success {
    background: linear-gradient(135deg, #f0fff4 0%, #f0fff4 100%);
    border-color: #68d391;
    color: #2d3748;
}

.notification.success .notification-icon {
    color: #38a169;
}

.notification.success .notification-progress {
    background: #38a169;
}

.notification.error {
    background: linear-gradient(135deg, #fff5f5 0%, #fff5f5 100%);
    border-color: #fc8181;
    color: #2d3748;
}

.notification.error .notification-icon {
    color: #e53e3e;
}

.notification.error .notification-progress {
    background: #e53e3e;
}

.notification.info {
    background: linear-gradient(135deg, #ebf8ff 0%, #ebf8ff 100%);
    border-color: rgb(50, 99, 249);
    color: #2d3748;
}

.notification.info .notification-icon {
    color: rgb(50, 99, 249);
}

.notification.info .notification-progress {
    background: rgb(50, 99, 249);
}

.notification.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fffbeb 100%);
    border-color: #f6ad55;
    color: #2d3748;
}

.notification.warning .notification-icon {
    color: #ed8936;
}

.notification.warning .notification-progress {
    background: #ed8936;
}

/* Контейнер уведомлений */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Адаптивность */
@media (max-width: 640px) {
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-enter {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notification-exit {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Стили для кастомного выпадающего меню валют */
.currency-dropdown {
    position: relative;
    width: 100%;
}

.currency-dropdown.active .currency-options {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    max-height: 200px;
}

.currency-dropdown.active .currency-arrow {
    transform: rotate(180deg);
}

.currency-selected {
    position: relative;
}

.currency-options {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-option {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: rgba(50, 99, 249, 0.1);
}

.currency-option.selected {
    background: rgba(50, 99, 249, 0.2);
}

/* Стили для выпадающего меню валют */
.currency-select {
    position: relative;
    display: block;
    width: 100%;
}

.currency-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 40px 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(10px);
}

.currency-select select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.08);
}

.currency-select select:focus {
    border-color: rgb(50, 99, 249);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(50, 99, 249, 0.1);
}

.currency-select select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    font-weight: 500;
    border: none;
}

.currency-select select option:hover,
.currency-select select option:checked {
    background-color: rgb(50, 99, 249);
    color: #ffffff;
}

/* Кастомная стрелочка для select */
.currency-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.currency-select select:focus + .currency-select::after,
.currency-select:hover::after {
    border-top-color: rgb(50, 99, 249);
    transform: translateY(-50%) rotate(180deg);
}

/* Альтернативный стиль с иконкой */
.currency-select-icon {
    position: relative;
    display: block;
    width: 100%;
}

.currency-select-icon select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 50px 12px 45px;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(15px);
    position: relative;
}

.currency-select-icon::before {
    content: '💰';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.currency-select-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="rgba(255,255,255,0.7)"><path d="M7.41 8.84L12 13.42l4.59-4.58L18 10.25l-6 6-6-6z"/></svg>') no-repeat center;
    background-size: contain;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.currency-select-icon:hover::after {
    transform: translateY(-50%) rotate(180deg);
}

.currency-select-icon select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.currency-select-icon select:focus {
    border-color: rgb(50, 99, 249);
    background: linear-gradient(135deg, rgba(50, 99, 249, 0.1) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: 0 0 0 3px rgba(50, 99, 249, 0.2), 0 8px 25px rgba(0, 0, 0, 0.15);
}