/* Notification Module Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 350px;
    width: calc(100% - 40px);
}

.notification-toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

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

.notification-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

/* Notification Types */
.notification-toast.emergency { border-left: 6px solid #ff4d4d; }
.notification-toast.emergency::before { background: #ff4d4d; }

.notification-toast.info { border-left: 6px solid #3498db; }
.notification-toast.info::before { background: #3498db; }

.notification-toast.event { border-left: 6px solid #2ecc71; }
.notification-toast.event::before { background: #2ecc71; }

.notification-toast.congestion { border-left: 6px solid #f1c40f; }
.notification-toast.congestion::before { background: #f1c40f; }

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}

.notification-time {
    font-size: 11px;
    color: #888;
}

.notification-content {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.notification-close:hover {
    color: #666;
}

/* Animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    #notification-container {
        top: auto;
        bottom: 80px; /* ボトムナビゲーションがある場合を考慮 */
        right: 20px;
        left: 20px;
        width: auto;
    }
}
