/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast {
    background: linear-gradient(135deg, rgba(16, 23, 41, 0.95) 0%, rgba(8, 17, 33, 0.95) 100%);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    max-height: 200px;
    margin-bottom: 0;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
    max-height: 0;
    margin-bottom: -10px;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #e2e8f0;
}

.toast-message {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #e2e8f0;
}

/* Типы toast */
.toast-success {
    border-color: rgba(57, 255, 20, 0.3);
}

.toast-success .toast-icon {
    color: #39ff14;
}

.toast-error {
    border-color: rgba(255, 107, 107, 0.3);
}

.toast-error .toast-icon {
    color: #ff6b6b;
}

.toast-warning {
    border-color: rgba(255, 209, 102, 0.3);
}

.toast-warning .toast-icon {
    color: #ffd166;
}

.toast-info {
    border-color: rgba(0, 234, 255, 0.3);
}

.toast-info .toast-icon {
    color: #00eaff;
}

.toast-loading {
    border-color: rgba(0, 234, 255, 0.3);
}

.toast-loading .toast-icon {
    color: #00eaff;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Прогресс бар */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    width: 100%;
    transform-origin: left;
    animation: progress linear forwards;
}

@keyframes progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Ссылка на explorer в toast */
.toast-explorer-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-explorer-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00eaff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.toast-explorer-link a:hover {
    color: #39ff14;
    text-decoration: underline;
}

.toast-explorer-link i {
    font-size: 0.7rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        width: 100%;
        max-width: none;
    }
}


.refresh-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(16, 23, 41, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 234, 255, 0.2);
    min-width: 250px;
}

.refresh-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.refresh-toast.success {
    border-color: rgba(57, 255, 20, 0.3);
    background: rgba(16, 23, 41, 0.98);
}

.refresh-toast.success i {
    color: #39ff14;
}

.refresh-toast.error {
    border-color: rgba(255, 107, 107, 0.3);
    background: rgba(16, 23, 41, 0.98);
}

.refresh-toast.error i {
    color: #ff6b6b;
}

.refresh-toast i {
    font-size: 1.1rem;
}