/* Toast Notification System for Offline/Online Status */
.toast-container {
    position: fixed;
    bottom: 70px; /* Position above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 350px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.toast {
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.toast.error {
    background-color: #ff4757;
}

.toast.success {
    background-color: #3EB489;
}

.toast.warning {
    background-color: #ffa502;
}

.toast.info {
    background-color: #2e86de;
}

.toast-content {
    flex: 1;
    margin-right: 10px;
}

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

.toast-message {
    font-size: 13px;
    opacity: 0.9;
}

.toast-action {
    display: flex;
    align-items: center;
}

.toast-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.toast-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 5px;
}

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

/* Dark mode compatibility */
[data-theme="dark"] .toast,
.dark-mode .toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Additional spacing for toast on mobile */
@media (max-width: 576px) {
    .toast-container {
        bottom: 65px;
        width: 95%;
    }
}
