/* 알림 토스트 스타일 */
.notification-toast {
    min-width: 300px;
}

.notification-toast.info {
    border-left: 4px solid #0dcaf0;
}

.notification-toast.success {
    border-left: 4px solid #198754;
}

.notification-toast.warning {
    border-left: 4px solid #ffc107;
}

.notification-toast.error {
    border-left: 4px solid #dc3545;
}

/* 알림 목록 스타일 */
.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.read {
    opacity: 0.6;
}

.notification-item .notification-title {
    font-weight: bold;
    margin-bottom: 4px;
}

.notification-item .notification-message {
    color: #666;
    margin-bottom: 4px;
}

.notification-item .notification-time {
    font-size: 0.8em;
    color: #999;
}

/* 알림 배지 스타일 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 9px;
    font-size: 11px;
    text-align: center;
    background-color: #dc3545;
    color: white;
}

/* 알림 아이콘 스타일 */
.notification-icon {
    position: relative;
    cursor: pointer;
}

.websocket-connected .notification-icon {
    color: #198754;
}

/* 알림 드롭다운 스타일 */
.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.notification-header {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h6 {
    margin: 0;
    font-weight: bold;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-list:empty::after {
    content: "새 알림이 없습니다.";
    display: block;
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 토스트 컨테이너 애니메이션 */
.toast {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

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

/* 연결 상태 표시 */
.websocket-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    z-index: 9998;
}

.websocket-status.connected {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.websocket-status.disconnected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .notification-toast {
        min-width: 250px;
    }
    
    .toast-container {
        right: 10px !important;
        left: 10px !important;
    }
}