/* 🔔 NOTIFICATION TOAST SYSTEM */
/* Generated by Gemini cloud worker for Treebird Hub */
/* Worker Run ID: ad22f60b */

:root {
    --toast-success: #6b9a5b;
    --toast-error: #a85a4a;
    --toast-warning: #c9a227;
    --toast-info: #4a90d9;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    padding-right: 40px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(42, 36, 32, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #e8e4df;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #9a958f;
    line-height: 1.4;
}

.toast-actions {
    margin-top: 12px;
}

.toast-actions button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8e4df;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.toast-actions button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #6b6560;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #e8e4df;
}

/* Type-specific styles */
.toast.success {
    border-left: 4px solid var(--toast-success);
}

.toast.error {
    border-left: 4px solid var(--toast-error);
}

.toast.warning {
    border-left: 4px solid var(--toast-warning);
}

.toast.info {
    border-left: 4px solid var(--toast-info);
}

.toast.success .toast-icon {
    color: var(--toast-success);
}

.toast.error .toast-icon {
    color: var(--toast-error);
}

.toast.warning .toast-icon {
    color: var(--toast-warning);
}

.toast.info .toast-icon {
    color: var(--toast-info);
}

/* Light theme */
[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .toast-title {
    color: #2a2420;
}

[data-theme="light"] .toast-message {
    color: #6b6560;
}

[data-theme="light"] .toast-close {
    color: #9a958f;
}

[data-theme="light"] .toast-actions button {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2a2420;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    #toast-container {
        top: auto;
        bottom: 80px;
        /* Above mobile nav */
        right: 12px;
        left: 12px;
        align-items: stretch;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 14px;
        padding-right: 36px;
    }

    .toast-title {
        font-size: 13px;
    }

    .toast-message {
        font-size: 12px;
    }

    .toast-close {
        top: 6px;
        right: 6px;
    }
}